IS-702-D Ethical Hacking and Penetration Testing

Ethical Hacking and Penetration Testing (IS-702-D) Important Questions

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.

Download Paperwala Imp Question & Answer (PDF)

How we made this list
  • All papers on this site: 0
  • 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

  1. Pre-engagement: scope, rules and written consent.
  2. Reconnaissance: gather information.
  3. Scanning and enumeration: find live hosts, ports and services.
  4. Exploitation: gain access through a weakness.
  5. Post-exploitation: escalate, pivot, collect evidence.
  6. Reporting: findings with fixes.
Diagram: Ethical hacking and penetration testing

Kinds of tests

  • Black box, grey box and white box, by how much the tester knows.
  • External, internal, web application, wireless, social engineering.
Diagram: Ethical hacking and penetration testing

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

PointEthical hackerMalicious hackerSame or opposite
Uses attack tools and methodsYesYesSame
PermissionWritten consentNoneOpposite
GoalFix weaknessesSteal or damageOpposite
OutputReport to the ownerHidden accessOpposite
Needs technical skillYesYesSame

Exam tip. Define both terms. Write the six phases. Name the black, grey and white box tests.

Back to the topic list

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)

Write these points

Structure and components

  1. Executive summary: overall risk in plain words.
  2. Scope and method: targets, dates, tools, limits.
  3. Findings: title, affected hosts, evidence, risk rating.
  4. Recommendations: fix for each finding, priority.
  5. Appendices: raw scan output, screenshots, glossary.
Diagram: Penetration test report structure and components

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

PointExecutive summaryTechnical findingsSame or opposite
Part of the reportYesYesSame
ReaderManagersEngineersOpposite
LanguagePlain business wordsTechnical detailOpposite
LengthOne or two pagesMany pagesOpposite
Based on the same testsYesYesSame

Exam tip. Write the five parts as a list. Draw the structure. Show one risk calculation to rank findings.

Back to the topic list

Q3. Reconnaissance: DNS and web

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.
Diagram: Reconnaissance: DNS and web

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

PointPassiveActiveSame or opposite
Gathers target informationYesYesSame
Contacts the targetNoYesOpposite
Chance of detectionVery lowHigherOpposite
ExampleWHOIS, search enginesDNS zone transfer, banner grabOpposite
Needs to be in scopeYesYesSame

Exam tip. Define passive and active. List DNS records and tools. Mention zone transfer and web sources like robots.txt.

Back to the topic list

Q4. Scanning using Nmap

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).
  • Connect scan: nmap -sT target.
  • UDP scan: nmap -sU target.
  • Version and OS: nmap -sV -O target.
  • Scripts: nmap --script vuln target.

Port states

  • open, closed, filtered, unfiltered, open|filtered.
Diagram: Scanning using Nmap

How long a scan takes (from calc.py).

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

PointSYN scanConnect scanSame or opposite
Finds open TCP portsYesYesSame
HandshakeHalf, RST at the endFullOpposite
Needs root rightsYesNoOpposite
Logged by applicationsLess oftenOftenOpposite
Nmap option-sS-sTOpposite

Exam tip. Write each scan with its command. List port states. Work out the time for a full and a default scan.

Back to the topic list

Q5. Windows passwords and hashes

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.
Diagram: Windows passwords and hashes

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

PointLMNTLMSame or opposite
Windows password hashYesYesSame
Case sensitiveNoYesOpposite
Splits the passwordInto 7 + 7NoOpposite
AlgorithmDES basedMD4Opposite
Has a saltNoNoSame

Exam tip. Say where hashes are stored. Compare LM and NTLM. Name pass-the-hash and the cracking tools.

Back to the topic list

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.
  • Crack unsalted hashes such as LM or NTLM quickly.

Linux passwords

  • /etc/passwd lists users. /etc/shadow (root only) holds hashes.
  • Format: $id$salt$hash. $1$ MD5, $5$ SHA-256, $6$ SHA-512, $y$ yescrypt.
  • Many rounds slow down each guess.

Salt

  • 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.
Diagram: Rainbow tables, Linux passwords and salted hashes

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

PointSaltedUnsaltedSame or opposite
Stores a password hashYesYesSame
Same password, same hashNoYesOpposite
Rainbow tables workNoYesOpposite
ExampleLinux $6$Windows NTLMOpposite
Weak passwords still fall to word listsYesYesSame

Exam tip. Explain rainbow tables in three points. Give the shadow format. Show two salted hashes of the same password.

Back to the topic list

Q7. Metasploit exploitation framework

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.

From the syllabus · Unit 4

From the papers

  • “Unit 4: Metasploit exploitation framework.” (Syllabus)

Write these points

Module types

  • Exploit: code that uses one vulnerability.
  • 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.
Diagram: Metasploit exploitation framework

Basic workflow in msfconsole

  1. search vsftpd
  2. use exploit/unix/ftp/vsftpd_234_backdoor
  3. set RHOSTS 192.168.56.101
  4. run (or exploit)
  5. 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

PointExploitPayloadSame or opposite
Metasploit moduleYesYesSame
JobBreaks inRuns after entryOpposite
Depends onThe vulnerabilityThe goalOpposite
Examplevsftpd backdoorMeterpreter shellOpposite
Chosen in msfconsoleYesYesSame

Exam tip. Name the module types. Write the console steps in order. Mention a lab target only.

Back to the topic list

Q8. Databases, SQL and SQL injection

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.

From the syllabus · Unit 4

From the papers

  • “Unit 4: Oracle hacks, Databases, SQL, SQL Injection.” (Syllabus)

Write these points

Types

  • 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.
Diagram: Databases, SQL and SQL injection
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

PointString-builtParameterisedSame or opposite
Sends SQL to the databaseYesYesSame
Input treated asPart of the codeData onlyOpposite
Open to injectionYesNoOpposite
Result for ' OR '1'='1All rowsNo rowsOpposite
Needs input validation tooYesYesSame

Exam tip. Explain why injection happens. Show the changed query. Give parameterised queries as the main fix.

Back to the topic list

Q9. Cross-site scripting

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.
Diagram: Cross-site scripting

Escaping (from calc.py, Python html.escape).

Input: alert(1) wrapped in an opening and a closing script tag.

html.escape turns each < into &amp;lt; and each > into &amp;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

PointStoredReflectedSame or opposite
Runs script in a victim's browserYesYesSame
Where the script livesOn the serverIn a linkOpposite
Victim action neededOpen the pageClick the linkOpposite
ReachEvery visitorEach victim trickedOpposite
Fixed by output escapingYesYesSame

Exam tip. Define XSS and its three types. Draw the stored flow. Show escaping as the main fix.

Back to the topic list

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.
Diagram: Web authentication, session management and mobile device security

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

PointAuthenticationSession managementSame or opposite
Part of access controlYesYesSame
HappensAt loginAfter loginOpposite
UsesPassword, MFASession ID cookieOpposite
Typical attackBrute forceSession hijackingOpposite
Needs HTTPSYesYesSame

Exam tip. List authentication weaknesses, then session rules with cookie flags. Add four mobile issues. Give the session ID strength sum.

Back to the topic list

Start with the latest papers

Previous year papers will be added soon!

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.