Pre-made commands

Make sure to add proxy to the proxychains config file. IP address should be pointing to first tunnel in the machine
kali@kali:~$ tail /etc/proxychains4.conf
#       proxy types: http, socks4, socks5, raw
#         * raw: The traffic is simply forwarded to the proxy without modification.
#        ( auth types supported: "basic"-http  "user/pass"-socks )
#
[ProxyList]
# add proxy here ...
# meanwile
# defaults set to "tor"
socks5 192.168.50.63 9999
Run nmap scan through proxychains
proxychains nmap -vvv -sT --top-ports=20 -Pn 172.16.223.217

Flags

FlagDescription
-xWhat does it do

Useful Scripts

Useful bash script
#!/bin/bash