Added metadata info for smtp and web transfers

metadata
Chris Truncer 2016-07-19 19:49:59 -06:00
parent 52d55cf025
commit 305bd2ff84
No known key found for this signature in database
GPG Key ID: 9715AC2B40A5A64A
2 changed files with 5 additions and 2 deletions

View File

@ -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):

View File

@ -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