Closed mohammed-sec2010 closed 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
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.