Skip to content

Instantly share code, notes, and snippets.

@abeaumont
Created August 18, 2014 12:50
Show Gist options
  • Save abeaumont/50e35ceb8398f57ba165 to your computer and use it in GitHub Desktop.
Save abeaumont/50e35ceb8398f57ba165 to your computer and use it in GitHub Desktop.
Hitcon CTF 2014 polyglot (C, Python 2, Python 3, Ruby, Haskell)
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