Tag: proxychains

  • proxychains

    proxychains allow you to route traffic using proxy servers. This is useful for routing traffic throihg applications that do not support proxy by default. For example, i use ssh through proxy chains.

    To install proxychains on Ubuntu, run

    apt install -y proxychains
    

    Now you need to edit /etc/proxychains.conf and add your proxy servers.

    sudo vi /etc/proxychains.conf 
    

    On my computer, i use SSH tunnel to a sevrer on port 7878, so i added following to end of my proxychains.conf

    socks5  127.0.0.1  7878
    

    To text proxy proxychains, run

    boby@sok-01:~$ curl checkip.amazonaws.com
    59.92.71.53
    boby@sok-01:~$ proxychains curl checkip.amazonaws.com
    ProxyChains-3.1 (http://proxychains.sf.net)
    |DNS-request| checkip.amazonaws.com 
    |S-chain|-<>-127.0.0.1:7878-<><>-4.2.2.2:53-<><>-OK
    |DNS-response| checkip.amazonaws.com is 34.193.115.2
    |S-chain|-<>-127.0.0.1:7878-<><>-34.193.115.2:80-<><>-OK
    51.38.246.115
    boby@sok-01:~$ 
    

    As you can see when using proxychains, you get a difernt IP as traffic get routed through proxy server specified in proxychains.conf

    Proxychains show some connection info, you can hide this by editing proxychains.conf and uncommenting the line

    # Quiet mode (no output from library)
    #quiet_mode
    

    With quite mode enabled, you will see

    boby@sok-01:~$ proxychains curl checkip.amazonaws.com
    ProxyChains-3.1 (http://proxychains.sf.net)
    51.38.246.115
    boby@sok-01:~$ 
    

    See Proxy