How to configure programs to access the Internet in Tails. Internet connection settings for command line utilities
All Tails programs are configured to work via Tor. If you try to connect to the network, then if this program is not configured to make connections via Tor, then access to the Internet will be denied.
It is necessary to make network settings for every applications individually.
The settings should be SOCKS (or SOCKS5) as protocol, localhost as the host name and 9050 as the port.
Similar to another command line utilities, you cannot download a file using curl or wget if you do not use Tor. To do this, they have the option --proxy, so to download files you need to use programs like this:
curl --proxy socks://localhost:9050/ https://miloserdov.org
wget --proxy socks://localhost:9050/ https://miloserdov.org
Replace https://miloserdov.org with a different hostname or file to download.
By the way, such familiar programs like ping will also not work – access to the network will be closed.
ping suip.biz PING suip.biz (18.104.22.168) 56(84) bytes of data. From 10.0.2.15 (10.0.2.15) icmp_seq=1 Destination Port Unreachable ping: sendmsg: Operation not permitted From 10.0.2.15 (10.0.2.15) icmp_seq=2 Destination Port Unreachable ping: sendmsg: Operation not permitted From 10.0.2.15 (10.0.2.15) icmp_seq=3 Destination Port Unreachable ping: sendmsg: Operation not permitted From 10.0.2.15 (10.0.2.15) icmp_seq=4 Destination Port Unreachable ping: sendmsg: Operation not permitted ^C --- suip.biz ping statistics --- 4 packets transmitted, 0 received, +4 errors, 100% packet loss, time 3032ms
How to use sqlmap in Tails
Since the Tor network is already configured, it is sufficient to add the --tor flag to your sqlmap launch command. To make sure everything works as it should, you can run the command with the flag --check-tor. For example:
sqlmap -u https://miloserdov.org/?p=1582 --tor --check-tor
Part of the output:
[14:31:35] [INFO] setting Tor SOCKS proxy settings [14:31:35] [INFO] checking Tor connection [14:31:39] [INFO] Tor is properly being
The string “Tor is properly being used” says that sqlmap sends its requests to the target site via the Tor network and that they reach it.
Using WPScan in Tails
WPScan, WordPress-based websites scanner, has the --proxy option, after which it is enough to specify the Tor network data. Command example:
wpscan --url URL --proxy socks://localhost:9050
Using Nmap in Tails
The raw requests that Nmap uses for its scans are non-routable via the Tor network. In simple terms, it is impossible to use Nmap in Tails in the usual way. However, this is possible with the support of the ProxyChains program. How to do this is described in the article ‘Anonymous scanning through Tor with Nmap, sqlmap or WPScan’.
- Anonymous scanning through Tor with Nmap, sqlmap or WPScan (79.1%)
- How to install Tails on (internal or external) hard disk. How to install Tails in VirtualBox (61.5%)
- How to install and use VeraCrypt in Tails (58.4%)
- Free easy way to hide IP in Linux (53.2%)
- How to install and run Tor Browser on Kali Linux (53.2%)
- How to install VeraCrypt on Linux (RANDOM - 50%)