check MAC won't launch

Applications > Anon Surf > check MAC won’t launch.

I tried this before and after connecting to TOR. I made sure the TOR tunnel was connected and I was getting an IP.

When I tried typing the command in the CLI, I received:

#anonsurf mymac
/usr/bin/anonsurf: line 267: mac: command not found

It looks like the anonsurf or mymac may have a bug.

Can someone tell me are these c programs or shell scripts? If these are scripts, can someone tell me where to find them, so I can check the code?

All the love, Val


I’m using Parrot Security ver 4.1

Debian Standard install

multiboot with other systems? no

The MAC options is not supported anymore by anosurf.
The dev forget to rewrite the help menu.
Use macchanger instead :slight_smile:

Cool thanks,

I’ve got a little script I’ve been using to change my macs, outside of anonsurf. It makes a pc look like a macintosh. Can you tell me what you think of it and how I might be able to improve it?

Thanks

#!/bin/sh

sudo -u root systemctl stop NetworkManager

sleep 2

sudo -u root ifconfig eth0 down
sleep 1
sudo -u root ifconfig wlan0 down

sleep 4

echo ""
echo "Ethernet:"
echo ""
sudo -u root macchanger -m 1c:ab:a7:00:00:01 eth0
echo ""
sudo -u root macchanger -e eth0
echo ""

sleep 8

echo "WiFi:"
echo ""
sudo -u root macchanger -m 1c:ab:a7:00:00:02 wlan0
echo ""
sudo -u root macchanger -e wlan0
echo ""

sleep 8

sudo -u root ifconfig eth0 up
sleep 1
sudo -u root ifconfig wlan0 up 

sleep 4

sudo -u root systemctl start NetworkManager

sleep 2

It coulde be easier and more usable (especial when you work with external wifi dongle)
to get the interface name as an argument.
You dont need those sleep times, 0.5 - 1 sec far more than enough :slight_smile:
For example the script name is mac.sh

#the script will exit if not run as root
#check the user id
if [ $EUID -ne "0" ]
then
        echo "Run as root!"
        exit
fi

#$1 is the first argument
#check if any interface specified
if [ -z $1 ]
then
        echo "No interface specified!"
        exit
else
        INTERFACE=("$1")
fi

#check the given interface
if [[ -z $(ifconfig | grep -e "$INTERFACE") ]]
then
        echo "Not a valid interface!"
        exit
fi

service network-manager stop
sleep 0.5
ifconfig $INTERFACE down
sleep 0.5
macchanger -m 1c:ab:a7:00:00:01 $INTERFACE
sleep 0.5
ifconfig $INTERFACE up
sleep 0.5
service network-manager start

For example:
sudo bash mac.sh wlan0
change the mac address of wlan0
It is a bit complex for first, but need because of the typos