Exploit database

GH-94de575549e1742595fa79a32b37f28b

liveoverflow/pwnedit

GitHubNot listedPoC
Download source

Sources for CVE-2021-3156

12 sources

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

Repository files9
liveoverflow/pwneditRevision 539986ff65db

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

episode16/utils.py

Python · 309 bytes
from filelock import Timeout, FileLock

lock = FileLock("state.lock")

def get_state():
    with lock:
        with open('state', 'r') as f:
            state = f.read()
        return state

def set_state(state):
    with lock:
        with open('state', 'w') as f:
            state = f.write(state)