Ethical Hacking and Penetration Testing (IS-702-D) Important Questions
By the Paperwala team · · Exam on Fri 18 Dec
These are the 10 Ethical Hacking and Penetration Testing (IS-702-D) topics we chose from the RGPV syllabus for RGPV B.Tech IOT semester 7. No past paper of this subject is on this site yet, so we could not count repeats.
Answers: We wrote these answers with AI help from the real RGPV papers and the syllabus. A teacher has not checked them yet, so read them with your syllabus. How we make these
10 Ethical Hacking and Penetration Testing topics from the syllabus
Chosen from the syllabus. No past paper of this subject is on this site yet, so repeats could not be counted.
Ethical Hacking and Penetration Testing important questions with answers
Each answer starts with a short answer. Then come how often it was asked, the points to write, a diagram and an exam tip. The topics are chosen from the syllabus.
Q1. Ethical hacking and penetration testing
Short answer.Ethical hacking is the authorised use of attacker methods to find security weaknesses before real attackers do. A penetration test is a planned, time-bound ethical hack of a defined target that ends with a report.
From the syllabus · Unit 1
From the papers
“Unit 1: Introduction to Ethical Hacking and penetration testing.” (Syllabus)
Write these points
Phases
Pre-engagement: scope, rules and written consent.
Reconnaissance: gather information.
Scanning and enumeration: find live hosts, ports and services.
Black box, grey box and white box, by how much the tester knows.
External, internal, web application, wireless, social engineering.
Choosing a test.
A bank wants to know what an outsider can do with no information. That is an external black box test.
Later it gives the testers a customer login to check what a logged-in user can reach. That is a grey box test.
Real-life example
A bank hires a security firm to try breaking into its branch at night, with written permission and a fixed date. The firm reports which locks failed. A burglar does the same things without permission. The permission and the report make the difference.
Difference between ethical hacker and malicious hacker
Point
Ethical hacker
Malicious hacker
Same or opposite
Uses attack tools and methods
Yes
Yes
Same
Permission
Written consent
None
Opposite
Goal
Fix weaknesses
Steal or damage
Opposite
Output
Report to the owner
Hidden access
Opposite
Needs technical skill
Yes
Yes
Same
Exam tip. Define both terms. Write the six phases. Name the black, grey and white box tests.
Q2. Penetration test report structure and components
Short answer. A penetration test report records what was tested, what was found and how to fix it. It has an executive summary for managers and technical findings for engineers.
From the syllabus · Unit 1
From the papers
“Unit 1: Penetration test report structure and components.” (Syllabus)
Appendices: raw scan output, screenshots, glossary.
Ranking findings by risk (from calc.py).
Risk = likelihood x impact, each from 1 to 5.
SQL injection on login: 4 x 5 = 20, critical. Telnet open on a router: 3 x 4 = 12, high. Server banner shows version: 4 x 1 = 4, low.
The report lists them in that order, so the client fixes SQL injection first.
Remember. Many reports use CVSS scores instead of this simple product. Use whichever your teacher follows.
Real-life example
A doctor's health check report starts with a short summary for the patient and then gives test values for other doctors. A pentest report works the same way: a summary for the board, details for the IT team.
Difference between executive summary and technical findings
Point
Executive summary
Technical findings
Same or opposite
Part of the report
Yes
Yes
Same
Reader
Managers
Engineers
Opposite
Language
Plain business words
Technical detail
Opposite
Length
One or two pages
Many pages
Opposite
Based on the same tests
Yes
Yes
Same
Exam tip. Write the five parts as a list. Draw the structure. Show one risk calculation to rank findings.
Short answer.Reconnaissance is gathering information about a target before attacking. DNS reconnaissance finds hosts and mail servers from DNS records, while web reconnaissance studies the website and public sources.
From the syllabus · Unit 2
From the papers
“Unit 2: Reconnaissance, DNS reconnaissance, Web reconnaissance.” (Syllabus)
Write these points
Passive and active
Passive: no direct contact. WHOIS, search engines, social media.
Active: touches the target. DNS queries, banner grabbing.
DNS reconnaissance
Records: A, AAAA, MX, NS, TXT, CNAME.
Tools: nslookup, dig, host.
Zone transfer (AXFR) leaks every record if misconfigured.
Subdomain brute forcing with a word list.
Web reconnaissance
robots.txt, sitemap, HTML comments, error messages.
Search engine operators (site:, filetype:).
Certificate transparency logs list subdomains.
Subdomain brute force time (from calc.py).
Word list of 5,000 names against 3 domains = 15,000 queries.
At 50 queries a second this takes 5 minutes.
Remember. Commands are for your own lab or for systems you have written permission to test. Testing other systems is an offence.
Real-life example
Before a cricket final, analysts watch every video of the other team's bowlers. They learn who bowls at the death and who struggles against spin, without facing a single ball. Reconnaissance is that homework before the match.
Difference between passive and active reconnaissance
Point
Passive
Active
Same or opposite
Gathers target information
Yes
Yes
Same
Contacts the target
No
Yes
Opposite
Chance of detection
Very low
Higher
Opposite
Example
WHOIS, search engines
DNS zone transfer, banner grab
Opposite
Needs to be in scope
Yes
Yes
Same
Exam tip. Define passive and active. List DNS records and tools. Mention zone transfer and web sources like robots.txt.
Short answer.Scanning with Nmap finds live hosts, open ports, running services and the operating system of targets. Nmap sends probe packets and reads the replies.
From the syllabus · Unit 2
From the papers
“Unit 2: Scanning using Nmap.” (Syllabus)
Write these points
Common scans
Host discovery: nmap -sn 192.168.1.0/24.
SYN scan: nmap -sS target (half open, needs root).
All 65,535 ports on 254 hosts = 16,645,890 probes. At 1,000 probes a second: about 4.62 hours.
Nmap's default top 1,000 ports: 254,000 probes, about 4.2 minutes.
Remember. Commands are for your own lab or for systems you have written permission to test. Testing other systems is an offence.
Real-life example
A security guard checks every door and window of a building, noting which open, which are locked and which have a guard behind them. Nmap does that check for every port of every computer.
Difference between SYN scan and connect scan
Point
SYN scan
Connect scan
Same or opposite
Finds open TCP ports
Yes
Yes
Same
Handshake
Half, RST at the end
Full
Opposite
Needs root rights
Yes
No
Opposite
Logged by applications
Less often
Often
Opposite
Nmap option
-sS
-sT
Opposite
Exam tip. Write each scan with its command. List port states. Work out the time for a full and a default scan.
Short answer. Windows stores password hashes, not passwords, in the SAM database or in Active Directory. Old LM hashes are very weak, while NTLM hashes are unsalted MD4 digests that can be cracked or reused.
From the syllabus · Unit 3
From the papers
“Unit 3: Windows passwords, Hashes.” (Syllabus)
Write these points
Where and how
Local accounts: SAM file, locked while Windows runs.
Domain accounts: NTDS.dit on domain controllers.
LM: upper-cases the password and splits it into two 7-character halves.
NTLM: MD4 of the UTF-16LE password, no salt.
Attacks
Dump hashes with admin rights (tools such as mimikatz or secretsdump).
Crack them with word lists (John, Hashcat).
Pass-the-hash: log in with the hash itself.
NTLM and LM numbers (from calc.py).
NTLM("password") = 8846f7eaee8fb117ad06bdd830b7586c. Every user with that password has the same hash.
LM halves: about 2 x 69^7 = 1.5 x 10^13 guesses, against 69^14 = 5.5 x 10^25 for one 14-character block.
Remember. The 69-character LM alphabet is an approximation after upper-casing. Check your textbook's figure.
Remember. Commands are for your own lab or for systems you have written permission to test. Testing other systems is an offence.
Real-life example
A society register lists each flat's key code instead of the key. If two flats use the same code, the register shows it. If a thief can use the code itself at the gate, he needs no key. That is pass-the-hash.
Difference between LM and NTLM hash
Point
LM
NTLM
Same or opposite
Windows password hash
Yes
Yes
Same
Case sensitive
No
Yes
Opposite
Splits the password
Into 7 + 7
No
Opposite
Algorithm
DES based
MD4
Opposite
Has a salt
No
No
Same
Exam tip. Say where hashes are stored. Compare LM and NTLM. Name pass-the-hash and the cracking tools.
Q6. Rainbow tables, Linux passwords and salted hashes
Short answer. A rainbow table is a precomputed table that maps hashes back to passwords, trading storage for speed. Linux stores salted hashes in /etc/shadow, where a salt makes precomputed tables useless.
From the syllabus · Unit 3
From the papers
“Unit 3: Rainbow tables, Linux Passwords, Hashes with salt.” (Syllabus)
Write these points
Rainbow tables
Built once for one hash type and character set.
Use chains of hash and reduce steps to save space.
A random value stored with the hash and mixed into it.
Same password gives different hashes for different users.
An attacker needs a table per salt.
Salted hashes (from calc.py).
SHA-256("password" + "a1") starts 408f9fb876dd2f17. With salt "b2" it starts c81be4d1d0274e9a.
With 2^16 possible salts, 65,536 separate tables would be needed. Real salts are far longer.
Real-life example
A school uses roll numbers as locker codes. A cheat writes down all codes once and opens any locker. If each locker adds its own secret number to the code, that list is useless. The extra number is the salt.
Difference between salted and unsalted hashes
Point
Salted
Unsalted
Same or opposite
Stores a password hash
Yes
Yes
Same
Same password, same hash
No
Yes
Opposite
Rainbow tables work
No
Yes
Opposite
Example
Linux $6$
Windows NTLM
Opposite
Weak passwords still fall to word lists
Yes
Yes
Same
Exam tip. Explain rainbow tables in three points. Give the shadow format. Show two salted hashes of the same password.
Short answer.Metasploit is an open source framework for developing and running exploits. It packages exploits, payloads, scanners and post-exploitation tools behind one console.
Payload: what runs after success: a shell or Meterpreter.
Auxiliary: scanners and fuzzers without a payload.
Post: gather data or escalate after access.
Encoders and evasion: change payload signatures.
Basic workflow in msfconsole
search vsftpd
use exploit/unix/ftp/vsftpd_234_backdoor
set RHOSTS 192.168.56.101
run (or exploit)
Work in the session, then record evidence.
A lab run.
Target: the Metasploitable lab VM with vsftpd 2.3.4, which has a known backdoor.
After run, Metasploit opens a command shell as root. The tester notes the time, command and output for the report.
Remember. The vsftpd module name is as we remember it from the Metasploitable lab. The commands were not run here.
Remember. Commands are for your own lab or for systems you have written permission to test. Testing other systems is an offence.
Real-life example
A mechanic's toolbox has a drawer for each job: spanners, screwdrivers, testers. Metasploit is a toolbox where each drawer is a module, so the tester picks the right tool instead of making one.
Difference between exploit and payload
Point
Exploit
Payload
Same or opposite
Metasploit module
Yes
Yes
Same
Job
Breaks in
Runs after entry
Opposite
Depends on
The vulnerability
The goal
Opposite
Example
vsftpd backdoor
Meterpreter shell
Opposite
Chosen in msfconsole
Yes
Yes
Same
Exam tip. Name the module types. Write the console steps in order. Mention a lab target only.
Short answer.SQL injection happens when user input is joined into an SQL query, so the input changes the query itself. It can expose, change or delete database data, including in Oracle, MySQL and other databases.
In-band: results shown on the page (error based, UNION based).
Blind: inferred from true/false or time delays.
Out-of-band: data sent through DNS or HTTP.
Defences
Parameterised queries (prepared statements).
Stored procedures without dynamic SQL.
Input validation and least privilege database accounts.
Hide error messages from users.
q = f"SELECT name FROM users WHERE name='{u}' AND pw='{p}'" # unsafe
db.execute(q)
db.execute("SELECT name FROM users WHERE name=? AND pw=?", (u, p)) # safe
Run on a test database (from calc.py, run with SQLite).
u = admin, p = ' OR '1'='1. The query becomes ... WHERE name='admin' AND pw='' OR '1'='1'.
Because AND binds before OR, the last condition is always true. All 3 users are returned: asha, ravi, admin.
The parameterised query treats the input as plain text and returns no rows.
Real-life example
A bank form says "Pay to: ____". If a clerk copies whatever is written there into the bank's own instructions, a customer could write "me, also empty the vault". Parameterised queries are like a form where the clerk copies only the name.
Difference between string-built query and parameterised query
Point
String-built
Parameterised
Same or opposite
Sends SQL to the database
Yes
Yes
Same
Input treated as
Part of the code
Data only
Opposite
Open to injection
Yes
No
Opposite
Result for ' OR '1'='1
All rows
No rows
Opposite
Needs input validation too
Yes
Yes
Same
Exam tip. Explain why injection happens. Show the changed query. Give parameterised queries as the main fix.
Short answer.Cross-site scripting (XSS) lets an attacker run their script in other users' browsers through a vulnerable site. The script can steal cookies, change the page or act as the user.
From the syllabus · Unit 5
From the papers
“Unit 5: Cross-site scripting.” (Syllabus)
Write these points
Types
Stored: the script is saved on the site (comments, profiles).
Reflected: the script comes back in the response to a crafted link.
DOM based: page JavaScript writes untrusted data into the page.
Defences
Escape output for the right context (HTML, attribute, JavaScript, URL).
Validate input.
Content-Security-Policy header.
HttpOnly cookies so scripts cannot read them.
Escaping (from calc.py, Python html.escape).
Input: alert(1) wrapped in an opening and a closing script tag.
html.escape turns each < into &lt; and each > into &gt;.
The browser shows the text instead of running it.
Remember. Commands are for your own lab or for systems you have written permission to test. Testing other systems is an offence.
Real-life example
Anyone can pin a note on a notice board. Then someone pins a fake notice signed as the principal, telling students to hand their ID cards to a stranger. Stored XSS plants that fake notice in a web page.
Difference between stored and reflected XSS
Point
Stored
Reflected
Same or opposite
Runs script in a victim's browser
Yes
Yes
Same
Where the script lives
On the server
In a link
Opposite
Victim action needed
Open the page
Click the link
Opposite
Reach
Every visitor
Each victim tricked
Opposite
Fixed by output escaping
Yes
Yes
Same
Exam tip. Define XSS and its three types. Draw the stored flow. Show escaping as the main fix.
Q10. Web authentication, session management and mobile device security
Short answer.Web authentication checks who a user is, while session management keeps them logged in safely afterwards. Mobile devices add their own security issues such as insecure storage and unsafe apps.
From the syllabus · Unit 5
From the papers
“Unit 5: Web authentication, Session Management, Mobile device security issues.” (Syllabus)
Write these points
Authentication weaknesses
Weak or default passwords, no lockout.
Passwords stored with fast or no hashing.
User enumeration through different error messages.
No multi-factor authentication.
Session management
Session ID must be random and long (128 bits or more).
New ID after login (stops session fixation).
Cookie flags: Secure, HttpOnly, SameSite.
Timeout and logout destroy the session on the server.
Mobile device security issues
Insecure data storage and hard-coded keys.
Weak TLS or no certificate checks.
Rooted devices and malicious apps.
Lost or stolen phones.
Session ID and password hashing (from calc.py).
A 64-bit ID at 10^9 guesses a second takes about 585 years to exhaust. A 128-bit ID takes about 1.1 x 10^22 years.
bcrypt with cost 12 runs 2^12 = 4,096 rounds, so each password guess is slow.
Real-life example
A cinema checks your ticket at the gate and gives you a wristband for the evening. If wristbands were easy to copy, anyone could walk in. Session IDs are wristbands, so they must be random, protected and cancelled at the end.
Difference between authentication and session management
Point
Authentication
Session management
Same or opposite
Part of access control
Yes
Yes
Same
Happens
At login
After login
Opposite
Uses
Password, MFA
Session ID cookie
Opposite
Typical attack
Brute force
Session hijacking
Opposite
Needs HTTPS
Yes
Yes
Same
Exam tip. List authentication weaknesses, then session rules with cookie flags. Add four mobile issues. Give the session ID strength sum.
Ethical Hacking and Penetration Testing (IS-702-D) FAQs
What are the most important topics in Ethical Hacking and Penetration Testing?
No past paper of this subject is on this site yet, so the topics were chosen from the syllabus. The first five: Ethical hacking and penetration testing; Penetration test report structure and components; Reconnaissance: DNS and web; Scanning using Nmap; Windows passwords and hashes.
How were these Ethical Hacking and Penetration Testing important questions chosen?
Each topic was taken from the syllabus units. No past paper was available to count repeats, and the answers are not teacher-reviewed, so use them together with your syllabus.
Is there a PDF of Ethical Hacking and Penetration Testing important questions with answers?
Yes. The Paperwala Imp Question & Answer PDF for Ethical Hacking and Penetration Testing is free to download from this page.
The 10 topics of Ethical Hacking and Penetration Testing (IS-702-D) for RGPV B.Tech IOT semester 7, chosen from the syllabus. No past paper of this subject is on this site yet, so repeats could not be counted.