Jump to content

HELP!!!!!! Need protection DDOS & FLOOD


Recommended Posts

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

maybe this kid you said he flood the login port or the game port if something like this happen do this:

1. Open putty
2. write ee ddos.sh
3. paste this code:

Spoiler

#!/bin/sh
FR_MIN_CONN=200
TMP_PREFIX='/tmp/frrr'
TMP_FILE=`mktemp $TMP_PREFIX.XXXXXXXX`
/usr/bin/netstat -nu -f inet| awk '{if(NR>2 && NF=6) print $5}' | cut -d. -f1-4 | grep '^[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}$' | sort | uniq -c | sort -nr > $TMP_FILE
while read line; do
 CURR_LINE_CONN=$(echo $line | cut -d" " -f1)
 CURR_LINE_IP=$(echo $line | cut -d" " -f2)
 if [ $CURR_LINE_CONN -lt $FR_MIN_CONN ]; then
 break
 fi
/sbin/route -q add $CURR_LINE_IP 127.0.0.1
/bin/echo $CURR_LINE_IP >> /root/banlist.txt
/bin/echo "Subject: $CURR_LINE_IP ipden $CURR_LINE_CONN Connect Refused." | /usr/sbin/sendmail -F [email protected] -t [email protected]
done < $TMP_FILE
/bin/rm -f $TMP_PREFIX.*

4.write on putty again: ee banlist.txt
5.give permisions 777 to this two files
6. when this guy flood you just press on putty: sh ddos.sh
if this dont work it means is not Ddos or something like this. check your p2ports (change them if you have the defaults)

Untitled.png

Link to comment
Share on other sites

thanks ! everytime that my server is down, I have this error  in game 1-sysser

 SYSERR: Jun 27 19:58:25.559293 :: DirectQuery: AsyncSQL::DirectQuery : mysql_query error: Duplicate entry '270000033' for key 'PRIMARY'
query: INSERT INTO offline_shop_item (id,owner_id,pos,count,price,vnum,socket0,socket1,socket2,socket3,attrtype0,attrvalue0,attrtype1,attrvalue1,attrtype2,attrvalue2,attrtype3,attrvalue3,attrtype4,attrvalue4) VALUES (270000033,643,56,1,100000000,16009,0,0,0,0,31,10,0,0,0,0,0,0,0,0)
SYSERR: Jun 27 19:58:29.45880 :: pid_init: 
Start of pid: 21038

Link to comment
Share on other sites

just check the table:  offline_shop_item if the fields here is all right i mean if all this field's exist:  id,owner_id,pos,count,price,vnum,socket0,socket1,socket2,socket3,attrtype0,attrvalue0,attrtype1,attrvalue1,attrtype2,attrvalue2,attrtype3,attrvalue3,attrtype4,attrvalue
and try to repear the table (btw i dont think thats the problem your server will go down. this may only a bug/ or lagg the server i dont think it can go down with this)

Untitled.png

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.