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

Some issue on every Auxiliary modules parsing RHOSTS #8408

Closed
1 task done
BlackMathIT opened this issue May 18, 2017 · 7 comments
Closed
1 task done

Some issue on every Auxiliary modules parsing RHOSTS #8408

BlackMathIT opened this issue May 18, 2017 · 7 comments
Labels
bug Stale Marks an issue as stale, to be closed if no action is taken

Comments

@BlackMathIT
Copy link

BlackMathIT commented May 18, 2017

Every auxiliary module fails to validate RHOSTS passing a file or single occurrency when one or more of the target machine aren't available on the network, receiving the "Auxiliary failed:Msf::OptionValidateError The following options failed to validate: RHOSTS" error.

We suppose the module have some issue when it encounters a not solved dnsname as unique entry or inside a file list, so this stops the start of the module without parsing anything.
Obviously we would like to expects to skip the bad entry or entries and then go on when it happen..

Steps to reproduce

msf auxiliary(smb_ms17_010) > set rhosts fakeMachineName, rightMachineName
msf auxiliary(smb_ms17_010) > run
[-] Auxiliary failed: Msf::OptionValidateError The following options failed to validate: RHOSTS.

Metasploit version

Framework: 4.14.16-dev
Console : 4.14.16-dev

same on:
Framework: 4.14.17-dev
Console : 4.14.17-dev

I installed Metasploit with:

  • Kali package via apt

OS

4.9.0-kali4-amd64 #1 SMP Debian 4.9.25-1kali1 (2017-05-04) x86_64 GNU/Linux

@busterb
Copy link
Member

busterb commented May 18, 2017

@clee-r7 / @darkbushido this is right in your wheelhouse

@BlackMathIT
Copy link
Author

BlackMathIT commented May 18, 2017

We thing there is something wrong because if we want to scan a list of machines entries on a domain it's unbeliveable that we have to check if they are alive on the net before....

@busterb
Copy link
Member

busterb commented May 18, 2017

It don't believe it checks if they are alive, it just tries to convert the DNS entries into IP addresses. I'm guessing your file contains a list of hostnames?

@BlackMathIT
Copy link
Author

You right, as we have written in the first post "We suppose the module have some issue when it encounters a not solved dnsname" so we are telling the same... in any case yes we have a list of hostnames

@BlackMathIT BlackMathIT changed the title Some issue on Auxiliary module with RHOSTS Some issue on Auxiliary modules with RHOSTS May 23, 2017
@BlackMathIT BlackMathIT changed the title Some issue on Auxiliary modules with RHOSTS Some issue on every Auxiliary modules parsing RHOSTS May 23, 2017
@carnal0wnage
Copy link
Contributor

ran into this awhile back. here is my workaround http://carnal0wnage.attackresearch.com/2015/08/metasploit-vhosts-in-mass.html

@busterb busterb added the bug label Aug 29, 2017
@github-actions
Copy link

github-actions bot commented Jan 6, 2021

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 Jan 6, 2021
@github-actions
Copy link

github-actions bot commented Feb 8, 2021

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.

@github-actions github-actions bot closed this as completed Feb 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Stale Marks an issue as stale, to be closed if no action is taken
Projects
None yet
Development

No branches or pull requests

3 participants