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

Support input from file for option rhosts windows #19060

Open
lolminerxmrig opened this issue Apr 5, 2024 · 9 comments
Open

Support input from file for option rhosts windows #19060

lolminerxmrig opened this issue Apr 5, 2024 · 9 comments
Labels
question Questions about Metasploit Usage Stale Marks an issue as stale, to be closed if no action is taken

Comments

@lolminerxmrig
Copy link

Hi.
me try Using :

image

not work, can help me fixed.

@lolminerxmrig lolminerxmrig added the question Questions about Metasploit Usage label Apr 5, 2024
@adfoster-r7
Copy link
Contributor

Does this work?

set rhosts c:/1.txt

@lolminerxmrig
Copy link
Author

lolminerxmrig commented Apr 5, 2024

no, not work.

msf6 exploit(windows/rdp/cve_2019_0708_bluekeep_rce) > run

[-] c:/1.txt:3389 - Msf::OptionValidateError The following options failed to validate:
[-] c:/1.txt:3389 - Invalid option RHOSTS: Host resolution failed: c:/1.txt

@lolminerxmrig
Copy link
Author

image

@adfoster-r7
Copy link
Contributor

set rhosts file:c:/1.txt

@lolminerxmrig
Copy link
Author

set rhosts file:c:/1.txt

Not work
You see
#19060 (comment)

@bcoles
Copy link
Contributor

bcoles commented Apr 6, 2024

set rhosts file:c:/1.txt

Not work You see #19060 (comment)

That screenshot shows set rhosts file:C:\1.txt not set rhosts file:c:/1.txt.

@lolminerxmrig
Copy link
Author

why?

image

@nrathaus
Copy link
Contributor

nrathaus commented Apr 10, 2024

Can you try with just set RHOSTS file:somefilename.txt where the somefilename.txt is the in the folder where you launched msfconsole?

At least on Linux I see it working as expected

I want to clarify that the code exists in lib/msf/core/rhosts_walker.rb and doesn't distinguish between Windows and Linux

Copy link

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.

@github-actions github-actions bot added the Stale Marks an issue as stale, to be closed if no action is taken label May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Questions about Metasploit Usage Stale Marks an issue as stale, to be closed if no action is taken
Projects
None yet
Development

No branches or pull requests

4 participants