MCPcopy
hub / github.com/fortra/impacket / writeJohnOutputToFile

Function writeJohnOutputToFile

impacket/smbserver.py:187–196  ·  view source on GitHub ↗
(hash_string, hash_version, file_name)

Source from the content-addressed store, hash-verified

185
186
187def writeJohnOutputToFile(hash_string, hash_version, file_name):
188 fn_data = os.path.splitext(file_name)
189 if hash_version == "ntlmv2":
190 output_filename = fn_data[0] + "_ntlmv2" + fn_data[1]
191 else:
192 output_filename = fn_data[0] + "_ntlm" + fn_data[1]
193
194 with open(output_filename, "a") as f:
195 f.write(hash_string)
196 f.write('\n')
197
198
199def decodeSMBString(flags, text):

Callers 12

do_relayMethod · 0.90
handleMethod · 0.90
SmbSessionSetupMethod · 0.90
SmbSessionSetupAndXMethod · 0.90
do_relayMethod · 0.90
do_relayMethod · 0.90
handleMethod · 0.90
handleMethod · 0.90
handle_credsspMethod · 0.90
_ntlm_authMethod · 0.85

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…