1. Lakukan Scanning terhadap jaringan dan disimpan menjadi file hasilscan.xml
root@gilakomputer:~# nmap -Pn -sS -A -oX hasilscan 192.168.0.0/24
2. Buka Metasploit dan import hasil scanning nmap menggunakan perintah db_import agar tersimpan didalam database. Untuk melihat apakah data yang kita Import berhasil gunakan perintah hosts berikut contohnya:
msf > db_import /root/hasilscan
[*] Importing 'Nmap XML' data
[*] Import: Parsing with 'Nokogiri v1.4.3.1'
[*] Importing host 192.168.0.1
[*] Importing host 192.168.0.100
[*] Importing host 192.168.0.102
[*] Successfully imported /root/hasilscan
msf > hosts
Hosts
=====
address mac name os_name os_flavor os_sp purpose info comments
------- --- ---- ------- --------- ----- ------- ---- --------
192.168.0.1 B0:48:7A:E7:49:2E Wind River VxWorks device
192.168.0.100 Linux 2.6.X device
192.168.0.102 00:19:21:1D:E9:C5 Microsoft Windows XP device
msf > hosts -c address
Hosts
=====
address
-------
192.168.0.1
192.168.0.100
192.168.0.102
About Unknown
Hi, My Name is David Setiawan.

0 komentar:
Posting Komentar