Skip to content

Instantly share code, notes, and snippets.

View array0111's full-sized avatar
👋

cc array0111

👋
  • 学校
  • china
View GitHub Profile
@array0111
array0111 / load.py
Created September 2, 2020 13:24 — forked from adamczi/load.py
CVE-2020-1747 PyYAML PoC
# pyyaml==5.3 required. Vulnerability has been fixed in 5.3.1
# More: ret2libc's report in https://github.com/yaml/pyyaml/pull/386
# Explanation: https://2130706433.net/blog/pyyaml/
from yaml import *
with open('payload.yaml','rb') as f:
content = f.read()
data = load(content, Loader=FullLoader) # Using vulnerable FullLoader