forked from morrownr/8814au
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
272 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
## Monitor Mode using ```iw``` and ```ip``` | ||
|
||
2021-02-19 | ||
|
||
----- | ||
### Enter Monitor Mode | ||
|
||
Start by making sure the system recognizes the WiFi interface | ||
``` | ||
$ iw dev | ||
``` | ||
Note: The output shows the WiFi interface name and the current | ||
mode among other things. The interface name may be something like | ||
`wlx00c0cafre8ba` and is required for many of the below commands. | ||
|
||
|
||
Take the interface down | ||
``` | ||
$ sudo ip link set <your interface name here> down | ||
``` | ||
|
||
Set monitor mode | ||
``` | ||
$ sudo iw <your interface name here> set monitor control | ||
``` | ||
|
||
Bring the interface up | ||
``` | ||
$ sudo ip link set <your interface name here> up | ||
``` | ||
|
||
Verify the mode has changed | ||
``` | ||
$ iw dev | ||
``` | ||
----- | ||
|
||
### Revert to Managed Mode | ||
|
||
Take the interface down | ||
``` | ||
$ sudo ip link set <your interface name here> down | ||
``` | ||
|
||
Set managed mode | ||
``` | ||
$ sudo iw <your interface name here> set type managed | ||
``` | ||
|
||
Bring the interface up | ||
``` | ||
$ sudo ip link set <your interface name here> up | ||
``` | ||
|
||
Verify the mode has changed | ||
``` | ||
$ iw dev | ||
``` | ||
----- | ||
|
||
### Change the MAC Address before entering Monitor Mode | ||
|
||
Take down things that might interfere | ||
``` | ||
$ sudo airmon-ng check kill | ||
``` | ||
Check the WiFi interface name | ||
``` | ||
$ iw dev | ||
``` | ||
Take the interface down | ||
``` | ||
$ sudo ip link set dev <your interface name here> down | ||
``` | ||
Change the MAC address | ||
``` | ||
$ sudo ip link set dev <your interface name here> address <your new mac address> | ||
``` | ||
Set monitor mode | ||
``` | ||
$ sudo iw <your interface name here> set monitor control | ||
``` | ||
Bring the interface up | ||
``` | ||
$ sudo ip link set dev <your interface name here> up | ||
``` | ||
Verify the MAC address and mode has changed | ||
``` | ||
$ iw dev | ||
``` |
Oops, something went wrong.