Skip to main content
shorten
Source Link
Retr0id
  • 469
  • 4
  • 8

Python 3.8+, 6847 bytes

(lambda:0).__class__eval((lambda:0).__code__.replace(co_consts=()),{})()

Not the shortest python entry by far, but this one works without any imports. And as a bonus, this bug is exploitable to get arbitrary code execution, if you're smart about it.

Python 3.8+, 68 bytes

(lambda:0).__class__((lambda:0).__code__.replace(co_consts=()),{})()

Not the shortest python entry by far, but this one works without any imports. And as a bonus, this bug is exploitable to get arbitrary code execution, if you're smart about it.

Python 3.8+, 47 bytes

eval((lambda:0).__code__.replace(co_consts=()))

Not the shortest python entry by far, but this one works without any imports. And as a bonus, this bug is exploitable to get arbitrary code execution, if you're smart about it.

Source Link
Retr0id
  • 469
  • 4
  • 8

Python 3.8+, 68 bytes

(lambda:0).__class__((lambda:0).__code__.replace(co_consts=()),{})()

Not the shortest python entry by far, but this one works without any imports. And as a bonus, this bug is exploitable to get arbitrary code execution, if you're smart about it.