This repo is for the coding assignment of info-sec which dealing with a bugged compiler. The super secret alternative username is: cabbageham ========================================
NOTE: you can also just follow the instructions callahan gives in the pdf and you should also see it working there NOTE: you should start off with tinycc-dirty and tinycc-clean. make sure you've git pulled
Final Instructions for Verifying Everything Works
-
clone/copy tinycc-clean into a new directory
-
enter tinycc-clean and run the following: make clean && ./configure --cc="../tinycc-dirty/tcc" && make && sudo make install
-
enter the directory from step 1 and run the following: make clean && ./configure --cc="../tinycc-clean/tcc" && make && sudo make install
-
to verify this shiny new compiler is indeed infected, run the following: tcc -o login login.c
-
to verify results, run the following: ./login cabbageham; echo $?
-
observe our super secret username can also login, along with 'root' of course