Legion Tools Manuell

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen

Manuelle Recon-Kette gegen opfer.secure.local

Zielhost: 10.0.10.104 (opfer.secure.local)

Portscan
  • nmap -sS -Pn -sV -p- -oA nmap-10.0.10.104 10.0.10.104
21/tcp   open  ftp
22/tcp   open  ssh
25/tcp   open  smtp
80/tcp   open  http
81/tcp   open  hosts2-ns
83/tcp   open  mit-ml-dev
110/tcp  open  pop3
111/tcp  open  rpcbind
139/tcp  open  netbios-ssn
143/tcp  open  imap
443/tcp  open  https
445/tcp  open  microsoft-ds
993/tcp  open  imaps
995/tcp  open  pop3s
2049/tcp open  nfs
3128/tcp open  squid-http
5080/tcp open  onscreen

FTP (21)

Anonymous-Login und Bannergrab prüfen
  • nmap -Pn -p21 --script ftp-anon,ftp-syst 10.0.10.104

SSH (22)

Version und Konfiguration bewerten
  • ssh-audit 10.0.10.104

SMTP (25)

Kommandos und Relay-Test prüfen
  • nmap -Pn -p25 --script smtp-commands,smtp-open-relay 10.0.10.104
Benutzer enumerieren
  • smtp-user-enum -M VRFY -U /usr/share/wordlists/metasploit/unix_users.txt -t 10.0.10.104

HTTP (80, 81, 83)

Fingerprint auf Port 80
Fingerprint auf Port 81
Fingerprint auf Port 83
Verzeichnis-Enumeration auf Port 80
Schwachstellenscan (laut)

POP3 / IMAP (110, 143, 993, 995)

Capabilities auslesen
  • nmap -Pn -p110,143,993,995 --script pop3-capabilities,imap-capabilities 10.0.10.104

RPC (111)

RPC-Dienste auflisten
  • rpcinfo -p 10.0.10.104

SMB (139, 445)

Freigaben ohne Login auflisten
  • smbclient -L //10.0.10.104/ -N
Vollständige Enumeration
  • enum4linux-ng -A 10.0.10.104
Klassisches Äquivalent
  • rpcclient -U '%' 10.0.10.104 -c 'srvinfo;enumdomusers;netshareenumall'

HTTPS (443)

TLS-Konfiguration prüfen
  • sslscan 10.0.10.104:443
Fingerprint wie bei HTTP

NFS (2049)

Exportierte Freigaben auflisten
  • showmount -e 10.0.10.104

Squid-Proxy (3128)

Proxy testen
Auf offenen Proxy prüfen
  • nmap -Pn -p3128 --script http-open-proxy 10.0.10.104

Port 5080 (onscreen, unbekannt)

Dienst manuell identifizieren
  • nmap -Pn -p5080 -sV --version-intensity 9 10.0.10.104
  • nc -nv 10.0.10.104 5080