Home » Fix Metasploit error “The following options failed to validate: RHOSTS”

Fix Metasploit error “The following options failed to validate: RHOSTS”

by blackMOREOps
14 comments

 

Fix Metasploit error “The following options failed to validate: RHOSTS”

 

The Metasploit Project is a computer security project that provides information about security vulnerabilities and aids in penetration testing and IDS signature development.

Its best-known sub-project is the open source Metasploit Framework, a tool for developing and executing exploit code against a remote target machine. Other important sub-projects include the Opcode Database, shellcode archive and related research.

The Metasploit Project is well known for its anti-forensic and evasion tools, some of which are built into the Metasploit Framework.

How to pentest Remote PC (Windows 2003 server) with Metasploits - blackMORE Ops

Some users get this error “The following options failed to validate: RHOSTS”

NOTE: This is not an error in Metasploit or in Kali Linux, it’s rather a syntax error on users end. Quite trivial, but an error nevertheless.

When setting RHOSTS you might encounter this error.

msf auxiliary(syn) > set RHOST 10.10.0.7

RHOST => 10.10.0.7

msf auxiliary(syn) > run

[-] Auxiliary failed: Msf::OptionValidateError The following options failed to validate: RHOSTS.

It’s because you’re using RHOST instead of RHOSTS. Even if you have single IP instead of multiple, you’ll have to use RHOSTS and it will work fine.

msf (syn) > set RHOSTS 10.10.0.7
msf (syn) > run

This should fix this little error. Hope that helps someone. Thanks for reading, please share.

You may also like

14 comments

De April 20, 2014 - 5:37 am

That really help

Reply
dX September 3, 2014 - 5:50 am

Thank you. Extremely grateful!

Reply
li September 23, 2014 - 8:29 pm

thank you

Reply
Hasan Madni February 21, 2015 - 4:54 pm

Thanks am using RHOST instead of RHOSTS thanks again

Reply
meidal1 April 15, 2015 - 3:35 am

Same error.
Not helpfull.

Reply
Hatim Juzer April 30, 2015 - 10:32 pm

worked fine…thanks for helping…:)

Reply
Kali Novice August 18, 2015 - 5:16 pm

Thank you. Super grateful! :)

Reply
ytryr August 29, 2015 - 5:59 pm

hghf ytutyu

Reply
ADSAj October 22, 2015 - 8:27 pm

Thanks a lot!

Reply
Mindnumb June 4, 2016 - 2:55 am

using armitage msf scan and still receiving auxiliary failed: msf: :option validateError the following options failed to validate rhosts

Reply
Paul Bugeja September 24, 2016 - 1:51 am

Hi,
I am using the auxiliary(ssh_login_pubkey) > run with the following result
Auxiliary failed: Msf::OptionValidatorError The following options failed to validate: KEY_PATH.

Reply
duh November 23, 2017 - 2:38 am

he cant fix that.. he isnt capable

Reply
naresh June 2, 2019 - 3:38 am

Error: The following options failed to validate: LPORT. plz help me

Reply
unknown March 31, 2021 - 8:03 pm

same problem please help anyone

Reply

Leave your solution or comment to help others. Comment don't need registration or real email, so feel free.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

About Us

blackMORE Ops - touch-icon-72x72

blackMORE Ops” does not promote, encourages and excite hackers, its purpose is to make people aware that what is going around. Know Hacking but No Hacking!

Feature Posts

Newsletter