Most of the time, you probably won't have any problems logging in to a free WiFi network, whether it's the free home or cafeteria network.
However, most public WiFi do not work because of Mac Filtering, which means that your machine's MAC address must be registered in the Router.
Here are two options:
- Or you can enter the MAC address of your device to register in the system
- Either you can get a user's MAC address, forge it, and use it on your own device.
In most cases, the free Wi-Fi will have a name like Cafe Coffee Day (CCD), Dominos, Free Internet, Tata Docomo etc.
Now the question is, how do you get the Mac address of someone who is already online and already using it for free?
For this, you need to install it Free Wifi which is an open source script written in python and can be downloaded in Kali Linux by typing the following command:
Mandate: git clone https://github.com/kylemcdonald/FreeWifi.git
Additionally, you must install a package called python-dev (For Kali Linux users) and python-devel (For Fedora users).
Also for other dependencies you may need, you can easily install them via the pip command.
Mandate: sudo pip install -r requirements.txt
In the end, just run the python script by typing the following command in your terminal.
Mandate: python wifi-users.py
So here you can see that you have received a list of all the MAC addresses (which is about 51 in our case) and that are part of this network.
Finally, we want to forge one of these MAC addresses. In this case we will use the spoof-mac command and type (using mac address 1c: 3e: 84: 1c: 78: 1f as an example) the command “sudo spoof-mac set 1c: 3e: 84: 1c: 78: 1f Wi-Fi“. Try it for a start address forgery with the most traffic.
After executing this command, you will try to access the network.
If you do not have a connection, try the next MAC on the list. If your Internet connection is lost while using this MAC address, try disconnecting and reconnecting to the wireless network.
Note that the original MAC user you copied may experience the same connection interruptions if you are both using the network at the same time.