Skip to content

Commit dee02a0

Browse files
authored
Create basic-enumeration.md
1 parent 0ba6c68 commit dee02a0

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

basic-enumeration.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
Basic Initial Enumeration
2+
3+
## Host Discovery
4+
5+
### Using nmap
6+
7+
```
8+
nmap -sn -v -T4 $ip/$mask
9+
```
10+
11+
### Using netdiscover
12+
13+
```
14+
netdiscover -r $ip/$mask
15+
```
16+
17+
### Using ping
18+
19+
tab - windows
20+
```
21+
for /L %i in (1,1,255) do @ping.exe -n 1 -w 50 10.10.10.%i | findstr TTL
22+
```
23+
24+
tab - linux
25+
26+
```
27+
for x in (1..255); do ping -c 1 -w 50 10.10.10.x | grep TTL
28+
```
29+
30+
Change the IP `10.10.10.` to match the network you are scanning. This is set up to scan a /24 network by default, and will require some customization to do other size networks.
31+
32+
33+
## Port Enumeration
34+
35+
```bash
36+
ports=$(nmap -Pn -n -p- --min-rate=1000 -T4 10.10.10.189 | grep ^[0-9] | cut -d '/' -f1 | tr '\n' ',' | sed s/,$//)
37+
38+
nmap -vvv -n -p $ports -sC -sV
39+
```
40+
41+
if need full details scan:
42+
```bash
43+
nmap -vvv --reason -sCV -Pn -A --osscan-guess --version-all -p $ports -oA host.nmap-full
44+
```

0 commit comments

Comments
 (0)