Jump to content

[help] Nexpose Integration With Metasploit


fapafap

Recommended Posts

Hello, trying to integrate nexpose with metasploite but getting an error after nexpose scan:

Connecting to Nexpose instance at localhost:3780 with username root...

msf > nexpose_scan -x 192.168.0.6

[*] Scanning 1 addresses with template pentest-audit in sets of 32

[-] Error while running command nexpose_scan: NexposeAPI: Action failed: Nexpose service is not available

Call stack:

/opt/framework/msf3/lib/rapid7/nexpose.rb:211:in `execute'

/opt/framework/msf3/lib/rapid7/nexpose.rb:654:in `execute'

/opt/framework/msf3/lib/rapid7/nexpose.rb:265:in `scan_statistics'

/opt/framework/msf3/plugins/nexpose.rb:532:in `cmd_nexpose_scan'

/opt/framework/msf3/lib/rex/ui/text/dispatcher_shell.rb:380:in `run_command'

/opt/framework/msf3/lib/rex/ui/text/dispatcher_shell.rb:342:in `block in run_single'

/opt/framework/msf3/lib/rex/ui/text/dispatcher_shell.rb:336:in `each'

/opt/framework/msf3/lib/rex/ui/text/dispatcher_shell.rb:336:in `run_single'

/opt/framework/msf3/lib/rex/ui/text/shell.rb:199:in `run'

/opt/framework/msf3/msfconsole:134:in `<main>'

However, in console the following was displayed which showed the scan worked(extract):

t)

Nexpose 2012-01-01T19:01:07 [192.168.0.6] Closing service: CifsDomain[192.168.0.6:445] (source: CIFS-NT-0002)

Nexpose 2012-01-01T19:01:07 [192.168.0.6] Closing service: CifsConnection[METASPLOITABLE/192.168.0.6:445] (source: CIFS-NT-0001)

Scan 2012-01-01T19:21:04 [site: Metasploit-1325443802] Scan [Metasploit-1325443802] completed in 30 minutes 46 seconds

Nexpose 2012-01-01T19:21:08 WARNING: CMS Old Gen memory usage at 88% capacity (init = 260046848(253952K) used = 685582216(669513K) committed = 771751936(753664K) max = 771751936(753664K))

Scan 2012-01-01T19:21:19 [site: Metasploit-1325443802] Scan [Metasploit-1325443802] discovered 1 live devices, 73 vulnerabilities.

Nexpose 2012-01-01T19:21:19 WARNING: CMS Old Gen memory usage at 88% capacity (init = 260046848(253952K) used = 681920544(665938K) committed = 771751936(753664K) max = 771751936(753664K))

Nexpose 2012-01-01T19:21:21 Attempting to stop most recent report generation activity (650.3 MB\736 MB)

Nexpose 2012-01-01T19:21:38 WARNING: CMS Old Gen memory usage at 88% capacity (init = 260046848(253952K) used = 681660504(665684K) committed = 771751936(753664K) max = 771751936(753664K))

Nexpose 2012-01-01T19:21:38 Attempting to stop most recent report generation activity (650.1 MB\736 MB)

Nexpose 2012-01-01T19:21:40 Attempting to stop most recent report generation activity (650.1 MB\736 MB)

ScanMgr 2012-01-01T19:21:59 Scan default:3 is being stopped.

ScanIntegrat2012-01-01T19:22:36 Correlating asset information for scan ID default:3

ScanIntegrat2012-01-01T19:22:50 Performing data transformations for scan ID default:3

ScanIntegrat2012-01-01T19:22:56 Updating synopsis for scan ID 3

ScanIntegrat2012-01-01T19:23:09 Full-text indexing device data for scan ID 3

ScanIntegrat2012-01-01T19:23:11 Completed integration of results for scan ID default:3

WebContentGe2012-01-01T19:23:22 Queueing web content generation for scan default:3...

WebContentGe2012-01-01T19:23:35 Finished queueing web content generation for scan default:3.

WebContentGe2012-01-01T19:23:35 Generating web content for site default:3...

WebContentGe2012-01-01T19:24:49 Finished generating web content for site default:3

ReportManage2012-01-01T19:24:57 Generating report: Metasploit Export 1325443802

Nexpose 2012-01-01T19:24:57 NeXposeSimpleXMLReportExporter exporting to /opt/rapid7/nexpose/nsc/htroot/reports/00000003/00000003

I know its working then, but not sure why the error? I am running Backtrack5r1. The command sequence went:

In metasploit:

msf > load nexpose

msf > nexpose_connect myusername:mypassword@localhost:port

msf > nexpose_scan -x 192.168.0.6 - which is the VM I have metasploitable setup on. Nmap scan on this host shows that its reacheable.

Edited by fapafap
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...