Adapters: Built-in wireless adapters in retail computers will not perform for what you need. You need a wireless adapter that will support: Monitor Mode & Packet Injection (Explanation).
Network CLI: https://www.tecmint.com/ip-command-examples/
You may need to spoof your address to cover your tracks or to take over a MAC address of someone on the network. First, find your interface name (e.g., wlan0); use one of the following:
ifconfig ip addr show ip link show
1. Disable the interface first (two ways, old and new; use one):
ifconfig wlan0 down ip link set wlan0 down
2A. [Option 1] Change the MAC address (hw ether
: hardware ethernet address; (use any addr you want that starts with 00)):
ifconfig wlan0 hw ether 00:11:22:33:44:55 ip link set dev wlan0 address 00:11:22:33:44:55
2B. [Option 2] Use macchanger
to do it for you:
macchanger --random wlan0
3. Enable the interface (two ways, old and new; pick one):
ifconfig wlan0 up ip link set wlan0 up
4. Check it (pick one):
ifconfig ip addr show ip link show
5. PAY ATTENTION: your network manager might revert the MAC to original
macchanger
, you probably won't get this problem (although I haven't fully tested it)./etc/NetworkManager/NetworkManager.conf
and paste the following at the end of the file: [device] wifi.scan-rand-mac-address=no [connection] ethernet.cloned-mac-address=preserve wifi.cloned-mac-address=preserve
service network-manager restart
Do an iwconfig
to check out wlan0
(or whatever your interface name is): should be Mode: Managed
(you need to change to Monitored
in order to catch all network traffic).
ifconfig up eth0
activates eth0 but does not setup IP addresses, etc.ifup eth0
sets up IP addresses and other options based on the interface's configuration in /etc/network/interfaces.1. Disable the interface.
ifconfig wlan0 down ip link set wlan0 down
2. Kill any process that would interfere with monitor mode (This will kill your network connection. Don't worry. You don't need it.):
airmon-ng check kill
3. Enable monitor mode [1].
iwconfig wlan0 mode monitor
4. Enable the interface.
ifconfig wlan0 up ip link set wlan0 up
Run iwconfig
and you should see Mode:Monitor
(capture any packet in range).
[1] The mode
sets the operating mode of the device:
ad hoc
(network composed of only one cell and without access point)managed
(node connects to a network composed of many access points, with roaming)master
(the node is the synchronisation master or acts as an access point)repeater
(the node forwards packets between other wireless nodes)secondary
(the node acts as a backup master/repeater)monitor
(the node is not associated with any cell and passively monitor all packets on the frequency)auto
Attaching USB Device to VM in VirtualBox
VirtualBox (Host) Setup:
adduser [username: echo $USER] vboxuser
lsusb
in the host Linux O/S.Virtual Machine (Guest) Setup:
lsusb
. You should see your chipset.ifconfig
or iwconfig
or ip a
apt-cache search RTL8812AU
or apt-cache search realtek
, etc.apt install realtek-rtl88xxau-dkms
apt update
and then apt full-upgrade
apt-key adv --keyserver hkp://keys.gnupg.net --recv-keys 7D8D0BF6 systemctl restart network-manager
lsusb
in terminal.ifconfig
or iwconfig
or ip a