0

I have confirmed that msfconsole is connected to the database, and I have issued to the following commands...

msf5 > db_status
[*] Connected to remote_data_service: (https://localhost:5443). Connection type: http. Connection name: local-https-data-service.

then

msf5 > db_import /home/user/hosts
[*] Successfully imported /home/user/hosts
msf5 > hosts

Hosts
=====

address  mac  name  os_name  os_flavor  os_sp  purpose  info  comments
-------  ---  ----  -------  ---------  -----  -------  ----  --------

db_hosts

msf5 > db_hosts
[-] The db_hosts command is DEPRECATED
[-] Use hosts instead

Hosts
=====

address  mac  name  os_name  os_flavor  os_sp  purpose  info  comments
-------  ---  ----  -------  ---------  -----  -------  ----  --------

cat /home/user/hosts returns:

192.168.2.34
192.168.2.35
192.168.2.36
192.168.2.37
192.168.2.38

Any ideas what I am doing wrong?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.