Added metadata info for smtp and web transfers
parent
52d55cf025
commit
305bd2ff84
|
@ -35,8 +35,8 @@ class CustomSMTPServer(smtpd.SMTPServer):
|
|||
"_" + current_time.replace(":", "") + "email_data.txt"
|
||||
|
||||
with open(loot_directory + "/" + file_name, 'a') as email_file:
|
||||
email_file.write('METADATA: File from - ' + str(peer) + '\n\n')
|
||||
email_file.write(data)
|
||||
|
||||
return
|
||||
|
||||
def email_parse_attachment(self, message_part):
|
||||
|
|
|
@ -36,7 +36,7 @@ class GetHandler(BaseHTTPRequestHandler):
|
|||
screenshot_name = current_date.replace("/", "") +\
|
||||
"_" + current_time.replace(":", "") + "actor_data.txt"
|
||||
with open(loot_path + screenshot_name, 'a') as cc_data_file:
|
||||
cc_data_file.write('METADATA: From: ' + self.client_address + ' ' + self.address_string + '\n\n')
|
||||
cc_data_file.write('METADATA: From: ' + str(self.client_address) + ' ' + str(self.address_string) + '\n\n')
|
||||
cc_data_file.write('etumbot just checked in here!\n')
|
||||
self.send_response(200)
|
||||
self.end_headers()
|
||||
|
@ -63,6 +63,7 @@ class GetHandler(BaseHTTPRequestHandler):
|
|||
screenshot_name = current_date.replace("/", "") +\
|
||||
"_" + current_time.replace(":", "") + "actor_data.txt"
|
||||
with open(loot_path + screenshot_name, 'a') as cc_data_file:
|
||||
cc_data_file.write('METADATA: From: ' + str(self.client_address) + ' ' + str(self.address_string) + '\n\n')
|
||||
cc_data_file.write('DarkHotel just checked in here!\n')
|
||||
self.send_response(200)
|
||||
self.end_headers()
|
||||
|
@ -106,6 +107,7 @@ class GetHandler(BaseHTTPRequestHandler):
|
|||
|
||||
# Write out the file
|
||||
with open(loot_path + screenshot_name, 'a') as cc_data_file:
|
||||
cc_data_file.write('METADATA: From: ' + str(self.client_address) + ' ' + str(self.address_string) + '\n\n')
|
||||
cc_data_file.write(screen_data)
|
||||
|
||||
elif self.path == "/post_file.php":
|
||||
|
@ -165,6 +167,7 @@ class GetHandler(BaseHTTPRequestHandler):
|
|||
|
||||
# Write out the file
|
||||
with open(loot_path + screenshot_name, 'a') as cc_data_file:
|
||||
cc_data_file.write('METADATA: From: ' + str(self.client_address) + ' ' + str(self.address_string) + '\n\n')
|
||||
cc_data_file.write(screen_data)
|
||||
|
||||
# All other Post requests
|
||||
|
|
Loading…
Reference in New Issue