Skip to content

Commit

Permalink
Nits from PR
Browse files Browse the repository at this point in the history
  • Loading branch information
Fryyyyy committed Sep 28, 2023
1 parent 55a88dc commit d41acf7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker/worker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ RUN cd /home/turbinia && echo "" > password.lst
RUN cd /home/turbinia && curl -s https://raw.githubusercontent.com/danielmiessler/SecLists/285474cf9bff85f3323c5a1ae436f78acd1cb62c/Passwords/UserPassCombo-Jay.txt >> password.lst
RUN cd /home/turbinia && curl -s https://raw.githubusercontent.com/danielmiessler/SecLists/master/Passwords/Common-Credentials/10-million-password-list-top-1000000.txt >> password.lst
RUN cp /home/turbinia/password.lst /root/
RUN echo ':\nd' > /home/turbinia/turbinia.rules
RUN echo ':\nd' > /home/turbinia/turbinia-password-cracking.rules

# Copy Kubernetes support tool to home folder
COPY --chown=turbinia:turbinia k8s/tools/check-lockfile.py /home/turbinia/check-lockfile.py
Expand Down
3 changes: 2 additions & 1 deletion turbinia/lib/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def bruteforce_password_hashes(

pot_file = os.path.join((tmp_dir or tempfile.gettempdir()), 'hashcat.pot')
password_list_file_path = os.path.expanduser('~/password.lst')
password_rules_file_path = os.path.expanduser('~/turbinia.rules')
password_rules_file_path = os.path.expanduser('~/turbinia-password-cracking.rules')

# Fallback
if not os.path.isfile(password_list_file_path):
Expand All @@ -194,6 +194,7 @@ def bruteforce_password_hashes(
]
pot_file = os.path.expanduser('~/.john/john.pot')
else:
# Ignore warnings & plain word list attack (with rules)
cmd = ['hashcat', '--force', '-a', '0']
if extra_args:
cmd = cmd + extra_args.split(' ')
Expand Down

0 comments on commit d41acf7

Please sign in to comment.