eolas/neuron/14b2609c-4c92-4980-96d4-543ba5a9d0be/Network_scanning.md
2025-03-27 17:52:56 +00:00

34 lines
500 B
Markdown

---
id: ippn
tags: [networks, procedural, Linux]
created: Monday, June 10, 2024
---
# Network scanning
## List all connected devices on local WiFi network
```sh
arp-scan --interface=wlan0 --localnet
```
## Scan subnet for all connected devices (in case hiding)
```sh
nmap -sn 192.168.0.0/24
```
## Check DNS resolution
```sh
dig google.com
```
Key output:
```
;; Query time: 6 msec
;; SERVER: 192.168.0.4#53(192.168.0.4) (UDP)
;; WHEN: Wed Jun 12 18:27:27 BST 2024
;; MSG SIZE rcvd: 55
```