# Enumeration

```
sudo nmap -sS -T4 -p- -sC -A -v -o nmap.txt 10.10.10.10
sudo nmap -sU -T4 -v -o nmapudp.txt 10.10.10.10
```

### 139, 445 -> SMB

```
nmap --script smb-vuln-* -Pn -p 445 10.10.10.10
nmap --script smb-enum-shares -Pn -p 139,445 -o smb.txt 10.10.10.10

enum4linux 10.10.10.10
enum4linux -u 'Guest' -p '' -a 10.10.10.10

smbclient \\\\10.10.10.10\\somedir -U Guest
smbclient -L 10.10.10.10 -U "" -N

smbmap -H 10.10.10.10
smbmap -u Guest -H 10.10.10.10

smbtree -S 10.10.10.10 -U Guest
```

### HTTP

```
nikto -host http://10.10.10.10/ -output nikto.txt

gobuster dir -u http://10.10.10.10/ -w /usr/share/wordlists/dirb/big.txt -o gobuster.txt
-k ignore ssl (for https)
-w ~/Desktop/directory-list-2.3-medium.txt
-w ~/Desktop/directory-list-1.0.txt
-x asp,aspx (extension)

dirb http://10.10.10.10/ -X .asp -o dirb.txt

dirbuster -u http://10.10.10.10/ -e asp -v -t 50
dirbuster
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cel1s0.gitbook.io/offsec-notes/readme/enumeration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
