Pompem
Overview
섹션 제목: “Overview”Pompem is a Python-based tool that automates the search for known exploits and vulnerabilities across multiple databases including ExploitDB, PacketStorm, and WPScan. It provides security researchers and penetration testers with an efficient way to identify publicly available exploits, vulnerability information, and proof-of-concepts for discovered software and applications without manually querying multiple sources.
Installation
섹션 제목: “Installation”Linux (Debian/Ubuntu)
섹션 제목: “Linux (Debian/Ubuntu)”sudo apt-get install python3 python3-pip
pip3 install pompem
Fedora/RHEL
섹션 제목: “Fedora/RHEL”sudo dnf install python3 python3-pip
pip3 install pompem
macOS
섹션 제목: “macOS”brew install python3
pip3 install pompem
Windows
섹션 제목: “Windows”pip install pompem
From Source
섹션 제목: “From Source”git clone https://github.com/jmendozauc/pompem.git
cd pompem
pip3 install -r requirements.txt
python3 pompem.py
Verify Installation
섹션 제목: “Verify Installation”pompem --version
pompem --help
Core Concepts
섹션 제목: “Core Concepts”Vulnerability Databases
섹션 제목: “Vulnerability Databases”Pompem integrates with:
- ExploitDB: Largest exploit database with 50,000+ exploits
- PacketStorm: Vulnerability and security resource repository
- WPScan: WordPress vulnerability database
- SecurityFocus: Bugtraq vulnerability information
- Metasploit Database: Exploitation framework modules
Search Methods
섹션 제목: “Search Methods”- Application name search
- CVE identifier lookup
- Version-specific vulnerability matching
- Software component identification
Data Aggregation
섹션 제목: “Data Aggregation”Pompem combines results from multiple sources to provide comprehensive vulnerability information.
Basic Commands
섹션 제목: “Basic Commands”Search by Application Name
섹션 제목: “Search by Application Name”pompem -s "Apache"
pompem -s "nginx"
pompem -s "WordPress"
Search by CVE
섹션 제목: “Search by CVE”pompem -s "CVE-2024-1234"
pompem -c CVE-2024-00000
Search with Version Information
섹션 제목: “Search with Version Information”pompem -s "Apache 2.4.41"
pompem -s "WordPress 6.0.1"
Search All Databases
섹션 제목: “Search All Databases”pompem -s "application_name" -a
Common Usage Patterns
섹션 제목: “Common Usage Patterns”| Command | Description |
|---|---|
pompem -s "app_name" | Search for application vulnerabilities |
pompem -c "CVE-XXXX" | Search by CVE identifier |
pompem -s "app" -e | Search ExploitDB only |
pompem -s "app" -w | Search WPScan only |
pompem -s "app" -p | Search PacketStorm only |
pompem -s "app" -a | Search all databases |
pompem -s "app" -f json | Output in JSON format |
Database-Specific Searches
섹션 제목: “Database-Specific Searches”ExploitDB Search
섹션 제목: “ExploitDB Search”pompem -s "Apache Struts" -e
pompem -s "PHP 7.4" -e
WPScan Search (WordPress)
섹션 제목: “WPScan Search (WordPress)”pompem -s "WordPress" -w
pompem -s "Akismet" -w
pompem -s "WooCommerce" -w
PacketStorm Search
섹션 제목: “PacketStorm Search”pompem -s "Cisco IOS" -p
pompem -s "Windows RDP" -p
Combined Database Search
섹션 제목: “Combined Database Search”pompem -s "Apache 2.4" -a
pompem -c "CVE-2021-41773" -a
Advanced Search Techniques
섹션 제목: “Advanced Search Techniques”Search with Multiple Terms
섹션 제목: “Search with Multiple Terms”pompem -s "Apache Struts 2 RCE"
pompem -s "PHP SQL injection"
Version Range Search
섹션 제목: “Version Range Search”pompem -s "WordPress 5.0"
pompem -s "Drupal 8"
Specific Vulnerability Type
섹션 제목: “Specific Vulnerability Type”pompem -s "Apache" | grep -i "rce\|injection\|bypass"
Filter Results
섹션 제목: “Filter Results”pompem -s "application" | grep "2024"
pompem -s "application" | grep -i "critical\|high"
Output Formats
섹션 제목: “Output Formats”Default Text Output
섹션 제목: “Default Text Output”pompem -s "Apache"
JSON Output
섹션 제목: “JSON Output”pompem -s "Apache" -f json
pompem -s "WordPress" -f json > wordpress_vulns.json
CSV Export
섹션 제목: “CSV Export”pompem -s "application" -f csv > vulns.csv
Save to File
섹션 제목: “Save to File”pompem -s "Apache" > apache_vulnerabilities.txt
pompem -c "CVE-2024-1234" > cve_search.txt
Vulnerability Assessment Workflow
섹션 제목: “Vulnerability Assessment Workflow”Step 1: Identify Target Software
섹션 제목: “Step 1: Identify Target Software”# Determine application versions running on target
# Example: Apache 2.4.41, PHP 7.4.10, WordPress 5.9
Step 2: Search Each Component
섹션 제목: “Step 2: Search Each Component”pompem -s "Apache 2.4.41" -a
pompem -s "PHP 7.4.10" -a
pompem -s "WordPress 5.9" -a
Step 3: Collect Results
섹션 제목: “Step 3: Collect Results”pompem -s "Apache 2.4.41" -a > apache_vulns.txt
pompem -s "PHP 7.4.10" -a > php_vulns.txt
pompem -s "WordPress 5.9" -a > wordpress_vulns.txt
Step 4: Analyze and Prioritize
섹션 제목: “Step 4: Analyze and Prioritize”cat *_vulns.txt | sort | uniq > all_vulnerabilities.txt
grep -i "remote\|critical" all_vulnerabilities.txt > critical_vulns.txt
Step 5: Document Findings
섹션 제목: “Step 5: Document Findings”# Create assessment report with findings
Reconnaissance Integration
섹션 제목: “Reconnaissance Integration”Web Application Fingerprinting
섹션 제목: “Web Application Fingerprinting”# After identifying web technologies
pompem -s "Nginx 1.18" -a
pompem -s "PHP 8.0" -a
pompem -s "WordPress 5.8" -a
Service Discovery Follow-up
섹션 제목: “Service Discovery Follow-up”# Search identified services
pompem -s "OpenSSH 7.4" -a
pompem -s "Postfix 2.11" -a
pompem -s "Bind 9.11" -a
Plugin/Module Enumeration
섹션 제목: “Plugin/Module Enumeration”# Search discovered plugins
pompem -s "WordPress WooCommerce" -w
pompem -s "Drupal Views" -e
Batch Processing
섹션 제목: “Batch Processing”Search Multiple Applications
섹션 제목: “Search Multiple Applications”#!/bin/bash
APPS=("Apache 2.4" "PHP 7.4" "WordPress 5.9" "MySQL 8.0")
for app in "${APPS[@]}"; do
echo "=== Searching for $app ===" >> vulnerabilities.txt
pompem -s "$app" -a >> vulnerabilities.txt
echo "" >> vulnerabilities.txt
done
Process CVE List
섹션 제목: “Process CVE List”#!/bin/bash
while IFS= read -r cve; do
pompem -c "$cve" -a >> cve_details.txt
done < cve_list.txt
Search from Nmap Output
섹션 제목: “Search from Nmap Output”# After nmap service detection
pompem -s "Apache httpd 2.4.41"
pompem -s "OpenSSH 7.6p1"
Exploit Identification
섹션 제목: “Exploit Identification”Find Available Exploits
섹션 제목: “Find Available Exploits”pompem -s "application" -e | grep -i "exploit\|poc"
Identify POCs
섹션 제목: “Identify POCs”pompem -s "Apache Struts 2" -e
# Will show available Proof-of-Concepts
Get Exploit Details
섹션 제목: “Get Exploit Details”pompem -s "vulnerability" -a
# Returns full details including exploit source URLs
CVE Tracking
섹션 제목: “CVE Tracking”Search by CVE ID
섹션 제목: “Search by CVE ID”pompem -c "CVE-2021-41773"
pompem -c "CVE-2021-44228"
Track CVE Across Databases
섹션 제목: “Track CVE Across Databases”pompem -c "CVE-2024-12345" -a
# Shows all available resources for the CVE
Recent Vulnerability Research
섹션 제목: “Recent Vulnerability Research”pompem -s "2024" | head -20
WordPress-Specific Searches
섹션 제목: “WordPress-Specific Searches”Theme Vulnerabilities
섹션 제목: “Theme Vulnerabilities”pompem -s "WordPress Twenty Twenty Two" -w
Plugin Search
섹션 제목: “Plugin Search”pompem -s "WordPress Plugin" -w
pompem -s "WooCommerce" -w
Core Vulnerability Search
섹션 제목: “Core Vulnerability Search”pompem -s "WordPress 6.0" -w
Content Management System Searches
섹션 제목: “Content Management System Searches”Drupal Vulnerabilities
섹션 제목: “Drupal Vulnerabilities”pompem -s "Drupal 9" -a
pompem -s "Drupal Module" -e
Joomla Vulnerabilities
섹션 제목: “Joomla Vulnerabilities”pompem -s "Joomla 3.10" -a
pompem -s "Joomla Extension" -e
Magento Vulnerabilities
섹션 제목: “Magento Vulnerabilities”pompem -s "Magento 2.4" -a
Integration with Testing Tools
섹션 제목: “Integration with Testing Tools”Feed to Exploit Frameworks
섹션 제목: “Feed to Exploit Frameworks”# Extract exploit URLs for Metasploit
pompem -s "Windows Server 2019" -e | grep "http" > exploit_urls.txt
Create Vulnerability Dashboard
섹션 제목: “Create Vulnerability Dashboard”# Generate JSON report for dashboard
pompem -s "application" -f json > vuln_dashboard.json
Cross-Reference with Nessus
섹션 제목: “Cross-Reference with Nessus”# Compare Pompem results with Nessus scan
pompem -s "service_name" -a > pompem_results.txt
# Compare with Nessus export
Reporting
섹션 제목: “Reporting”Generate Summary Report
섹션 제목: “Generate Summary Report”echo "=== Vulnerability Assessment Report ===" > report.txt
echo "Date: $(date)" >> report.txt
echo "Target: target.com" >> report.txt
echo "" >> report.txt
echo "=== Identified Vulnerabilities ===" >> report.txt
pompem -s "identified_service" -a >> report.txt
Create Detailed Vulnerability Documentation
섹션 제목: “Create Detailed Vulnerability Documentation”#!/bin/bash
SERVICES=("Apache 2.4.41" "PHP 7.4.10" "WordPress 5.9")
{
echo "# Vulnerability Assessment Report"
echo "Date: $(date)"
echo ""
for service in "${SERVICES[@]}"; do
echo "## $service"
pompem -s "$service" -a
echo ""
done
} > assessment_report.txt
Export for Management Review
섹션 제목: “Export for Management Review”pompem -s "application" -f json | jq '.[] | {name, severity, cve}' > executive_summary.json
Performance Optimization
섹션 제목: “Performance Optimization”Parallel Searches (GNU Parallel)
섹션 제목: “Parallel Searches (GNU Parallel)”echo "Apache 2.4" | parallel pompem -s {}
cat app_list.txt | parallel pompem -s {}
Batch Caching Results
섹션 제목: “Batch Caching Results”# Cache results for repeated searches
pompem -s "Apache" -a > apache_cache.txt
# Use cached results for reporting
cat apache_cache.txt
Troubleshooting
섹션 제목: “Troubleshooting”Database Connection Issues
섹션 제목: “Database Connection Issues”# Check internet connectivity
ping www.google.com
# Verify API endpoints are accessible
curl -I "https://www.exploit-db.com"
Timeout Errors
섹션 제목: “Timeout Errors”# Increase timeout for large result sets
timeout 60 pompem -s "popular_application"
Filter Large Result Sets
섹션 제목: “Filter Large Result Sets”# Narrow searches to reduce results
pompem -s "Apache 2.4.41" -e # Specific version
pompem -c "CVE-2024-12345" # Specific CVE
Update Database
섹션 제목: “Update Database”# Ensure latest vulnerability data
pip3 install --upgrade pompem
Best Practices
섹션 제목: “Best Practices”- Verify Findings: Cross-reference results with official sources
- Document Sources: Note which database provided each finding
- Prioritize Severity: Focus on critical and high-severity vulnerabilities
- Check Patch Status: Verify if patches are available
- Timeline Tracking: Note vulnerability disclosure dates
- Responsible Disclosure: Follow coordinated disclosure practices
- Regular Searches: Maintain up-to-date vulnerability inventory
- Assessment Reports: Document all findings systematically
Related Tools
섹션 제목: “Related Tools”- Nuclei: Template-based scanning with integration
- Searchsploit: Local ExploitDB search tool
- Shodan: Internet search engine for services
- CVEDetails: CVE information aggregator
- SecurityTrails: DNS and domain intelligence
- OpenCVE: CVE monitoring platform