progs/README
changeset 395 60f64793266f
parent 393 cb308583d86c
child 400 f05368d007dd
equal deleted inserted replaced
394:ea1ee786d5a7 395:60f64793266f
     2 
     2 
     3 Start "Linux Hacking"   password is "test"
     3 Start "Linux Hacking"   password is "test"
     4 
     4 
     5 The programs are under 
     5 The programs are under 
     6 
     6 
     7   cu$> test/app-material/progs
     7   cu$> app-material/progs
     8 
     8 
       
     9 
       
    10 Programs can be updated using
       
    11 
       
    12   hg pull
       
    13   hg update
       
    14   hg revert --all
       
    15 
       
    16 Emacs can be used to edit files
       
    17 
       
    18   emacs -nw ...file....     (is also an alias)
       
    19 
       
    20 
       
    21 C0.c
       
    22 ====
       
    23 
       
    24 Add the bigger string and the long is printed out differently.
       
    25 
       
    26 C1.c
       
    27 ====
       
    28 
       
    29 needs to be called using
       
    30 
       
    31   ./C1 `args1-good`
       
    32   ./C1 `args1-bad`
       
    33 
       
    34 or in gdb using
       
    35 
       
    36   gdb --args ./C1 `args1-bad`
       
    37 
       
    38 
       
    39 C2.c
       
    40 ====
       
    41 
       
    42 called with
       
    43   
       
    44   ./args2-good | ./C2
       
    45   ./args2-bad  | ./C2
       
    46 
       
    47 C3.c
       
    48 ====
       
    49 (shell injection)
       
    50 
       
    51 called with 
       
    52 
       
    53   ./C3
       
    54 
       
    55 opens a new shell
       
    56 
       
    57 
       
    58 C4.c
       
    59 ====
       
    60 Format string attack
       
    61 
       
    62   ./C4 "%s"
       
    63   ./C4 `./args4`
     9 
    64 
    10 
    65 
    11 
    66 
    12 ------------------------------------
    67 ------------------------------------
    13 
    68