Legion Tools Manuell: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
 
(3 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
== Manuelle Recon-Kette gegen opfer.secure.local ==
+
== Tools die wir brauchen ==
 +
*sudo apt install -y ssh-audit
  
Zielhost: 10.88.215.104 (Platzhalter, real 10.0.10.104, opfer.secure.local)
 
  
 +
== Manuelle Recon-Kette gegen opfer.secure.local ==
 +
Zielhost: 10.0.10.104 (opfer.secure.local)
 
;Portscan
 
;Portscan
*nmap -sS -Pn -sV -p- -oA nmap-10.88.215.104 10.88.215.104
+
*nmap -sS -Pn -sV -p- -oA nmap-10.0.10.104 10.0.10.104
 +
<pre>
 +
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)
  
<pre>
 
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
 
 
</pre>
 
</pre>
  
 
== FTP (21) ==
 
== FTP (21) ==
 
 
;Anonymous-Login und Bannergrab prüfen
 
;Anonymous-Login und Bannergrab prüfen
*nmap -Pn -p21 --script ftp-anon,ftp-syst 10.88.215.104
+
*nmap -Pn -p21 --script ftp-anon,ftp-syst 10.0.10.104
 
 
 
== SSH (22) ==
 
== SSH (22) ==
 
 
;Version und Konfiguration bewerten
 
;Version und Konfiguration bewerten
*ssh-audit 10.88.215.104
+
*ssh-audit 10.0.10.104
 
 
 
== SMTP (25) ==
 
== SMTP (25) ==
 
 
;Kommandos und Relay-Test prüfen
 
;Kommandos und Relay-Test prüfen
*nmap -Pn -p25 --script smtp-commands,smtp-open-relay 10.88.215.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.88.215.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
*whatweb http://10.88.215.104:80/
+
*whatweb http://10.0.10.104:80/
 
 
 
;Fingerprint auf Port 81
 
;Fingerprint auf Port 81
*whatweb http://10.88.215.104:81/
+
*whatweb http://10.0.10.104:81/
 
 
 
;Fingerprint auf Port 83
 
;Fingerprint auf Port 83
*whatweb http://10.88.215.104:83/
+
*whatweb http://10.0.10.104:83/
 
 
 
;Verzeichnis-Enumeration auf Port 80
 
;Verzeichnis-Enumeration auf Port 80
*gobuster dir -u http://10.88.215.104:80/ -w /usr/share/wordlists/dirb/common.txt -t 30 -x php,txt,html
+
*gobuster dir -u http://10.0.10.104:80/ -w /usr/share/wordlists/dirb/common.txt -t 30 -x php,txt,html
 
 
 
;Schwachstellenscan (laut)
 
;Schwachstellenscan (laut)
*nikto -h http://10.88.215.104:80/
+
*nikto -h http://10.0.10.104:80/
 
 
 
== POP3 / IMAP (110, 143, 993, 995) ==
 
== POP3 / IMAP (110, 143, 993, 995) ==
 
 
;Capabilities auslesen
 
;Capabilities auslesen
*nmap -Pn -p110,143,993,995 --script pop3-capabilities,imap-capabilities 10.88.215.104
+
*nmap -Pn -p110,143,993,995 --script pop3-capabilities,imap-capabilities 10.0.10.104
 
 
 
== RPC (111) ==
 
== RPC (111) ==
 
 
;RPC-Dienste auflisten
 
;RPC-Dienste auflisten
*rpcinfo -p 10.88.215.104
+
*rpcinfo -p 10.0.10.104
 
 
 
== SMB (139, 445) ==
 
== SMB (139, 445) ==
 
 
;Freigaben ohne Login auflisten
 
;Freigaben ohne Login auflisten
*smbclient -L //10.88.215.104/ -N
+
*smbclient -L //10.0.10.104/ -N
 
 
 
;Vollständige Enumeration
 
;Vollständige Enumeration
*enum4linux-ng -A 10.88.215.104
+
*enum4linux-ng -A 10.0.10.104
 
 
 
;Klassisches Äquivalent
 
;Klassisches Äquivalent
*rpcclient -U '%' 10.88.215.104 -c 'srvinfo;enumdomusers;netshareenumall'
+
*rpcclient -U '%' 10.0.10.104 -c 'srvinfo;enumdomusers;netshareenumall'
 
 
 
== HTTPS (443) ==
 
== HTTPS (443) ==
 
 
;TLS-Konfiguration prüfen
 
;TLS-Konfiguration prüfen
*sslscan 10.88.215.104:443
+
*sslscan 10.0.10.104:443
 
 
 
;Fingerprint wie bei HTTP
 
;Fingerprint wie bei HTTP
*whatweb https://10.88.215.104/
+
*whatweb https://10.0.10.104/
 
 
 
== NFS (2049) ==
 
== NFS (2049) ==
 
 
;Exportierte Freigaben auflisten
 
;Exportierte Freigaben auflisten
*showmount -e 10.88.215.104
+
*showmount -e 10.0.10.104
 
 
 
== Squid-Proxy (3128) ==
 
== Squid-Proxy (3128) ==
 
 
;Proxy testen
 
;Proxy testen
*curl -x http://10.88.215.104:3128/ http://example.com/ -v
+
*curl -x http://10.0.10.104:3128/ http://example.com/ -v
 
 
 
;Auf offenen Proxy prüfen
 
;Auf offenen Proxy prüfen
*nmap -Pn -p3128 --script http-open-proxy 10.88.215.104
+
*nmap -Pn -p3128 --script http-open-proxy 10.0.10.104
 
 
 
== Port 5080 (onscreen, unbekannt) ==
 
== Port 5080 (onscreen, unbekannt) ==
 
 
;Dienst manuell identifizieren
 
;Dienst manuell identifizieren
*nmap -Pn -p5080 -sV --version-intensity 9 10.88.215.104
+
*nmap -Pn -p5080 -sV --version-intensity 9 10.0.10.104
*nc -nv 10.88.215.104 5080
+
*nc -nv 10.0.10.104 5080

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