Exploit database

GH-bc48341055851a42d9fc19c7c8c718a8

abhishekg999/ctfwriteups

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2023-40139

1 source

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

Repository files5
abhishekg999/ctfwriteupsRevision 5636c9dac6c8

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

GoogleCTF-2023/NPC/src/cleanup.py

Python · 366 bytes
with open('hint.dot', 'r') as f:
    lines = f.read().split('\n')

print(lines)

with open('actualgraph.dot', 'w+') as f:
    for line in lines:
        if '--' in line:   
            new_line = '    ' + ' -> '.join(line.replace(';', '').replace(' ', '').split('--')[::-1]) + ';'

            f.write(new_line + '\n')
        else:
            f.write(line + '\n')