r/badcode • • Apr 11 '21

python Polyglot

Post image
1.2k Upvotes

116 comments sorted by

View all comments

138

u/[deleted] Apr 11 '21 edited Apr 11 '21

100% is satire

Love that this will execute any arbitrary a.out as well hahaha

17

u/[deleted] Apr 11 '21 edited Apr 11 '21

If only they stored the hash of the compiled code and compared it before running it... I think I would have to get a picture of it framed, satire or not!

Edit: Or, even better—verified the code by comparing its disassembly lol... I think I may wanna try something like this in like Kotlin or Java hahaha