Smb/smb lookupsid
De www.metasploit-es.com.ar
El modulo "smb_lookupsid" realiza fuerza bruta en busquedas SID en un rango de objetivos para determinar que usuarios locales existen en el sistema. Sabiendo que usuarios existen en un sistema se puede acelerar enormemente cualquier intento posterior de iniciar sesion por fuerza bruta.
msf > use auxiliary/scanner/smb/smb_lookupsid msf auxiliary(smb_lookupsid) > show options Module options: Name Current Setting Required Description ---- --------------- -------- ----------- RHOSTS yes The target address range or CIDR identifier SMBDomain WORKGROUP no The Windows domain to use for authentication SMBPass no The password for the specified username SMBUser no The username to authenticate as THREADS 1 yes The number of concurrent threads msf auxiliary(smb_lookupsid) > set RHOSTS 192.168.1.150-165 RHOSTS => 192.168.1.150-165 msf auxiliary(smb_lookupsid) > set THREADS 16 THREADS => 16 msf auxiliary(smb_lookupsid) > run [*] 192.168.1.161 PIPE(LSARPC) LOCAL(XEN-XP-SP2-BARE - 5-21-583907252-1801674531-839522115) DOMAIN(HOTZONE - ) [*] 192.168.1.154 PIPE(LSARPC) LOCAL(METASPLOITABLE - 5-21-1042354039-2475377354-766472396) DOMAIN(WORKGROUP - ) [*] 192.168.1.161 USER=Administrator RID=500 [*] 192.168.1.154 USER=Administrator RID=500 [*] 192.168.1.161 USER=Guest RID=501 [*] 192.168.1.154 USER=nobody RID=501 [*] Scanned 04 of 16 hosts (025% complete) [*] 192.168.1.154 GROUP=Domain Admins RID=512 [*] 192.168.1.161 GROUP=None RID=513 [*] 192.168.1.154 GROUP=Domain Users RID=513 [*] 192.168.1.154 GROUP=Domain Guests RID=514 [*] Scanned 07 of 16 hosts (043% complete) [*] 192.168.1.154 USER=root RID=1000 ...snip... [*] 192.168.1.154 GROUP=service RID=3005 [*] 192.168.1.154 METASPLOITABLE [Administrator, nobody, root, daemon, bin, sys, sync, games, man, lp, mail, news, uucp, proxy, www-data, backup, list, irc, gnats, libuuid, dhcp, syslog, klog, sshd, bind, postfix, ftp, postgres, mysql, tomcat55, distccd, telnetd, proftpd, msfadmin, user, service ] [*] Scanned 15 of 16 hosts (093% complete) [*] 192.168.1.161 XEN-XP-SP2-BARE [Administrator, Guest, HelpAssistant, SUPPORT_388945a0, victim ] [*] Scanned 16 of 16 hosts (100% complete) [*] Auxiliary module execution completed msf auxiliary(smb_lookupsid) >
Como comparacion, ejecutaremos tambien el escaneo utilizando un conjunto conocido de credenciales de usuario para ver las diferencias en la salida.
msf auxiliary(smb_lookupsid) > set SMBPass s3cr3t SMBPass => s3cr3t msf auxiliary(smb_lookupsid) > set SMBUser Administrator SMBUser => Administrator msf auxiliary(smb_lookupsid) > run [*] 192.168.1.160 PIPE(LSARPC) LOCAL(XEN-XP-PATCHED - 5-21-583907252-1801674531-839522115) DOMAIN(HOTZONE - ) [*] 192.168.1.161 PIPE(LSARPC) LOCAL(XEN-XP-SP2-BARE - 5-21-583907252-1801674531-839522115) DOMAIN(HOTZONE - ) [*] 192.168.1.161 USER=Administrator RID=500 [*] 192.168.1.160 USER=Administrator RID=500 [*] 192.168.1.150 PIPE(LSARPC) LOCAL(V-XPSP2-SPLOIT- - 5-21-2000478354-1965331169-725345543) DOMAIN(WORKGROUP - ) [*] 192.168.1.160 USER=Guest RID=501 [*] 192.168.1.150 TYPE=83886081 NAME=Administrator rid=500 [*] 192.168.1.161 USER=Guest RID=501 [*] 192.168.1.150 TYPE=83886081 NAME=Guest rid=501 [*] 192.168.1.160 GROUP=None RID=513 [*] 192.168.1.150 TYPE=83886082 NAME=None rid=513 [*] 192.168.1.161 GROUP=None RID=513 [*] 192.168.1.150 TYPE=83886081 NAME=HelpAssistant rid=1000 [*] 192.168.1.150 TYPE=83886084 NAME=HelpServicesGroup rid=1001 [*] 192.168.1.150 TYPE=83886081 NAME=SUPPORT_388945a0 rid=1002 [*] 192.168.1.150 TYPE=3276804 NAME=SQLServerMSSQLServerADHelperUser$DOOKIE-FA154354 rid=1003 [*] 192.168.1.150 TYPE=4 NAME=SQLServer2005SQLBrowserUser$DOOKIE-FA154354 rid=1004 ...snip... [*] 192.168.1.160 TYPE=651165700 NAME=SQLServer2005MSSQLServerADHelperUser$XEN-XP-PATCHED rid=1027 [*] 192.168.1.160 TYPE=651165700 NAME=SQLServer2005MSSQLUser$XEN-XP-PATCHED$SQLEXPRESS rid=1028 [*] 192.168.1.161 USER=HelpAssistant RID=1000 [*] 192.168.1.161 TYPE=4 NAME=HelpServicesGroup rid=1001 [*] 192.168.1.161 USER=SUPPORT_388945a0 RID=1002 [*] 192.168.1.161 USER=victim RID=1004 [*] 192.168.1.160 XEN-XP-PATCHED [Administrator, Guest, HelpAssistant, SUPPORT_388945a0, ASPNET ] [*] 192.168.1.150 V-XPSP2-SPLOIT- [ ] [*] Scanned 15 of 16 hosts (093% complete) [*] 192.168.1.161 XEN-XP-SP2-BARE [Administrator, Guest, HelpAssistant, SUPPORT_388945a0, victim ] [*] Scanned 16 of 16 hosts (100% complete) [*] Auxiliary module execution completed msf auxiliary(smb_lookupsid) >
Notaras que con el escaneo con credenciales obtienes, como siempre, una salida mucho mas interesante, incluyendo cuentas que no sabias que existian.
© Offensive Security 2009
Original de www.offensive-security.com Traducido por cbk999