Two proxy tools allow connecting to the target network by opening a port from our machine.

proxychains

Powerful yet might slow connection, Nmap scan isn’t efficient a all.

Proxychains is a command line tool which is activated by prepending the command proxychains to other commands. For example, to proxy netcat  through a proxy, you could use the command:

proxychains nc 172.16.0.10 23

The IP isn’t mentioned above because proxychains is configured from a configuration file, the chosen one is in the order below

  1. The current directory (i.e. ./proxychains.conf)
  2. ~/.proxychains/proxychains.conf
  3. /etc/proxychains.conf (the master config)

Base proxy file configuration

Base proxy file configuration

To scan through proxychains, you need to comment the line

# Proxy DNS requests - no leak for DNS data
proxy_dns # -> "#proxy_dns"

Only TCP scans are possible and without ping (so with the flag -Pn)

Foxyproxy

Foxyproxy is a better option while working with a browser, for instance, to connect to a web app on an internal network. While adding a proxy SOCKS4 is usually a good bet, although Chisel (which we will cover in a later task) requires SOCKS5.

Untitled