Legion Tools Manuell: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
 
Zeile 52: Zeile 52:
 
*nmap -Pn -p25 --script smtp-commands,smtp-open-relay 10.0.10.104
 
*nmap -Pn -p25 --script smtp-commands,smtp-open-relay 10.0.10.104
 
;Benutzer enumerieren
 
;Benutzer enumerieren
*smtp-user-enum -M VRFY -U /usr/share/wordlists/metasploit/unix_users.txt -t 10.0.10.104
+
*smtp-user-enum -M VRFY -U /usr/share/wordlists/metasploit/unix_users.txt -t 10.0.10.104 | grep exists
 +
 
 
== HTTP (80, 81, 83) ==
 
== HTTP (80, 81, 83) ==
 
;Fingerprint auf Port 80
 
;Fingerprint auf Port 80

Aktuelle Version vom 19. August 2026, 13:45 Uhr

Tools die wir brauchen

  • sudo apt install -y ssh-audit


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
Starting Nmap 7.99 ( https://nmap.org ) at 2026-08-19 15:38 +0200
Nmap scan report for opfer.secure.local (10.0.10.104)
Host is up (0.000056s latency).
Not shown: 65509 closed tcp ports (reset)
PORT      STATE SERVICE     VERSION
21/tcp    open  ftp         vsftpd 3.0.3
22/tcp    open  ssh         OpenSSH 7.6p1 Ubuntu 4 (Ubuntu Linux; protocol 2.0)
25/tcp    open  smtp        Postfix smtpd
80/tcp    open  http        Apache httpd 2.4.29 ((Ubuntu))
81/tcp    open  http        Apache httpd 2.4.25 ((Debian))
83/tcp    open  mit-ml-dev?
110/tcp   open  pop3        Dovecot pop3d
111/tcp   open  rpcbind     2-4 (RPC #100000)
139/tcp   open  netbios-ssn Samba smbd 3.X - 4.X (workgroup: WORKGROUP)
143/tcp   open  imap        Dovecot imapd (Ubuntu)
443/tcp   open  ssl/http    Apache httpd 2.4.29 ((Ubuntu))
445/tcp   open  netbios-ssn Samba smbd 3.X - 4.X (workgroup: WORKGROUP)
993/tcp   open  ssl/imap    Dovecot imapd (Ubuntu)
995/tcp   open  ssl/pop3    Dovecot pop3d
2049/tcp  open  nfs         3-4 (RPC #100003)
3128/tcp  open  http-proxy  Squid http proxy 3.5.27
5080/tcp  open  http        Apache httpd 2.4.54 ((Debian))
5081/tcp  open  http        Apache httpd 2.4.54 ((Debian))
5082/tcp  open  http        Apache httpd
5389/tcp  open  ldap        OpenLDAP 2.2.X - 2.3.X
5443/tcp  open  ssl/http    Apache httpd 2.4.54 ((Debian))
6556/tcp  open  check_mk    check_mk extension for Nagios 2.0.0p38
36915/tcp open  mountd      1-3 (RPC #100005)
39047/tcp open  mountd      1-3 (RPC #100005)
44091/tcp open  mountd      1-3 (RPC #100005)
45193/tcp open  nlockmgr    1-4 (RPC #100021)

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 | grep exists

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