id"
[...]
[*] Database creation complete (check for errors)
Additional Metasploit commands open up after you create or connect to a database.
msf > help
Database Backend Commands
=========================
Command Description
------- -----------
db_add_host Add one or more hosts to the database
db_add_port Add a port to host
db_autopwn Automatically exploit everything
db_hosts List all hosts in the database
db_import_nessus_nbe Import a Nessus scan result file (NBE)
db_import_nmap_xml Import a Nmap scan results file (-oX)
db_nmap Executes nmap and records the output automatically
db_services List all services in the database
db_vulns List all vulnerabilities in the database
The db_create command added a hosts table and a services table. You can use the db_
add_* commands to add hosts or ports manually, butwe will just use db_nmap to scan.
msf > db_nmap -p 445 192.168.1.0/24
Starting Nmap 4.20 ( http://insecure.org ) at 2007-07-02 21:19 GMT
Interesting ports on 192.168.1.1:
PORT STATE SERVICE
445/tcp filtered microsoft-ds
Gray Hat Hacking: The Ethical Hacker??™s Handbook
116
Interesting ports on 192.168.1.115:
PORT STATE SERVICE
445/tcp open microsoft-ds
Interesting ports on 192.168.1.220:
PORT STATE SERVICE
445/tcp open microsoft-ds
Interesting ports on 192.
Pages:
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269