If you want to spoof your wifi device and then surf the net with kali-linux do not use the following commands!!!!
!!!DO NOT USE!!!
ifconfig wlan0 down
macchanger -m 00:11:22:33:44:55 wlan0
ifconfig wlan0 up
When you type ifconfig after the above commands, the spoofed mac in this example 00:11:22:33:44:55, will be shown !!!BUT!!! when you use Net Work Manager and associate to an AP the spoofed mac dissappears and the original hardware mac returns. Uh oh
We confirmed this with Cain as we ran many man-in-the-middle attacks against ourselves and the HARDWARE MAC was always shown NOT the spoofed mac.
However to correct the problem we used
ifconfig wlan0 down
ifconfig wlan0 hw ether 00:11:22:33:44:55
ifconfig wlan0 up
Now the spoofed mac stays expressed after Network Manger associated to the AP
This was also confirmed with Cain during MITM attacks to test the correction.
These tests were done with an RTL8187 AWUSO36H Alpha Wifi Device
If you want to boost to 30 dBm and spoof the mac of your actual device then:
ifconfig wlan0 down
ifconfig wlan0 hw ether 00:11:22:33:44:55
iw reg set BO
ifconfig wlan0 up
iwconfig wlan0 channel 13
iwconfig wlan0 txpower 30
iwconfig wlan0 rate 1M
The mac code 00:11:22:33:44:55 and the wlan0 are used as examples and can be changed to fit actual conditions by the user.