Closed dan-leech closed 3 years ago
In case this helps at all - I'm new at this and hit this in 5.0.16-dev-0c7e589d
.
However I noticed that if you scanned a larger address range (or do something to make the scheduled job run for longer) you can see it via rpc.call('job.list')
and rpc.call('job.info')
. If the job is short lived it won't appear in the list of active jobs. This is similar how msfconsole works if you do run -j
.
From what I can tell it seems that the only way to obtain some of the results from the scan is via the rpc.call('db.*)
family of calls. So you can do things like db.hosts
, db.services
and db.vulns
as per rpc_db.rb.
In my case I would like to have access to the auxiliary scanner output (ideally in a useful format). It does not seem currently possible to set LocalOutput
which would potentially allow at least the capture of the auxiliary scanner output to file at least. So the only way I can figure out how to do this is via console.*
commands.
@dan-leech the same error. solved yet?
Hi!
This issue has been left open with no activity for a while now.
We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 30 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open!
As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request.
Hi again!
It’s been 60 days since anything happened on this issue, so we are going to close it. Please keep in mind that I’m only a robot, so if I’ve closed this issue in error please feel free to reopen this issue or create a new one if you need anything else.
As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request.
Steps to reproduce
ruby msfrpcd -U user -P pass -S
ruby msfrpc -U user -P pass -a 0.0.0.0 -S
rpc.call('module.execute', 'auxiliary', 'scanner/http/wordpress_scanner', { "RHOSTS": "0.0.0.0" })
rpc.call('job.info', job_id_from__the_previous_command_result)
rpc.call('job.list')
Expected behavior
I want to take the job result somehow. Maybe I do something wrong and job has been done already...
Current behavior
I get Exception:
System stuff
Metasploit version
{"version"=>"5.0.13-dev-2bb0d84", "ruby"=>"2.6.1 x86_64-linux 2019-01-30", "api"=>"1.0"}
I installed Metasploit with:
"ruby"=>"2.6.1 x86_64-linux 2019-01-30"
OS
What OS are you running Metasploit on? NAME="Linux Mint" VERSION="18.2 (Sonya)" PRETTY_NAME="Linux Mint 18.2" VERSION_CODENAME=sonya UBUNTU_CODENAME=xenial