Key takeaways
- No written permission means no testing: practise only on your own lab and on legal practice platforms.
- The five phases of hacking, passive vs active recon and the OWASP Top 10 are the most asked basics.
- For every attack, learn the defence too; interviews ask how you would find a weakness and how to fix it.
- These are original Uncodemy short notes, not an official CEH or EC-Council guide.
About these ethical hacking notes
This page offers Uncodemy's ethical hacking notes as a free PDF. Ethical hacking means testing a system for weaknesses with the owner's written permission, so the weaknesses can be fixed before a real attacker finds them. It uses the same skills as an attacker, but the work is legal, scoped and reported. The notes are written as short points with tool tables, small examples and a defence for every attack, so you can revise the basics quickly.
Please note: these are original Uncodemy revision notes for learning and defence. They are not an official CEH or EC-Council guide. Use the methods in them only on systems you own or have written permission to test; testing other systems can be an offence under the IT Act 2000.
What's inside the ethical hacking notes
The PDF has 8 pages arranged in 9 topic sections, followed by the most asked practice questions and an interview tip. The sections follow the order of a real penetration test, from rules and recon to reporting. Here is what each section covers.
Ethical hacking basics
The definition, the CIA triad and other security goals, a table of white hat, black hat, grey hat, script kiddie and hacktivist, the IT Act 2000 sections that apply to hacking, scope and rules of engagement, and reporting to CERT-In.
Five phases of hacking
A table of reconnaissance, scanning, gaining access, maintaining access and covering tracks, which phases an ethical hacker performs, testing methods such as PTES, the OWASP Testing Guide and NIST SP 800-115, the Cyber Kill Chain and MITRE ATT&CK.
Footprinting and reconnaissance
Passive vs active recon, OSINT, a tool table (whois, nslookup and dig, theHarvester, Shodan, Maltego, Wayback Machine), and Google dorking with the defence against it.
Scanning and enumeration
Scanning vs enumeration, the TCP three-way handshake and SYN scans, a common ports table, the main Nmap options, a lab-only Nmap example, and vulnerability scanners with the need to check false positives.
Common attacks and their defence
An attack and defence table for phishing, brute force, SQL injection, XSS, CSRF, man-in-the-middle, DoS and ransomware, social engineering types, a worked password-strength example showing why length wins, and malware types.
OWASP Top 10 and web security
The 2021 OWASP Top 10 from A01 Broken Access Control to A10 SSRF, secure coding rules, and legal practice platforms such as DVWA, OWASP Juice Shop, WebGoat, TryHackMe and Hack The Box.
Tools and Linux basics
A tool table (Kali Linux, Wireshark, Burp Suite, Metasploit, John the Ripper, Hashcat, Aircrack-ng, sqlmap, Gobuster, Snort and Suricata), everyday Linux commands, file permissions with chmod, and setting up a virtual lab on a host-only network.
Cryptography and defence
Symmetric and asymmetric encryption, hashing, digital signatures, TLS and salts, defence in depth, black, grey and white box tests, and red, blue and purple teams.
Reporting, careers and practice
The structure of a good pentest report, CVSS severity ranges, bug bounty rules, certifications, roles, and a step-by-step study plan from networking to labs and write-ups.
Most asked questions (practice)
Ten exam and interview-style questions, from defining ethical hacking to the structure of a penetration testing report, and a tip on keeping write-ups of your lab practice.
How to use these notes to learn ethical hacking safely
Ethical hacking notes only make sense with a safe lab, so set one up before you start the practical sections.
- Build a lab with VirtualBox, Kali Linux and an intentionally vulnerable target on a host-only network.
- Try each Nmap option from section 4 against your own lab target only and note what changes in the output.
- For each attack in the section 5 table, write the defence in your own words and where it is applied.
- Write a one-page report for one lab finding with its CVSS rating, impact and fix steps.
A simple three-pass method works well with short notes. In the first pass, read one section and underline only what you do not already know. In the second pass, close the notes and write the phases, tool uses and attack and defence pairs for that section on a blank sheet, then compare and correct in a different colour. In the third pass, a day or two later, answer two or three exam or interview-style ethical hacking questions in timed conditions using only memory. Add your own examples and doubts in the margins so the PDF becomes your personal revision copy.
Lists, tables and ranges to memorise
- The five phases in order; ethical hackers report their findings instead of covering tracks.
- Nmap options: -sS SYN scan, -sV service version, -O OS detection, -p ports, -Pn skip discovery, -A aggressive, -oN save output.
- The OWASP Top 10 (2021) names from A01 to A10.
- CVSS bands: Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9, Critical 9.0 to 10.
- Common ports 21, 22, 23, 25, 53, 80, 443, 445, 3306 and 3389, and what chmod 755 means.
Common mistakes that cost marks (and trust)
- Scanning or testing any system without written permission; it is illegal, even as practice.
- Copying raw scanner output into a report without checking for false positives.
- Jumping to tools before learning networking and Linux basics.
- Writing findings without the impact and clear fix steps the owner needs.
- Mixing up XSS (script runs in the victim's browser) and CSRF (a forged request uses the victim's session).
Exam and interview focus: ethical hacking topics asked most
University ethical hacking papers and security fresher interviews mostly test concepts and the defence side, not tool tricks.
- The phases of hacking, and passive vs active recon.
- The TCP handshake, common ports and Nmap scan types.
- SQL injection, XSS and CSRF with their defences.
- The OWASP Top 10.
- Cryptography basics and the structure of a pentest report.
Typical questions
- Define ethical hacking. Differentiate white, black and grey hat hackers.
- Explain the five phases of hacking with an example each.
- Compare passive and active reconnaissance and name five recon tools.
- Explain SQL injection, XSS and CSRF with their defences.
- What is the OWASP Top 10? Explain any five items.
- What is social engineering and how can it be prevented?
- Write the structure of a penetration testing report.
Marks and interview depth change between universities and companies. In interviews, explain one vulnerability in three parts: what it is, how you would find it ethically in a permitted test, and how to fix it.
A 7-day revision plan for ethical hacking
- Day 1: Ethical hacking basics and the law, five phases of hacking.
- Day 2: Footprinting and reconnaissance.
- Day 3: Scanning and enumeration in your own lab.
- Day 4: Common attacks and their defence.
- Day 5: OWASP Top 10 and web security on a practice app such as Juice Shop or DVWA.
- Day 6: Tools and Linux basics, cryptography and defence, reporting: write one lab report.
- Day 7: answer the most asked practice questions at the end of the notes from memory, then explain one vulnerability and its fix aloud as if in an interview.
Keep the phases, ports, Nmap options and OWASP list on one sheet for the last hour before an exam or interview, and do not start new tools on the final day.
Who these notes are for
- Cyber security students learning offensive security basics.
- Beginners preparing for CEH, CompTIA Security+ or eJPT-style certifications.
- B.Tech, BCA and MCA students with an ethical hacking or information security elective.
- Developers and testers who want to understand attacks so they can build and test safer apps.
The notes are a revision aid, not a full course. Learn each topic in a legal lab first, then use the notes to revise. For the defensive side, read the Cyber Security notes, and for security checks in QA work see Security Testing: OWASP Basics. To learn ethical hacking with guided labs and a trainer, see the Ethical Hacking course.
Download Ethical Hacking Notes PDF
Ethical Hacking Notes PDF for Beginners
The PDF carries the same content as this page in a clean, print-ready layout, so you can read it offline and keep it for revision.
8 pages · 120 KB · PDF · Updated 5 Nov 2026