mcpField
P
penetration-testing

penetration-testing

github.com/bagelhole安全1.2k378 次安装23 周前更新
代码仓库

关于 penetration-testing

penetration-testing 是用于验证安全控制的渗透测试技能,面向获授权的安全测试人员。它按侦察、扫描和 Web 测试等环节提供示例,并强调测试范围、书面授权与结果记录。

主要功能

  1. 01涵盖侦察与网络映射
  2. 02提供端口和 Web 扫描示例
  3. 03涉及 SQL 注入与 XSS 测试
  4. 04强调授权、范围与记录

适用场景

  1. 01枚举目标域名和子域名
  2. 02扫描授权目标的端口与 Web 服务
  3. 03在授权范围内检查常见 Web 漏洞
  4. 04记录发现并及时报告严重问题

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/bagelhole/devops-security-agent-skills --skill penetration-testing

安装后在 Claude Code 中输入/penetration-testing确认已加载。

详细介绍

渗透测试

通过授权测试验证安全控制。

阶段

pentest_phases:
  1_reconnaissance:
    - Passive information gathering
    - DNS enumeration
    - Network mapping
    
  2_scanning:
    - Port scanning
    - Service identification
    - Vulnerability scanning
    
  3_exploitation:
    - Attempt exploitation
    - Verify vulnerabilities
    - Document findings
    
  4_post_exploitation:
    - Privilege escalation
    - Lateral movement
    - Data access
    
  5_reporting:
    - Document findings
    - Risk assessment
    - Remediation recommendations

侦察

# DNS enumeration
dig example.com ANY
host -l example.com

# Subdomain discovery
subfinder -d example.com

# WHOIS
whois example.com

扫描

# Port scan
nmap -sV -sC -p- target.com

# Web scanning
nikto -h https://target.com
dirb https://target.com

# Vulnerability scan
nmap --script vuln target.com

Web 测试

# SQL injection test
sqlmap -u "http://target.com/page?id=1"

# XSS testing
# Use Burp Suite or manual testing

# Directory traversal
curl "http://target.com/file?path=../../../etc/passwd"

参与规则

scope:
  in_scope:
    - target.com
    - api.target.com
  out_of_scope:
    - production-db.target.com
    - third-party services
  
  testing_window: "Weekdays 2-6 AM UTC"
  emergency_contact: "[email protected]"

最佳实践

  • 始终获取书面授权
  • 明确界定范围
  • 记录所有内容
  • 立即报告严重发现
  • 仅使用安全的漏洞利用技术

相关技能

评论

支持 Markdown