How to hack from one computer to another

2025-07-27

Teleporting Between Computers

Assume you have to computers, they have the following IP address - 10.0.0.2 PC1 - 10.0.0.3 PC2

One can then use nc to launch the simplest listener on PC1 at port 3000 - nc -l 3000 to launch the listener

Then I can use nc 10.0.0.2 3000 to teleport into the PC1 from PC2 and then send command as text

Check IP address

Public IP Address at the beginning of the VPN tunnel

  • curl https://api.ipify.org gets the public IP address

Public IP Address at the end of the VPN tunnel

  • curl -4 ifconfig.me gets the public IP address
  • curl -6 ifconfig.me gets the public IPv6 address
  • curl https://ifconfig.co gets the public IP address
  • curl https://ifconfig.co/ip gets the public IP address
  • curl https://ipinfo.io/ip gets the public IP address
  • curl https://icanhazip.com gets the public IP address
  • curl https://checkip.amazonaws.com gets the public IP address
  • curl https://api.myip.com gets the public IP address

Local IP Address

  • ip addr gets the local IP address
  • hostname -I gets the local IP address in a single line

Check the geographical location of the IP address

  • curl https://ipinfo.io gets the geographical location of the IP address
  • curl https://ipinfo.io/123.234.10.1/json gets the geographical location of the specific IP address
  • curl https://ipapi.co/json gets the geographical location of the IP address
  • curl https://ipapi.co/123.234.10.1/json gets the geographical location of the specific IP address