# 4nonimizer | Bash Script For Anonymizing The Public IP Used To Browsing Internet

**URL:** <https://onehack.st/t/4nonimizer-bash-script-for-anonymizing-the-public-ip-used-to-browsing-internet/132135>\
**Category:** Tools & Scripts\
**Tags:** privacy, browsers\
**Created:** [October 6, 2020, 2:36pm UTC](https://onehack.st/t/4nonimizer-bash-script-for-anonymizing-the-public-ip-used-to-browsing-internet/132135 "2020-10-06T14:36:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BlueHacker](https://onehack.st/user_avatar/onehack.st/bluehacker/32/174721_2.png) [@BlueHacker](https://onehack.st/u/BlueHacker)\
**Post date:** [October 6, 2020, 2:36pm UTC](https://onehack.st/t/4nonimizer-bash-script-for-anonymizing-the-public-ip-used-to-browsing-internet/132135/1 "2020-10-06T14:36:44Z")

</div>

[![4nonimizer logo](https://github.com/Hackplayers/4nonimizer/raw/master/images/logo.png)](https://github.com/Hackplayers/4nonimizer/blob/master/images/logo.png)

### If you like the 4nonimizer, please help us with whatever you want!

[![Donate](https://camo.githubusercontent.com/d5d24e33e2f4b6fe53987419a21b203c03789a8f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f6e6174652d50617950616c2d677265656e2e737667)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=24U9T8TTDXA24&lc=US&item_name=4nonimizer&currency_code=EUR&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted)

# What is 4nonimizer?

It is a bash script for anonymizing the public IP used to browsing Internet, managing the connection to TOR network and to different VPNs providers (OpenVPN), whether free or paid. By default, it includes several pre-configured VPN connections to different peers (.ovpn files) and download the credentials (if the corresponding provider support it). Also, it records each used IP that we use every 300 seconds in log files.

This script is enabled as a service in systemd systems and uses a default vpn (VPNBook) at system startup.

Since version 1.06 the dns resolution requests are done throught DnsCrypt (enable and disable with option enable\_dns or disable\_dns)

Since version 1.12 the logs of connections vpn saved in sqlite in /logs/

# Attention VPN Providers!

If you are a provider, you support OpenVPN and want your VPN to be integrated into 4nonimizer contact the developers at hackplayers @ [ymail.com](http://ymail.com).

# Installation

Download the repo using git, execute the command **./4nonimizer install** in the directory, and follow the screen instructions, 4nonimizer will move to the directory **/opt/** and installed as a service.

This script has full compatibility with Kali Linux, although it has been properly tested and should also work on other distributions like Debian, Ubuntu and Arch (Manjaro). However there could be some bugs, or unexpected performances (please comments if you find any!).

# Options

Once installed 4nonymizer, enter the command **4nonimizer help** to get the help, which shows all the available parameters:

```auto
       ___ _ _
      / | (_) (_)
     / /| |_ _____ _ ___ ___  ___________ _ __
    / /_| | '_ \ / _ \| '_ \| | '_ ` _ | |_ / _ \ '__|
    \___| | | | (_) | | | | | | | | | | |/ /__/ |
        |_/_| |_|\ ___/|_| |_|_|_| |_| |_|_/___ \___|_|
                                       By Carlos Antonini & Vicente Motos
                                       Version: 1.06-beta

```

Usage: 4nonymizer   
**install** : Install the script in run services  
**uninstall** : Disable run service and remove app directory  
**change\_provider** : Change VPN Provider  
**change\_ip** : Change IP from VPN current  
**vpn\_status** : Check IP and provider VPN running  
**update\_vpns** : Update all ovpn of VPNs  
**start** : Init the 4nonimizer service  
**stop** : Stop the 4nonimizer service  
**stop\_nonet** : Stop the 4nonimizer service and shutdown network interfaces  
**restart** : Restart the 4nonimizer service  
**update\_app** : Update this program via git  
**privoxy** : Install and configure privoxy with port 8118 (BETA)  
**proxychains4** : Install and configure proxychains4 for default in the system  
**browser** : Fire up a firefox browser with profile privoxy → tor  
**test\_availability** : Check peers availability and delete ovpn file if the IP/service is unreachable  
**location** : Now you can select a specific country or continent of the vpn peer  
**enableboot** : You can enable service in boot  
**disableboot** : You can disable service in boot  
**enable\_dnscrypt** : Enable dnscrypt service  
**disable\_dnscrypt** : Disable dnscrypt service

**help** : Help (this screen)

# Available VPNs

Currently it supports the following VPN providers:

- 7Proxies [https://www.7proxies.com/](https://www.7proxies.com/)

- AirVPN [https://airvpn.org/](https://airvpn.org/)

- Cryptostorm [https://cryptostorm.is/](https://cryptostorm.is/)

- Cyberghost [https://www.cyberghostvpn.com/en\_US/](https://www.cyberghostvpn.com/en_US/)

- ExpressVPN [https://www.expressvpn.com](https://www.expressvpn.com/)

- FreeVPN [https://freevpn.me/](https://freevpn.me/)

- HideMyAss [https://www.hidemyass.com/](https://www.hidemyass.com/)

- IpPVanish [https://www.ipvanish.com/](https://www.ipvanish.com/)

- NordVPN [https://nordvpn.com](https://nordvpn.com/)

- PIA [https://www.privateinternetaccess.com/](https://www.privateinternetaccess.com/)

- ProntonVPN [https://protonvpn.com/](https://protonvpn.com/)

- Proxy.sh [https://proxy.sh/](https://proxy.sh/)

- SlickVPN [https://www.slickvpn.com](https://www.slickvpn.com/)

- StrongVPN [https://strongvpn.com/](https://strongvpn.com/)

- TorGuard [https://torguard.net/](https://torguard.net/)

- TunnelBear [https://www.tunnelbear.com/](https://www.tunnelbear.com/)

- VPNBook (por defecto) [http://www.vpnbook.com/](http://www.vpnbook.com/)

- VPNGate [http://www.vpngate.net/en/](http://www.vpngate.net/en/)

- VPNKeys [https://www.vpnkeys.com/](https://www.vpnkeys.com/)

- VPNMe [https://www.vpnme.me/](https://www.vpnme.me/)

- Vyprvpn [https://www.goldenfrog.com/es/vyprvpn](https://www.goldenfrog.com/es/vyprvpn)

# Install a new VPN

To install an additional vpn we have to use the following structure in order to the 4nonimizer be able to integrate and perform operations with it.

First, we have to create the following dir structure **/vpn/** within 4nonimizer path:

[![Alt text](https://github.com/Hackplayers/4nonimizer/raw/master/images/tree.png)](https://github.com/Hackplayers/4nonimizer/blob/master/images/tree.png)

In our example we create the folder **/vpntest/** and within it placed all **.ovpn** files we have. If the files ovpn not have the certificate within each of them we put in the same folder as shown in the example **certificate.crt**.

In addition, we must place a file named **pass.txt** containing 2 lines: the first one with the username and the second one with the password, as shown below:

[![Alt text](https://github.com/Hackplayers/4nonimizer/raw/master/images/pass.png)](https://github.com/Hackplayers/4nonimizer/blob/master/images/pass.png)

If we have correctly performed all steps when we execute the command **4nonimizer change\_provider** the menu will show our vpn:

[![Alt text](https://github.com/Hackplayers/4nonimizer/raw/master/images/change_provider.png)](https://github.com/Hackplayers/4nonimizer/blob/master/images/change_provider.png)

As you can see in the picture, option [7] it is the vpn we’ve created.

# Getting credencials and ovpn files automatically

If the VPN provider allows automation of credential and/or .ovpn files getting, 4nonimizer has standardized the following scripts names and locations:

- /opt/4nonimizer/vpn/provider/ **vpn-get-pass.sh**

[![Alt text](https://github.com/Hackplayers/4nonimizer/raw/master/images/autopass_sample.png)](https://github.com/Hackplayers/4nonimizer/blob/master/images/autopass_sample.png)

- /opt/4nonimizer/vpn/provider/ **vpn-get-ovpn.sh**

[![Alt text](https://github.com/Hackplayers/4nonimizer/raw/master/images/autovpn_sample.png)](https://github.com/Hackplayers/4nonimizer/blob/master/images/autovpn_sample.png)

4nonimizer automatically detect the presence of both scripts and indicate (Auto-pass Login) or (Auto-get OVPN) if it finds in the first line of each file the expression ‘#4uto’ or ‘#m4nual’ depending on the performed actions.

[![Alt text](https://github.com/Hackplayers/4nonimizer/raw/master/images/provider_new.png)](https://github.com/Hackplayers/4nonimizer/blob/master/images/provider_new.png)

# Extras

- Execute ‘source 4nonimizer’ to activate autocompletation of parameters.
- Copy .conkyrc in your home directory to load a 4nonimizer template and execute conky.

# References

- [http://www.hackplayers.com/2016/08/tuto-enmascarar-ip-linux-vpn-tor.html](http://www.hackplayers.com/2016/08/tuto-enmascarar-ip-linux-vpn-tor.html)
- [http://www.hackplayers.com/2016/10/4nonimizer-un-script-para-anonimizar-ip.html](http://www.hackplayers.com/2016/10/4nonimizer-un-script-para-anonimizar-ip.html)
- [http://www.redeszone.net//2016/10/07/4nonimizer-te-permitira-automatizar-la-conexion-diferentes-vpn-anonimizar-ip/](http://www.redeszone.net//2016/10/07/4nonimizer-te-permitira-automatizar-la-conexion-diferentes-vpn-anonimizar-ip/)
- [http://www.kitploit.com/2016/10/4nonimizer-bash-script-for-anonymizing\_10.html](http://www.kitploit.com/2016/10/4nonimizer-bash-script-for-anonymizing_10.html)
- [https://www.digitalmunition.me/2016/10/4nonimizer-bash-script-anonymizing-public-ip-managing-connection-tor-different-vpns-providers/](https://www.digitalmunition.me/2016/10/4nonimizer-bash-script-anonymizing-public-ip-managing-connection-tor-different-vpns-providers/)

# Videos

- Instalar 4nonimizer Kali Linux [https://www.youtube.com/watch?v=FQRuRmMkcDg](https://www.youtube.com/watch?v=FQRuRmMkcDg)
- 4nonimizer Navegando de manera segura VPN (Kali Linux 2016.2) [https://www.youtube.com/watch?v=6GApaN7fSn8](https://www.youtube.com/watch?v=6GApaN7fSn8)
- devenir anonyme sur kali linux (4nonimizer) [https://www.youtube.com/watch?v=Y3puD1Bw3xA](https://www.youtube.com/watch?v=Y3puD1Bw3xA)
- Anonymizer - How To Hide Your IP address on Kali Linux 2016.2 (Change IP) [https://www.youtube.com/watch?v=MNdQD0DCG0A](https://www.youtube.com/watch?v=MNdQD0DCG0A)
- Become Anonymous on kali linux 2016.2 [https://www.youtube.com/watch?v=IFnhm-rrnEg](https://www.youtube.com/watch?v=IFnhm-rrnEg)
- Auto Hide IP with 4nonimizer on KALI Linux 2017 [https://www.youtube.com/watch?v=HgqZCm8Wdvw](https://www.youtube.com/watch?v=HgqZCm8Wdvw)
- Kali Linux - 4nonimizer | Surf Anonymously [https://www.youtube.com/watch?v=\_mOUQBv4sWs](https://www.youtube.com/watch?v=_mOUQBv4sWs)

# Versions

| Number | codename | date |
| --- | --- | --- |
| 1.00-beta | .bye-world! | 5/10/2016 |
| 1.02-beta | .evol-time | 11/10/2016 |
| 1.03-beta | .using-latin-i | 17/10/2016 |
| 1.04-beta | .locateit | 22/12/2016 |
| 1.05-beta | .encrypting | 03/01/2017 |
| 1.06-beta | .1st-trial | 18/01/2017 |
| 1.07-beta | .noname | 03/05/2017 |
| 1.08-beta | .falcon | 15/08/2017 |
| 1.09-beta | .rabbit | 09/11/2017 |
| 1.10 | .fresh\_air | 27/02/2018 |
| 1.11 | .shhh | 17/05/2018 |
| 1.12 | .sqliting | 18/05/2018 |

¡4nonimize the world!

# TODO

- migrate to Python and make the tool multiplatform
- make the code cleaner and more versatile
- save the logs in a bd sqlite
- standardize the names of the ovpn files: read the IP (remote line), get the country and rename the ovpn file accordingly

## GitHub:

[https://github.com/Hackplayers/4nonimizer](https://github.com/Hackplayers/4nonimizer)
