Jump to content
florinul

massscaner

Recommended Posts

ceva mai complex:


for IP in `cat ips.txt` ; do

CONTOR=`ps aux | grep -c perl`

while [ $CONTOR -ge 350 ];do
CONTOR=`ps aux | grep -c perl`
sleep 60 # timeout daca ajunge la procesele stabilite mai sus adica 350
done
if [ $CONTOR -le 350 ]; then
perl expl.pl $IP &

fi
done

daca 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` ; do

CONTOR=`ps aux | grep -c perl`

while [ $CONTOR -ge 350 ];do
CONTOR=`ps aux | grep -c perl`
sleep 60 # timeout daca ajunge la procesele stabilite mai sus adica 350
killall -9 perl
done
if [ $CONTOR -le 350 ]; then
perl expl.pl $IP &

fi
done

Link to comment
Share on other sites

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

Link to comment
Share on other sites

ceva mai complex:


for IP in `cat ips.txt` ; do

CONTOR=`ps aux | grep -c perl`

while [ $CONTOR -ge 350 ];do
CONTOR=`ps aux | grep -c perl`
sleep 60 # timeout daca ajunge la procesele stabilite mai sus adica 350
done
if [ $CONTOR -le 350 ]; then
perl expl.pl $IP &

fi
done

daca 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` ; do

CONTOR=`ps aux | grep -c perl`

while [ $CONTOR -ge 350 ];do
CONTOR=`ps aux | grep -c perl`
sleep 60 # timeout daca ajunge la procesele stabilite mai sus adica 350
killall -9 perl
done
if [ $CONTOR -le 350 ]; then
perl expl.pl $IP &

fi
done

scuza-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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...