diff -r ea1ee786d5a7 -r 60f64793266f progs/README --- a/progs/README Mon Oct 05 12:47:56 2015 +0100 +++ b/progs/README Mon Oct 05 20:42:11 2015 +0100 @@ -4,8 +4,63 @@ The programs are under - cu$> test/app-material/progs + cu$> app-material/progs + + +Programs can be updated using + + hg pull + hg update + hg revert --all + +Emacs can be used to edit files + + emacs -nw ...file.... (is also an alias) + + +C0.c +==== + +Add the bigger string and the long is printed out differently. + +C1.c +==== + +needs to be called using + + ./C1 `args1-good` + ./C1 `args1-bad` + +or in gdb using + gdb --args ./C1 `args1-bad` + + +C2.c +==== + +called with + + ./args2-good | ./C2 + ./args2-bad | ./C2 + +C3.c +==== +(shell injection) + +called with + + ./C3 + +opens a new shell + + +C4.c +==== +Format string attack + + ./C4 "%s" + ./C4 `./args4`