$ run as a normal user# run as root (or with sudo)
What the course covers
The five phases of a penetration test, from planning to reporting.
- How to plan a test: scope, rules of engagement, and legal permission.
- How threat hunters look for hidden attacks, and how threat intelligence helps.
- The main ideas of cryptography: encryption, hashing, keys, and common attacks.
| Module | Main focus |
|---|---|
| Module 1 | Pen test phases, planning, rules of engagement, passive and active reconnaissance, Google Dorking. |
| Module 2 | Attack phase: exploits, defense bypass, privilege escalation, port scanning, protocol analyzers. |
| Module 3 | Reporting phase, software and application pen testing, and the PTES standard. |
| Module 4 | Threat hunting, threat intelligence sources and platforms, SIEM, and X-Force Threat Exchange. |
| Module 5 | Symmetric and asymmetric encryption, hashing, key management, and cryptographic attacks. |
| Module 6 | Final project, wrap-up, and next steps. |
Module 1: Planning and Discovery
A pen test is an allowed attack on a system. It finds weak points before a real attacker does.
- The phases are: planning, discovery, attack, verification, reporting.
- Rules of engagement (ROE) say what the tester may do: targets, time, methods, limits. Get written permission first.
- Passive reconnaissance uses public data only (WHOIS, DNS, social media). Active reconnaissance sends traffic (port scans).
- Google Dorking uses search operators like
site:,filetype:, andinurl:to find exposed data.
Module 2: Attack Phase
The attack phase runs the exploit and tries to get in: exploit, bypass defenses, escalate, act after the attack.
- Privilege escalation means more rights than you should have. Vertical = more rights. Horizontal = same level, other user.
- Nmap scans hosts and ports.
-sSis a SYN (half-open) scan.-sVreads service versions.-Oguesses the OS. - A network protocol analyzer (packet sniffer) captures traffic. Wireshark shows it.
tcpdumpcaptures on the command line. - Defense bypass tries to get around a firewall, IDS, or antivirus. Examples: encoded payloads and encrypted channels.
Module 3: Reporting Phase
The report is the main product. A good report has: scope, method, findings, evidence, risk, and fixes.
- PTES is the Penetration Testing Execution Standard. It gives common steps for a test.
- Risk rating helps the client fix the worst problems first. A common scale is CVSS.
- Software pen testing checks the app itself: input, login, sessions, and code. SAST reads code; DAST attacks the running app.
Module 4: Threat Hunting and Intelligence
Threat hunting is a proactive search for attacks that alerts missed. The team assumes a breach.
- A hunt starts with a hypothesis, then looks for evidence in logs and endpoint data.
- Threat intelligence is data about current attackers and tools. An IOC (bad hash, IP, domain) is a sign of attack. A TTP lasts longer.
- SIEM collects logs from many systems, relates them, and sends alerts. MITRE ATT&CK lists attacker tactics and techniques.
- IBM X-Force Threat Exchange is a place to read and share threat reports. STIX and TAXII share threat data.
Module 5: Cryptography
Cryptography protects confidentiality, integrity, authenticity, and non-repudiation.
- Symmetric encryption uses one shared key and is fast. Example: AES. DES and 3DES are old and weak.
- Asymmetric encryption uses a key pair: public and private. Example: RSA or ECC. It is slow.
- Encrypt with the public key, decrypt with the private key. Sign with the private key, check with the public key.
- Hybrid encryption uses asymmetric crypto only to share a fast symmetric key. TLS works this way.
- Hashing makes a fixed-size, one-way fingerprint. Example: SHA-256. MD5 and SHA-1 are broken.
- Key management: make strong keys, store them safe, rotate them, and destroy them when done.
- Digital signature = message hash signed with the sender's private key. It proves integrity and origin.
- Attacks: brute force, dictionary, man-in-the-middle, replay. Never build your own crypto.
Module 6: Final Project
The final project applies the phases: plan, discover, test, and report. Keep the report short and factual.
Key terms
The words of this course in one table. Learn them before the quiz or exam.
| Term | Meaning |
|---|---|
| Active recon | Traffic goes to the target, like a port scan. |
| Assumed breach | Hunt as if the attacker is already inside. |
| Defense bypass | Go around a firewall, an IDS, or antivirus. |
| Digital signature | Hash of a message, signed with the sender's private key. |
| Exploit | The action that uses a bug. Payload = the code that runs. |
| Google Dorking | Search operators like site: and filetype:. |
| Hash | One-way, fixed size (SHA-256). A hash is not encryption. |
| Horizontal escalation | Same level, another user. |
| Hybrid | Asymmetric crypto shares a symmetric session key. TLS does this. |
| IOC | A sign of attack, like a hash, an IP, or a domain. Short life. |
| MITM | The attacker sits between two sides and reads the traffic. |
| MITRE ATT&CK | A list of attacker tactics and techniques. |
Nmap -sS | SYN scan, -sV = versions, -O = OS. |
| No written permission | No test. It is a crime. |
| Packet analyzer | Capture and read traffic (Wireshark, tcpdump). |
| Passive recon | Public data only. No traffic goes to the target. |
| Pen test | An allowed attack that finds weak points. |
| Phase order | Planning, discovery, attack, verification, reporting. |
| PKI | Public key infrastructure: keys, certificate authorities, and certificates. |
| Port states | Open, closed, filtered. |
| PTES | Penetration Testing Execution Standard. |
| Replay attack | Send an old captured message again. |
| Report | Scope, method, findings, evidence, risk, fix. |
| Rules of engagement | Targets, time, methods, and limits. |
| Salt | Random data added to a password before hashing. |
| SIEM | Collect logs, relate events, and send alerts. |
| Symmetric | 1 key (AES). Asymmetric = 2 keys (RSA, ECC). |
| Threat hunting | Active search, based on a hypothesis. |
| TTP | Tactic, technique, procedure. Behavior is hard to change, so it lasts longer. |
| Vertical escalation | More rights. |
Check yourself
Answer each question first, then open it to check the answer.
1What is a penetration test? a) An attack with no permission · b) An allowed test to find weak points before a real attacker · c) A backup of the server · d) A firewall rule
b) An allowed test to find weak points before a real attacker. A pen test is allowed by the owner and aims to find weak points early.
2Which order of pen test phases is correct? a) Attack, planning, discovery, reporting, verification · b) Planning, discovery, attack, verification, reporting · c) Discovery, reporting, attack, planning, verification · d) Reporting, attack, discovery, planning, verification
b) Planning, discovery, attack, verification, reporting. Plan first, then discover, attack, verify, and report.
3What do the rules of engagement define? a) The price of the test · b) The team holidays · c) What the tester may do, and the limits · d) The server room key
c) What the tester may do, and the limits. The ROE sets targets, time, methods, and limits.
4Which activity is passive reconnaissance? a) A port scan of the target · b) Running an exploit · c) Sending an email to an employee · d) Reading public WHOIS and DNS data about the target
d) Reading public WHOIS and DNS data about the target. Passive work uses public data and does not touch the target.
5In Nmap, which flag is a half-open SYN scan? a) -sS · b) -sV · c) -O · d) -sn
a) -sS. -sS sends a SYN and does not finish the handshake.
6What is privilege escalation? a) Deleting log files · b) Copying a folder · c) Getting more rights than you should have · d) Restarting the server
c) Getting more rights than you should have. Escalation means more access than your account should have.
7What is the main product of the reporting phase? a) A new firewall rule · b) A report with findings, risk, and fixes · c) A stronger password · d) A backup copy
b) A report with findings, risk, and fixes. The client pays for the findings and the fixes.
8What is threat hunting? a) Waiting for an alert to arrive · b) Reading the daily news · c) A proactive search for hidden attacks · d) A backup check
c) A proactive search for hidden attacks. Hunting is active. You look for what alerts did not catch.
9What is an IOC? a) A type of firewall · b) A strong key · c) A report template · d) An indicator of compromise, like a bad hash or IP
d) An indicator of compromise, like a bad hash or IP. An IOC is evidence of an attack, such as a hash or IP.
10Which one is a symmetric algorithm? a) RSA · b) AES · c) ECC · d) Diffie-Hellman
b) AES. AES uses one shared key. RSA, ECC, and Diffie-Hellman are asymmetric.
11How does a digital signature work? a) Encrypt with the private key, then delete the key · b) Hash with the public key twice · c) Hash the message, then sign the hash with the sender's private key · d) Use one key on both sides and send it by email
c) Hash the message, then sign the hash with the sender's private key. The private key signs the hash. Anyone can check it with the public key.
12What is a penetration test? a) An attack with no permission · b) An allowed test to find weak points · c) A type of server backup · d) A firewall rule
b) . A pen test is allowed by the owner and looks for weak points early.
13Which list shows the pen test phases in the right order? a) Attack, planning, discovery, report · b) Planning, discovery, attack, verification, report · c) Discovery, report, attack, plan · d) Report, attack, plan, discovery
b) . Plan first, then discover, attack, verify, and report.
14What do the rules of engagement define? a) The price and the invoice · b) The server room key · c) The targets, time, methods, and limits · d) The team holidays
c) . The rules of engagement set the targets, the time, the methods, and the limits.
15Which one is passive reconnaissance? a) A port scan · b) Reading public WHOIS and DNS data · c) Sending an exploit · d) A ping sweep
b) . Passive work uses public data and sends no traffic to the target.
16Which Google Dork operator finds files of one type? a) site: · b) filetype: · c) -sV · d) inurl:
b) . filetype: limits the result to one file type.
17In Nmap, which flag reads the service version? a) -sS · b) -O · c) -sV · d) -sn
c) . -sV reads the service and its version.
18What is privilege escalation? a) Getting more rights than you should have · b) Deleting the logs · c) Closing a port · d) Copying a folder
a) Getting more rights than you should have · b) Deleting the logs · c) Closing a port · d) Copying a folder. Escalation means more access than your account should have.
19What is defense bypass? a) Patching the server · b) Getting around a firewall, IDS, or antivirus · c) Writing the report · d) Backing up the data
b) . Bypass means the defense is there but the attack goes around it.
20A tester with a normal account reads another normal user's data. What is this? a) Vertical escalation · b) Horizontal escalation · c) Passive recon · d) Reporting
b) . Same level, different user, is horizontal escalation.
21Which tool reads packets and shows them in a GUI? a) Nmap · b) Wireshark · c) SIEM · d) tcpdump
b) . Wireshark has a GUI. tcpdump captures on the command line.
22What is the main product of the reporting phase? a) A new firewall rule · b) A report with findings, risk, and fixes · c) A backup copy · d) A stronger password
b) . The client pays for the findings, the risk, and the fixes.
23What does PTES mean? a) Penetration Testing Execution Standard · b) Public Test Energy System · c) Private Threat Event Set · d) Pen Test Email Server
a) Penetration Testing Execution Standard · b) Public Test Energy System · c) Private Threat Event Set · d) Pen Test Email Server. PTES gives common steps for a penetration test.
24What is threat hunting? a) Waiting for an alert · b) A proactive search for hidden attacks · c) A disk backup · d) A firewall update
b) . Hunting is active. You look for what the alerts did not catch.
25What is an IOC? a) A strong key · b) A report template · c) A sign of attack, like a bad hash or IP · d) A type of firewall
c) . An IOC is evidence of an attack.
26Why is a TTP more useful than one IOC? a) It is easier to find · b) It lasts longer, because behavior is hard to change · c) It needs no logs · d) It is a password
b) . A tool can change, but the attacker's behavior changes slowly.
27What does a SIEM do? a) Collects logs from many systems, relates them, and sends alerts · b) Encrypts the disk · c) Scans ports · d) Signs certificates
a) Collects logs from many systems, relates them, and sends alerts · b) Encrypts the disk · c) Scans ports · d) Signs certificates. A SIEM collects, relates, and alerts.
28What is MITRE ATT&CK? a) A list of attacker tactics and techniques · b) A symmetric cipher · c) A backup tool · d) A firewall brand
a) A list of attacker tactics and techniques · b) A symmetric cipher · c) A backup tool · d) A firewall brand. ATT&CK lists tactics (why) and techniques (how).
29How does a digital signature work? a) Encrypt the private key · b) Hash the message, then sign the hash with the sender's private key · c) Hash with the public key twice · d) Sign the message with the public key
b) . The private key signs the hash. Anyone can check it with the public key.
30Which statement about a hash is true? a) You can decrypt it with the public key · b) It is one-way and has a fixed size · c) It is the same as a password · d) It hides the key
b) . A hash cannot be reversed. It always has a fixed size, and the same input gives the same hash.
31Which key do you use to send a private message to someone? a) Your private key · b) Their public key · c) Their private key · d) No key
b) . Encrypt with their public key. Only their private key can open it.
32What is a man-in-the-middle attack? a) The attacker sits between two sides and reads or changes the traffic · b) The attacker deletes the logs · c) The attacker runs a port scan · d) The attacker writes the report
a) The attacker sits between two sides and reads or changes the traffic · b) The attacker deletes the logs · c) The attacker runs a port scan · d) The attacker writes the report. The attacker is in the middle and can read or change the traffic.
Study and exam tips
Learn the phases in order. Many questions ask "what comes next".
- Link each tool to its job: Nmap for ports, Wireshark for packets, SIEM for logs.
- For crypto, ask one question: one key or two keys? One key = symmetric. Two keys = asymmetric.
- Hash is not encryption. A hash cannot be reversed. Do not pick "decrypt the hash".
- Pick the action that stays inside the scope and the rules of engagement.
- Learn the five phases in order. Many questions ask what comes next.
- Match each tool to its job: Nmap for ports, Wireshark for packets, SIEM for logs.
- Crypto shortcut: one key = symmetric, two keys = asymmetric. A hash is not encryption.
- If a question asks what to do next, pick the action inside the scope and the rules of engagement.
- Threat hunting is proactive. Waiting for an alert is not hunting.
- Read each question twice. Many ask for the BEST answer, not the first true one.