aboutsummaryrefslogtreecommitdiff
path: root/CamilStaps-s4498062-Assignment-4/ex1/exploit/exploit.sh
blob: 3c21d535b6528c582691f268579987aeb8d57996 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
cat exploit -

# cat - exploit - is the "best" way of doing this:
#
# It lets you explore the target using format strings, so that you can
# craft your exploit into "exploit", execute it by sending EOF (ctrl+D),
# and then once again you have direct input options.
# 
# Can also solve this with a looping construct, for when you need more
# than one try, e.g.
#while [ 1 ]
#do
#   cat -
#   cat exploit
#done