Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rpc not starting listener #19853

Open
fabpiaf opened this issue Feb 3, 2025 · 0 comments
Open

rpc not starting listener #19853

fabpiaf opened this issue Feb 3, 2025 · 0 comments
Labels

Comments

@fabpiaf
Copy link

fabpiaf commented Feb 3, 2025

Steps to reproduce

How'd you do it?

curl:

#server
bundle exec thin --rackup msf-json-rpc.ru --address 0.0.0.0 --port 8082 --environment production --tag msf-json-rpc start

#client
curl --request POST --url http://localhost:8082/api/v1/json-rpc --header 'Content-Type: application/json' --data @- <<EOS
{
        "jsonrpc": "2.0",
        "method": "module.execute",
        "id": 2,
        "params":["exploit",
        "exploit/multi/handler",
        {
            "PAYLOAD": "windows/x64/meterpreter_reverse_https",
        }]
}
EOS
                                                                                                                           
{"jsonrpc":"2.0","result":{"job_id":null,"uuid":"zghk87ml"},"id":2}%                                                                                                                                                                           curl --request POST \
  --url http://localhost:8082/api/v1/json-rpc \
  --header 'Content-Type: application/json' \
  --data '{
    "jsonrpc": "2.0",
    "method": "module.running_stats",
    "id": 1,
    "params": []
}'                     
{"jsonrpc":"2.0","result":{"waiting":[],"running":[],"results":[]},"id":1}   

rpc (like #16580 (comment))

>> rpc.call("module.execute", "exploit", "exploit/multi/handler", {"PAYLOAD": "windows/x64/meterpreter_reverse_https"}) 
=> {"job_id"=>nil, "uuid"=>"t8k1z5p5"}
>> rpc.call("module.running_stats")
=> {"waiting"=>[], "running"=>[], "results"=>[]}

This section should also tell us any relevant information about the
environment; for example, if an exploit that used to work is failing,
tell us the victim operating system and service versions.

Expected behavior

Listener running and rpc repsonse stating exactly this

Current behavior

Listener is not running

Metasploit version

Get this with the version command in msfconsole (or git log -1 --pretty=oneline for a source install).

157763b2afa7ac990bc5a4e9a1bd1cfc25cdd58c (HEAD -> master, origin/master, origin/HEAD) automatic module_metadata_base.json update

In docker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

1 participant