Fixed bug that hits in a small number of instances

resolved_file
Chris Truncer 2015-01-15 09:34:46 -05:00
parent bf5019f7ec
commit 2f12d5a28b
1 changed files with 6 additions and 6 deletions

View File

@ -26,14 +26,14 @@ class Server:
dnsrr_strings = repr(packet[DNSRR])
try:
incoming_data = base64.b64decode(dnsrr_strings.split('\'')[1].rstrip('.'))
except TypeError:
pass
if incoming_data == self.last_packet:
pass
else:
with open(self.loot_path + self.file_name, 'a') as dns_out:
dns_out.write(incoming_data)
self.last_packet = incoming_data
except TypeError:
pass
return
def serve(self):