MCPcopy Index your code
hub / github.com/python/cpython / PicklePrint

Class PicklePrint

Lib/test/audit-tests.py:141–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139 import pickle
140
141 class PicklePrint:
142 def __reduce_ex__(self, p):
143 return str, ("Pwned!",)
144
145 payload_1 = pickle.dumps(PicklePrint())
146 payload_2 = pickle.dumps(("a", "b", "c", 1, 2, 3))

Callers 1

test_pickleFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_pickleFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…