diff --git a/README.md b/README.md index de289eb..b2ed62d 100644 --- a/README.md +++ b/README.md @@ -918,6 +918,9 @@ Interactive menu for downloading and managing wordlists from Weakpass.com via Bi ------------------------------------------------------------------- ### Version History +Version 2.9.5 + - Store downloaded `.torrent` files in `/tmp/hate_crack/` instead of `/tmp/` root + Version 2.9.4 - Fixed torrent add timeout: increased watch-dir polling window from 10s to 30s to give transmission's scanner (which runs every ~10s) enough time to pick up new .torrent files diff --git a/hate_crack/api.py b/hate_crack/api.py index 5adffdc..cdfa697 100644 --- a/hate_crack/api.py +++ b/hate_crack/api.py @@ -571,9 +571,9 @@ def get_hcat_potfile_args(): def cleanup_torrent_files(directory=None): - """Remove stray .torrent files left in the system temp directory on graceful exit.""" + """Remove stray .torrent files left in the hate_crack temp directory on graceful exit.""" if directory is None: - directory = tempfile.gettempdir() + directory = os.path.join(tempfile.gettempdir(), "hate_crack") try: for name in os.listdir(directory): if name.endswith(".torrent"): @@ -784,7 +784,7 @@ def fetch_torrent_metadata(torrent_url, save_dir=None, wordlist_id=None): """ register_torrent_cleanup() - torrent_dir = tempfile.gettempdir() + torrent_dir = os.path.join(tempfile.gettempdir(), "hate_crack") os.makedirs(torrent_dir, exist_ok=True) # Optionally include hashmob_api_key in headers if present headers = {