fix(api): store torrent files in /tmp/hate_crack/ not /tmp/

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Justin Bollinger
2026-04-25 20:28:22 -04:00
co-authored by Claude Sonnet 4.6
parent 0d8089ea17
commit 598bfd97e5
2 changed files with 6 additions and 3 deletions
+3
View File
@@ -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
+3 -3
View File
@@ -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 = {