Created
August 18, 2014 12:50
-
-
Save abeaumont/50e35ceb8398f57ba165 to your computer and use it in GitHub Desktop.
Hitcon CTF 2014 polyglot (C, Python 2, Python 3, Ruby, Haskell)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a={-1//1,""""/=>3} | |
#if 0 | |
BEGIN { puts `cat flag`; exit; } | |
__END__ | |
"""} # " | |
import os; os.system('cat flag') | |
""" # " | |
#endif | |
}; | |
main () { system("cat flag"); } /* -} 0 | |
main = do c <- readFile "flag"; putStr c {- | |
""" # */ // -} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment