msf > use scanner/smb/smb_version
msf auxiliary(smb_version) > show optionsModule options (auxiliary/scanner/smb/smb_version):Name Current Setting Required Description---- --------------- -------- -----------RHOSTS yes The target address range or CIDR identifierSMBDomain WORKGROUP no The Windows domain to use for authenticationSMBPass no The password for the specified usernameSMBUser no The username to authenticate asTHREADS 1 yes The number of concurrent threadsmsf auxiliary(smb_version) > set RHOSTS 192.168.119.132
RHOSTS => 192.168.119.132
msf auxiliary(smb_version) > run[*] 192.168.119.132:139 is running Windows XP Service Pack 3 (language: Chinese - Traditional) (name:PC-201403241103) (domain:WORKGROUP)
[*] Scanned 1 of 1 hosts (100% complete)
[*] Auxiliary module execution completed
2.搜索配置不當的Microsoft SQL Server 配置不當的Microsoft SQL Server(MS SQL)通常是竟如目標系統的第一個后門 MS SQL安裝后,它默認監聽在TCP端口1433上或使用隨機的動態TCP端口。如果在隨機的TCP端口上進行MS SQL監聽,只需要簡單的對UDP端口1434進行查詢,便能或缺這個隨機的TCP端口號。Metasploit有一個模塊mssql_ping可以實現該操作
msf > use scanner/mssql/mssql_ping
msf auxiliary(mssql_ping) > show optionsModule options (auxiliary/scanner/mssql/mssql_ping):Name Current Setting Required Description---- --------------- -------- -----------PASSWORD no The password for the specified usernameRHOSTS yes The target address range or CIDR identifierTHREADS 1 yes The number of concurrent threadsUSERNAME sa no The username to authenticate asUSE_WINDOWS_AUTHENT false yes Use windows authentification (requires DOMAIN option set)msf auxiliary(mssql_ping) > set RHOSTS 192.168.119.132
RHOSTS => 192.168.119.132
msf auxiliary(mssql_ping) > set THREADS 255
THREADS => 255
msf auxiliary(mssql_ping) > run[*] Scanned 1 of 1 hosts (100% complete)
[*] Auxiliary module execution completed
我安裝的是SQL Server版本如下:
Microsoft SQL Server Management Studio 9.00.1399.00
Microsoft Analysis Services 客戶端工具 2005.090.1399.00
Microsoft 數據訪問組件 (MDAC) 2000.085.1132.00 (xpsp.080413-0852)
Microsoft MSXML 2.6 3.0 5.0 6.0
Microsoft Internet Explorer 8.0.6001.18702
Microsoft .NET Framework 2.0.50727.42
操作系統 5.1.2600
msf > use scanner/ssh/ssh_version
msf auxiliary(ssh_version) > show optionsModule options (auxiliary/scanner/ssh/ssh_version):Name Current Setting Required Description---- --------------- -------- -----------RHOSTS yes The target address range or CIDR identifierRPORT 22 yes The target portTHREADS 1 yes The number of concurrent threadsTIMEOUT 30 yes Timeout for the SSH probemsf auxiliary(ssh_version) > set RHOSTS 192.168.119.144
RHOSTS => 192.168.119.144
msf auxiliary(ssh_version) > run[*] 192.168.119.144:22, SSH server version: SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2
[*] Scanned 1 of 1 hosts (100% complete)
[*] Auxiliary module execution completed
msf auxiliary(ssh_version) >
4.FTP掃描
FTP是一種復雜且缺乏安全性的應用層協議,FTP服務器經常是進入一個目標網絡最便捷的途徑
msf auxiliary(anonymous) > use scanner/ftp/ftp_version
msf auxiliary(ftp_version) > show optionsModule options (auxiliary/scanner/ftp/ftp_version):Name Current Setting Required Description---- --------------- -------- -----------FTPPASS mozilla@example.com no The password for the specified usernameFTPUSER anonymous no The username to authenticate asRHOSTS 192.168.119.141 yes The target address range or CIDR identifierRPORT 21 yes The target portTHREADS 1 yes The number of concurrent threadsmsf auxiliary(ftp_version) > set RHOSTS 192.126.119.48
RHOSTS => 192.126.119.48
msf auxiliary(ftp_version) > run[*] 192.126.119.48:21 FTP Banner: '220 Microsoft FTP Service\x0d\x0a'
[*] Scanned 1 of 1 hosts (100% complete)
[*] Auxiliary module execution completed