Upadte some notes.
This commit is contained in:
6
notes/wiki/AP configuration.md
Normal file
6
notes/wiki/AP configuration.md
Normal file
@@ -0,0 +1,6 @@
|
||||
# Using NetworkManager
|
||||
See [here](https://variwiki.com/index.php?title=Wifi_NetworkManager#Configuring_WiFi_Access_Point_with_NetworkManager). Can use the command line tool [[nmcli]].
|
||||
|
||||
# Using [[hostapd]]
|
||||
Must first make sure that the interface is not managed by nmcli, see [[nmcli]].
|
||||
|
||||
9
notes/wiki/Tools.md
Normal file
9
notes/wiki/Tools.md
Normal file
@@ -0,0 +1,9 @@
|
||||
# Wifi Tools
|
||||
- [[aircrack-ng]]can easily enable monitor mode
|
||||
- [[nmcli]] NetworkManager cli
|
||||
- [[hostapd]]
|
||||
- [[iw]]
|
||||
# Wifi Adapter not found anymore
|
||||
- __Issue__: After using `airmon-ng` to put my wifi adapter into monitor mode and then supposedly back into normal mode: network manager couldn't find wifi adapter anymore.
|
||||
- `sudo nmcli dev` showed that `wlp44s0` interface was "unmanaged".
|
||||
- __Fix__: `sudo nmcli set wlp44s0 managed yes`
|
||||
0
notes/wiki/aircrack-ng.md
Normal file
0
notes/wiki/aircrack-ng.md
Normal file
0
notes/wiki/hostapd.md
Normal file
0
notes/wiki/hostapd.md
Normal file
10
notes/wiki/iw.md
Normal file
10
notes/wiki/iw.md
Normal file
@@ -0,0 +1,10 @@
|
||||
***TLDR***: show / manipulate wirless devices and their configs.
|
||||
|
||||
# Commands used:
|
||||
- `iw list` shows extensive info about all wirless devices.
|
||||
- To check if any devices is AP ready:
|
||||
```bash
|
||||
iw list | grep -i ap -A 5 -B 5
|
||||
```
|
||||
|
||||
|
||||
19
notes/wiki/monitoring.md
Normal file
19
notes/wiki/monitoring.md
Normal file
@@ -0,0 +1,19 @@
|
||||
***TLDR:*** How to monitor/sniff wifi network traffic of IoT Devices. Two strategies:
|
||||
Use a wifi adapter to setup an #AP and have the devices connect to via that or use wifi card in monitor mode.
|
||||
|
||||
# Funnel traffic via AP
|
||||
**Issues**: iPhone has problems connecting to the provided APs. But need iPhone to configure network connection of devices.
|
||||
# Monitor Mode
|
||||
---
|
||||
## HowTo
|
||||
Insert wifi adapter and make sure it shows up as a interface with e.g. `nmcli dev`.
|
||||
### Manually activate:
|
||||
1. Find out which interfaces already exist with names like`mon_N_`: `ifconfig -a`.
|
||||
2. `iw dev _interface_ interface add _mon_num_ type monitor`
|
||||
3. `ifconfig _mon_num up`
|
||||
### Using [[aircrack-ng]] :
|
||||
Activate monitor mode on interface `wlp0s20f0u1`:
|
||||
```bash
|
||||
sudo airmon-ng start wlp0s20f0u1
|
||||
```
|
||||
Output:
|
||||
20
notes/wiki/nmcli.md
Normal file
20
notes/wiki/nmcli.md
Normal file
@@ -0,0 +1,20 @@
|
||||
***TLDR:*** Command line utility of NetworkManager
|
||||
Benefit: Automates setting up WiFi, DHCP server and NAT config, according to [here](https://variwiki.com/index.php?title=Wifi_NetworkManager#Configuring_WiFi_Access_Point_with_NetworkManager) .
|
||||
|
||||
# Commands
|
||||
```bash
|
||||
nmcli dev #list network devices
|
||||
```
|
||||
```bash
|
||||
nmcli con down <name> # disable AP config
|
||||
```
|
||||
```bash
|
||||
nmcli con delete <name> # permanently delete AP configuration
|
||||
```
|
||||
```bash
|
||||
sudo systemctl restart NetworkManager # for config changes to take effect
|
||||
```
|
||||
```bash
|
||||
sudo nmcli device set <interface-name> managed no # make sure itnerface is not managed by NetworkManager. Can use d instead of device.
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user