Online vs Offline Attacks
Hydra and brute force.
Online vs Offline Attacks is a free Ethical Hacking Academy lesson on CoddyKit — lesson 4 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Ethical Hacking Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.
Two Families of Attack
Password attacks split into two worlds. Offline attacks work on captured hashes locally — fast, silent, limited only by hardware. Online attacks guess against a live service over the network — slow, noisy, and rate-limited.
Offline Attacks Recap
Offline cracking (Hashcat, John) requires you to first obtain the hashes — from a database dump, /etc/shadow, or a captured handshake. Once you have them, you can guess billions of times per second with zero network traffic.
Online Attacks
Online attacks send login attempts directly to a service: SSH, RDP, FTP, web forms, etc. Speed is capped by network latency and server rate limits, and every attempt may be logged or trigger lockout.
Introducing Hydra
THC-Hydra is the standard online brute-forcer. It supports many protocols and parallelizes login attempts. You supply a username/list, a password list, the target, and the service module.
hydra -l admin -P rockyou.txt ssh://10.0.0.5Hydra Options
Key flags:
-lsingle user /-Luser list-psingle pass /-Ppass list-tparallel tasks-fstop on first success
hydra -L users.txt -P pass.txt -t 4 -f ftp://10.0.0.5Brute Forcing Web Forms
For HTTP POST login forms, Hydra needs the path, the POST body with ^USER^/^PASS^ placeholders, and a failure string so it knows which responses are wrong.
hydra -l admin -P rockyou.txt 10.0.0.5 http-post-form \
"/login:user=^USER^&pass=^PASS^:Invalid credentials"Password Spraying
Spraying flips brute force: try one common password (e.g. Spring2024!) across many accounts. This avoids per-account lockout thresholds and is highly effective against organizations with weak password policies.
Credential Stuffing
Credential stuffing replays username/password pairs leaked from other breaches, betting that users reuse credentials. It needs no cracking at all — just valid pairs from a previous dump.
Defenses Against Online Attacks
Defenders blunt online attacks with account lockout, rate limiting, CAPTCHAs, MFA, and monitoring for many failures. These do little against offline cracking, which is why strong hashing (bcrypt/Argon2) plus salts matter for offline resistance.
Choosing the Right Approach
If you can steal the hash database, go offline — faster and stealthier. If you only have a login endpoint, you are forced online — then spray a few good passwords slowly rather than hammering one account.
Ethics and Noise
Online attacks can lock out real users and trigger alerts — coordinate with the client and respect lockout policies. Conduct any attack only within an authorized, scoped engagement.
Quick Check
Distinguish the attack types.
Recap
You compared attack strategies:
- Offline = crack captured hashes locally; fast and silent
- Online = guess against a live service; slow, noisy, rate-limited
- Hydra brute-forces protocols and web forms
- Spraying and credential stuffing evade lockout and reuse leaks
That completes the Password Cracking course.
Frequently asked questions
Is the “Online vs Offline Attacks” lesson free?
Yes — the full text of “Online vs Offline Attacks” is free to read here on the web, and the Ethical Hacking Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Ethical Hacking Academy course, upgrade to CoddyKit PRO.
What will I learn in “Online vs Offline Attacks”?
Hydra and brute force. You practise Ethical Hacking Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.
Do I need any experience to start Ethical Hacking Academy?
No prior experience is required. Ethical Hacking Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 4 of 4, so you can start here or from the beginning and move at your own pace.
How long does the “Online vs Offline Attacks” lesson take?
Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.
Can I write and run code in this Ethical Hacking Academy lesson?
Yes. Every Ethical Hacking Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.
All lessons in this course
- Wordlists and Rules
- Hashcat
- John the Ripper
- Online vs Offline Attacks