Anonsurf Tor Install + MacChanger

Anonsurf allows routing of online traffic via TOR. It forces connections through TOR and the i2p network.It has both the graphical interface and the command-line interface. Macchanger can change the mac address.

git clone https://github.com/Und3rf10w/kali-anonsurf.git
cd kali-anonsurf

make the file executable
chmod +x installer.sh

run the installer
sudo ./installer.sh
It takes some time to complete. This command adds keys, updates and helps install anonsurf in your computer.

Check
anonsurf

useful commands:

remember sudo

start – starts the anon mode
stop – terminates the anon session
restart – combines the stop and start options by restarting the session
start-bridge – starts system-wide Tor tunnel using the Obfs4 bridge support
changed – uses the restart command to change Tor identity.
enable-boot – enables Anonsurf at boot. Or use systemctl enable anonsurf
disable-boot – disables Anonsurf at boot. Or use systemctl disable anonsurf
status – checks the current status of Anonsurf, and it aids in determining if it is working correctly. The Nyx application, in this case, is vital since it displays info about the Tor service, nodes, bandwidth, etc.
myip – checks the IP address and verifies the Tor connection
dns – replaces the current DNS with the OpenNIC DNS servers.

changing the MAC address.

Change your MAC address temporarily.
sudo apt install macchanger

Check version
macchanger –version

Get list of interfaces:
ip addr sh


1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eno1: mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
link/ether 10:62:e5:6c:d9:66 brd ff:ff:ff:ff:ff:ff
altname enp1s0
3: wlo1: mtu 1500 qdisc noqueue state DOWN group default qlen 1000
link/ether 90:32:4b:53:30:df brd ff:ff:ff:ff:ff:ff
altname wlp2s0
4: enx001ec2fbf67f: mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 00:1e:c2:fb:f6:7f brd ff:ff:ff:ff:ff:ff
inet 192.168.178.20/24 brd 192.168.178.255 scope global dynamic noprefixroute enx001ec2fbf67f
valid_lft 825112sec preferred_lft 825112sec
inet6 fe80::7333:dc48:fa51:c3b3/64 scope link noprefixroute
valid_lft forever preferred_lft forever

To check the MAC address of interface enx001ec2fbf67f  use macchanger -s enx001ec2fbf67f

andy@hp2:~$ macchanger -s enx001ec2fbf67f
Current MAC: 00:1e:c2:fb:f6:7f (Apple)
Permanent MAC: 00:1e:c2:fb:f6:7f (Apple)

Permanent is same as current.

set interface down:
sudo ip link set enx001ec2fbf67f down

-r will give us a random address:
sudo macchanger -r enx001ec2fbf67f

andy@hp2:~$ sudo macchanger -r enx001ec2fbf67f
Current MAC: 00:1e:c2:fb:f6:7f (Apple)
Permanent MAC: 00:1e:c2:fb:f6:7f (Apple)
New MAC: d2:4a:1c:91:64:77 (unknown)

New address is different.

Set link to up again:
sudo ip link set enx001ec2fbf67f up

Restore the permanent MAC address with -p
sudo ip link set enx001ec2fbf67f down
sudo macchanger -p enx001ec2fbf67f
sudo ip link set enx001ec2fbf67f up