Intercepting Communication
level 1
Connect to a remote host
We can use nc
to connect to the specified address on the port specified.
hacker@intercepting-communication~level1:/$ nc 10.0.0.3 31337
level 2
Listen for a connection from a remote host
The l
option in nc
allows users to listen on a specified port.
hacker@intercepting-communication~level2:/$ nc -l 31337
level 3
Find and connect to a remote host
nmap
is a very useful tool that we can use to find open addressees and ports.
hacker@intercepting-communication~level3:/$ nmap -v 10.0.0.0/24 -p 31337
After that we just have to connect on the open
hacker@intercepting-communication~level3:/$ nc 10.0.0.245 31337