r00t-3xp10it / resource_files

mosquito - Automating reconnaissance and brute force attacks
https://github.com/r00t-3xp10it/hacking-material-books/blob/master/metasploit-RC%5BERB%5D/metasploit_resource_files.md#metasploit-resource-files
127 stars 39 forks source link

Exploit failed: One or more options failed to validate: LHOST. #2

Closed mohammed-sec2010 closed 3 years ago

mohammed-sec2010 commented 3 years ago

Hi msfconsole -q -x "setg RHOSTS $rhost;setg LHOST$IPADDR;setg MAX_PORTS true;resource mass_exploiter.rc"

I use the above line but I got this error :

[-] 192.168.1.156:23 - Exploit failed: One or more options failed to validate: LHOST.

mohammed-sec2010 commented 3 years ago

I solved it by extract only IP :(linux mint) InT3R=netstat -r | grep "default" | awk {'print $8'} IPADDR=ifconfig $InT3R | egrep -w "inet" | awk {'print $2'} | grep -E -o "([0-9]{1,3}[\.]){3}[0-9]{1,3}" # grab local ip address