Most of the time, you probably won't have any problems logging in to someone free WiFi network, whether it is the free network of a house or a cafe.
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 you have two choices:
- 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, free Wi-Fi will be available name such as 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 need to install a package called python-dev (For Kali Linux users) and python-devel (For users Fedora).
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 don't have a connection, try the next MAC listed. If your Internet connection is interrupted while using this MAC address, try disconnecting and reconnecting to 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.