compiler backdoor

Some proof-of-concept code implementing Ken Thompson's invisible compiler backdoor

2
0
Ruby

This is badly documented, sorry. Just posting the code in case anyone wants to dig through it after seeing my talk

Highlights:

Ken Thompson hack:

git checkout ken2
git show  # <- follow these instructions

Quines:

git checkout quines
diff <(./quine4.rb) quine4.rb
diff <(./quine3.rb) quine3.rb
# quine2.rb doesn't work (on purpose)

touch quine1.rb
chmod 755 quine1.rb
diff <(./quine1.rb) quine1.rb