Skip to content

SOCKS Proxy is not used for rhost's set to hostnames #19641

Open
@skylerknecht

Description

@skylerknecht

Steps to reproduce

How'd you do it?

  1. Start metasploit
  2. use ldap_query
  3. set rhosts hostname.local
  4. setg proxies socks5:127.0.0.1:1080
  5. Run a socks proxy, an example has been uploaded here.
  6. Run the module and see not request made to the proxy
  7. set rhosts 8.8.8.8
  8. Run the moudle and see a request made to the proxy

Were you following a specific guide/tutorial or reading documentation?

No

Expected behavior

We should see a request to the SOCKS5 proxy with the address type set to 3.

For example here's rhost set to 8.8.8.8

skyler@attacker:~$ python3 socks.py 127.0.0.1 1080
SOCKS Server running on 127.0.0.1:1080
New client connected.
Address Type: 1, 8.8.8.8:389

Current behavior

We see no request to the SOCKS5 proxy.

Metasploit version

msf6 auxiliary(gather/ldap_query) > version
Framework: 6.4.36-dev-88132657d2ba694635b604b369d4ad4d78ca2ced
Console  : 6.4.36-dev-88132657d2ba694635b604b369d4ad4d78ca2ced

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugconfirmedIssues confirmed by a committer

    Type

    No type

    Projects

    Status

    In Progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions