wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Ethical Hacking Workshop Exam

Total questions: 50

Worksheet time: 27mins

Name
Class
Date
1.

Which command is used to view file permissions in Linux?

a)

cat

b)

ls -l

c)

chmod

d)

touch

2.

In the permission string -rw-r--r--, what does it represent?

a)

Directory

b)

File

c)

Link

d)

Executable

3.

In Linux permissions, r stands for:

a)

Write

b)

Execute

c)

Read

d)

None of the above

4.

In Linux permissions, w stands for:

a)

Read

b)

Write

c)

Execute

d)

None of the above

5.

Which command is used to change file permissions?

a)

chmod

b)

chown

c)

chperm

d)

premset

6.

In the permission string drwxr-xr-x, what does the initial d indicate?

a)

Document

b)

File

c)

Deleted file

d)

Directory

7.

Which of the following gives the owner read and write permissions only?

a)

-w-

b)

r-x

c)

-wx

d)

rw-

8.

A file shows permissions as -rwx------. This means:

a)

Only group can execute

b)

Everyone can execute

c)

Only the owner has full permissions

d)

No one can access the file

9.

Which command is used to view hidden files in Linux?

a)

ls -l

b)

ls -a

c)

ls

d)

ls -R

10.

In Linux permissions, e stands for:

a)

Read

b)

Write

c)

Execute

d)

None of the above

11.

Which scan type is the default in Nmap?

a)

UDP scan

b)

SYN scan

c)

TCP Connect scan

d)

Ping scan

12.

The flag -sV is used for:

a)

Vulnerability scan

b)

OS detection

c)

Stealth scanning

d)

Service version detection

13.

Which flag scans all ports (1–65535)?

a)

-p all

b)

-p*

c)

-p-

d)

-A

14.

The flag -sU in Nmap is used for:

a)

UDP scan

b)

SYN scan

c)

Tcp Scan

d)

None of the above

15.

Which Nmap option runs all vulnerability scripts?

a)

-sC

b)

-sV

c)

--script vuln

d)

-Pn

16.

Which Nmap option runs default NSE scripts?

a)

-sC

b)

-sV

c)

---scrpt vuln

d)

-Pn

17.

The -oN flag means:

a)

To save output into a file

b)

To check OS

c)

ping the target

18.

The -Pn flag means:

a)

Normal scan

b)

Don’t ping the target

19.

A SYN scan is used with which flag?

a)

-sV

b)

-sS

20.

What does the flag -p22 do?

a)

Scan only port 22 (SSH)

b)

Scan 1-22 ports

21.

What is reconnaissance in ethical hacking?

a)

Breaking into a system

b)

Covering tracks

c)

Covering tracks

d)

Gathering information about the target

22.

What is gaining access in ethical hacking?

a)

Breaking into a system

b)

Gathering information about the target

c)

Covering tracks

23.

Which tool is used for subdomain enumeration?

a)

sqlmap

b)

subfinder

c)

wpscan

d)

hydra

24.

robots.txt is used to:

a)

Block search engine crawlers

b)

Store passwords

25.

What does WHOIS provide?

a)

IP geolocation

b)

Domain ownership details

c)

SQL injection results

d)

WordPress plugin data

26.

Port 22 is used for:

a)

SSH

b)

FTP

c)

Telnet

d)

HTTP

27.

Default Port 21 is used for:

a)

Telnet

b)

SSH

c)

FTP

d)

SMB

28.

SMB enumeration can reveal:

a)

SQL tables

b)

Shared folders

c)

WordPress themes

d)

PHP errors

29.

What is port numbers for SMB

a)

139

b)

443

c)

445

d)

3306

30.

Which tool is used for directory scanning?

a)

dirb / gobuster / feroxbuster

b)

sqlmap

c)

wpscan

d)

Burp Suite

31.

Which tool is used for zip file password cracking?

a)

Hydra

b)

JohnTheRipper (John)

c)

Burpsuite

d)

None of the above

32.

Which command lists sudo rights?

a)

sudo rights

b)

sudo show

c)

sudo -l

d)

sudo su

33.

/etc/shadow stores:

a)

Encrypted passwords

b)

Group information

c)

Kernel logs

d)

Network configs

34.

WPScan is used for:

a)

SQL injection

b)

WordPress vulnerability scanning

c)

Packet capture

d)

DNS spoofing

35.

Which file contains WordPress configuration settings?

a)

wp-config.php

b)

settings.json

36.

WordPress default login page:

a)

/wp-login.php

b)

/panel

c)

/index.php

37.

What endpoint shows wordPress users?

a)

?rest_route=/wp/v2/users

b)

/wp-json/wp/v2/users

c)

/wp-json

d)

None of the above

38.

SQL Injection is caused by:

a)

Weak encryption

b)

Improper input validation & sanitization

c)

Directory listing

d)

Missing plugins

39.

SQLMap automates:

a)

Nmap scans

b)

WordPress scanning

c)

SQL Injection exploitation

d)

File inclusion attacks

40.

Which parameter / flag shows the databases in SQLMap?

a)

--dbs

b)

--table

c)

--dump

d)

--columns

41.

Which parameter / flag enables tables enumeration in SQLMap?

a)

--dbs

b)

--columns

c)

--dump

d)

--tables

42.

What does UNION-based SQLi do?

a)

Upload malware

b)

Combine results of multiple SELECT queries

c)

Bypass firewall

d)

Spoof IP

43.

XSS stands for:

a)

Cross Side Security

b)

Cross Site Scripting

c)

Cross Software Security

d)

Cross Site Spoofing

44.

Which type of XSS requires a victim to click a link?

a)

Stored

b)

Reflected

c)

DOM-based

d)

Blind

45.

XSS allows attackers to:

a)

Modify databases

b)

Scan ports

c)

Modify kernel

d)

Steal cookies

46.

A common LFI payload is:

a)

?file=../../etc/passwd

b)

<script>alert()

c)

UNION SELECT

d)

None of the above

47.

The purpose of ethical hacking is:

a)

Harm systems

b)

Steal data

c)

Bypass exams

d)

Helping Organizations by identifying vulnerabilities

48.

Which of the following is an example of social engineering?

a)

SQL injection

b)

Asking an employee for their password by pretending to be IT support

c)

Port scanning

d)

Password Brute-Force

49.

Which command starts Metasploit Framework console?

a)

metasploit start

b)

msfconsole

c)

run metasploit

d)

metasploit-cli

50.

Which command is used to connect to an OpenVPN profile of TryHAckMe in Linux?

a)

sudo vpn connect <file>

b)

ovpn run <file>

c)

connect vpn <file.ovpn>

d)

sudo openvpn <file.ovpn>