This is already built into the db_autopwn command, if I understand your question. The following will scan a host for HTTP daemon and then run all exploits that match the port.
db_nmap 1.1.1.1 -p80
db_autopwn -t -p -e
Hello
My question is - how to make script that will scan ports of host given in argument and will try to make autopwn of this host by metasploit.
Regards
xsoti
This is already built into the db_autopwn command, if I understand your question. The following will scan a host for HTTP daemon and then run all exploits that match the port.
db_nmap 1.1.1.1 -p80
db_autopwn -t -p -e
I got 99 problems but the bits ain't one...
I know how to do it from metasploit framework, but i need to do it from shell level, i want to make something like that: when somone connect to page i made, automatically this page will get his ip adress and run script who will scan all ports and make autopwn at this ports.
Sorry for english
Regards
xsoti
i know that this command is in metasploit framework but i want to make script that will do it from shell level smth like $echo -e "db db_nmap 1.1.1.1 -p80 \n db_autopwn -t -p -e" >> code; chmod +x code; ./code but it won`t work so my question is how to do it right :]
regards
xsoti