312-50 v13 Demo
312-50 v13 Demo
Question: 1
User A is writing a sensitive email message to user B outside the local network. User A has chosen to
use PKI to secure his message and ensure only user B can read the sensitive email. At what layer of
the OSI layer does the encryption and decryption of the message take place?
A. Application
B. Transport
C. Session
D. Presentation
Answer: D
Questions and Answers PDF 3/530
Explanation:
https://en.wikipedia.org/wiki/Presentation_layer
In the seven-layer OSI model of computer networking, the presentation layer is layer 6 and serves as
the data translator for the network. It is sometimes called the syntax layer. The presentation layer is
responsible for the formatting and delivery of information to the application layer for further
processing or display.
Encryption is typically done at this level too, although it can be done on the application, session,
transport, or network layers, each having its own advantages and disadvantages. Decryption is also
handled at the presentation layer. For example, when logging on to bank account sites the
presentation layer will decrypt the data as it is received.
Question: 2
A new wireless client is configured to join a 802.11 network. This client uses the same hardware and
software as many of the other clients on the network. The client can see the network, but cannot
connect. A wireless packet sniffer shows that the Wireless Access Point (WAP) is not responding to
the association requests being sent by the wireless client. What is a possible source of this problem?
Answer: A
Questions and Answers PDF 4/530
Explanation:
https://en.wikipedia.org/wiki/MAC_filtering
MAC filtering is a security method based on access control. Each address is assigned a 48-bit address,
which is used to determine whether we can access a network or not. It helps in listing a set of
allowed devices that you need on your Wi-Fi and the list of denied devices that you don’t want on
your Wi-Fi. It helps in preventing unwanted access to the network. In a way, we can blacklist or white
list certain computers based on their MAC address. We can configure the filter to allow connection
only to those devices included in the white list. White lists provide greater security than blacklists
because the router grants access only to selected devices.
It is used on enterprise wireless networks having multiple access points to prevent clients from
communicating with each other. The access point can be configured only to allow clients to talk to
the default gateway, but not other wireless clients. It increases the efficiency of access to a network.
The router allows configuring a list of allowed MAC addresses in its web interface, allowing you to
choose which devices can connect to your network. The router has several functions designed to
improve the network's security, but not all are useful. Media access control may seem advantageous,
but there are certain flaws.
On a wireless network, the device with the proper credentials such as SSID and password can
authenticate with the router and join the network, which gets an IP address and access to the
internet and any shared resources.
MAC address filtering adds an extra layer of security that checks the device’s MAC address against a
list of agreed addresses. If the client’s address matches one on the router’s list, access is granted;
otherwise, it doesn’t join the network.
Question: 3
You are tasked to perform a penetration test. While you are performing information gathering, you
Questions and Answers PDF 5/530
find an employee list in Google. You find the receptionist’s email, and you send her an email
changing the source email to her boss’s email (boss@company). In this email, you ask for a pdf with
information. She reads your email and sends back a pdf with links. You exchange the pdf links with
your malicious links (these links contain malware) and send back the modified pdf, saying that the
links don’t work. She reads your email, opens the links, and her machine gets infected. You now have
access to the company network. What testing method did you use?
A. Social engineering
B. Piggybacking
C. Tailgating
D. Eavesdropping
Answer: A
Explanation:
Social engineering is the term used for a broad range of malicious activities accomplished through
human interactions. It uses psychological manipulation to trick users into making security mistakes or
giving away sensitive information.
Social engineering attacks typically involve some form of psychological manipulation, fooling
otherwise unsuspecting users or employees into handing over confidential or sensitive data.
Commonly, social engineering involves email or other communication that invokes urgency, fear, or
similar emotions in the victim, leading the victim to promptly reveal sensitive information, click a
malicious link, or open a malicious file. Because social engineering involves a human element,
preventing these attacks can be tricky for enterprises.
Incorrect answers:
Questions and Answers PDF 6/530
Tailgating provides a simple social engineering-based way around many security mechanisms one
would think of as secure. Even retina scanners don't help if an employee holds the door for an
unknown person behind them out of misguided courtesy.
People who might tailgate include disgruntled former employees, thieves, vandals, mischief-makers,
and issues with employees or the company. Any of these can disrupt business, cause damage, create
unexpected costs, and lead to further safety issues.
Eavesdropping https://en.wikipedia.org/wiki/Eavesdropping
The question does not specify at what level and how this attack is used. An attacker can eavesdrop
on a conversation or use special software and obtain information on the network. There are many
options, but this is not important because the correct answer is clearly not related to information
interception.
Question: 4
If a tester is attempting to ping a target that exists but receives no response or a response that states
the destination is unreachable, ICMP may be disabled and the network may be using TCP. Which
other option could the tester use to get a response from a host using TCP?
A. Traceroute
B. Hping
C. TCP ping
D. Broadcast ping
Questions and Answers PDF 7/530
Answer: B
Explanation:
https://tools.kali.org/information-gathering/hping3
http://www.carnal0wnage.com/papers/LSO-Hping2-Basics.pdf
Question: 5
Which is the first step followed by Vulnerability Scanners for scanning a network?
A. OS Detection
B. Firewall detection
Answer: D
Explanation:
1. Locating nodes: The first step in vulnerability scanning is to locate live hosts in the target network
using various scanning techniques.
2. Performing service and OS discovery on them: After detecting the live hosts in the target network,
the next step is to enumerate the open ports and services and the operating system on the target
Questions and Answers PDF 8/530
systems.
3. Testing those services and OS for known vulnerabilities: Finally, after identifying the open services
and the operating system running on the target nodes, they are tested for known vulnerabilities.
Question: 6
A. Polymorphic virus
B. Multipart virus
C. Macro virus
D. Stealth virus
Answer: C
Explanation:
A macro virus is a virus that is written in a macro language: a programming language which is
embedded inside a software application (e.g., word processors and spreadsheet applications). Some
applications, such as Microsoft Office, allow macro programs to be embedded in documents such
that the macros are run automatically when the document is opened, and this provides a distinct
mechanism by which malicious computer instructions can spread. (Wikipedia)
NB: The virus Melissa is a well-known macro virus we could find attached to word documents.
Questions and Answers PDF 9/530
Question: 7
A technician is resolving an issue where a computer is unable to connect to the Internet using a
wireless access point. The computer is able to transfer files locally to other machines, but cannot
successfully reach the Internet. When the technician examines the IP address and default gateway
they are both on the 192.168.1.0/24. Which of the following has occurred?
C. The gateway and the computer are not on the same network.
Answer: B
Explanation:
https://en.wikipedia.org/wiki/Private_network
In IP networking, a private network is a computer network that uses private IP address space. Both
the IPv4 and the IPv6 specifications define private IP address ranges. These addresses are commonly
used for local area networks (LANs) in residential, office, and enterprise environments.
Private network addresses are not allocated to any specific organization. Anyone may use these
addresses without approval from regional or local Internet registries. Private IP address spaces were
originally defined to assist in delaying IPv4 address exhaustion. IP packets originating from or
addressed to a private IP address cannot be routed through the public Internet.
The Internet Engineering Task Force (IETF) has directed the Internet Assigned Numbers Authority
(IANA) to reserve the following IPv4 address ranges for private networks:
· 10.0.0.0 – 10.255.255.255
· 172.16.0.0 – 172.31.255.255
Questions and Answers PDF 10/530
· 192.168.0.0 – 192.168.255.255
Backbone routers do not allow packets from or to internal IP addresses. That is, intranet machines, if
no measures are taken, are isolated from the Internet. However, several technologies allow such
machines to connect to the Internet.
· Tunneling protocol
Question: 8
Identify the UDP port that Network Time Protocol (NTP) uses as its primary means of
communication?
A. 113
B. 69
C. 123
D. 161
Answer: C
Explanation:
https://en.wikipedia.org/wiki/Network_Time_Protocol
The Network Time Protocol (NTP) is a networking protocol for clock synchronization between
computer systems over packet-switched, variable-latency data networks.
Questions and Answers PDF 11/530
NTP is intended to synchronize all participating computers within a few milliseconds of Coordinated
Universal Time (UTC). It uses the intersection algorithm, a modified version of Marzullo's algorithm,
to select accurate time servers and is designed to mitigate variable network latency effects. NTP can
usually maintain time to within tens of milliseconds over the public Internet and achieve better than
one millisecond accuracy in local area networks. Asymmetric routes and network congestion can
cause errors of 100 ms or more.
The protocol is usually described in terms of a client-server model but can easily be used in peer-to-
peer relationships where both peers consider the other to be a potential time source.
Implementations send and receive timestamps using the User Datagram Protocol (UDP) on port
number 123.
Question: 9
Which of the following tools performs comprehensive tests against web servers, including dangerous
files and CGIs?
A. Nikto
C. Dsniff
D. Snort
Questions and Answers PDF 12/530
Answer: A
Explanation:
https://en.wikipedia.org/wiki/Nikto_(vulnerability_scanner)
Nikto is a free software command-line vulnerability scanner that scans web servers for dangerous
files/CGIs, outdated server software, and other problems. It performs generic and server types
specific checks. It also captures and prints any cookies received. The Nikto code itself is free
software, but the data files it uses to drive the program are not.
Question: 10
An incident investigator asks to receive a copy of the event logs from all firewalls, proxy servers, and
Intrusion Detection Systems (IDS) on the network of an organization that has experienced a possible
breach of security. When the investigator attempts to correlate the information in all of the logs, the
sequence of many of the logged events do not match up.
B. Proper chain of custody was not observed while collecting the logs.
Answer: A
Explanation:
Many network and system administrators don't pay enough attention to system clock accuracy and
time synchronization. Computer clocks can run faster or slower over time, batteries and power
Questions and Answers PDF 13/530
sources die, or daylight-saving time changes are forgotten. Sure, there are many more pressing
security issues to deal with, but not ensuring that the time on network devices is synchronized can
cause problems. And these problems often only come to light after a security incident.
If you suspect a hacker is accessing your network, for example, you will want to analyze your log files
to look for any suspicious activity. If your network's security devices do not have synchronized times,
the timestamps' inaccuracy makes it impossible to correlate log files from different sources. Not only
will you have difficulty in tracking events, but you will also find it difficult to use such evidence in
court; you won't be able to illustrate a smooth progression of events as they occurred throughout
your network.
Question: 11
During a black-box pen test you attempt to pass IRC traffic over port 80/TCP from a compromised
web enabled host. The traffic gets blocked; however, outbound HTTP traffic is unimpeded. What type
of firewall is inspecting outbound traffic?
A. Circuit
B. Stateful
C. Application
Questions and Answers PDF 14/530
D. Packet Filtering
Answer: C
Explanation:
https://en.wikipedia.org/wiki/Internet_Relay_Chat
Internet Relay Chat (IRC) is an application layer protocol that facilitates communication in text. The
chat process works on a client/server networking model. IRC clients are computer programs that
users can install on their system or web-based applications running either locally in the browser or
on a third-party server. These clients communicate with chat servers to transfer messages to other
clients.
IRC is a plaintext protocol that is officially assigned port 194, according to IANA. However, running
the service on this port requires running it with root-level permissions, which is inadvisable. As a
result, the well-known port for IRC is 6667, a high-number port that does not require elevated
privileges. However, an IRC server can also be configured to run on other ports as well.
You can't tell if an IRC server is designed to be malicious solely based on port number. Still, if you see
an IRC server running on port a WKP such as 80, 8080, 53, 443, it's almost always going to be
malicious; the only real reason for IRCD to be running on port 80 is to try to evade firewalls.
https://en.wikipedia.org/wiki/Application_firewall
Application layer filtering operates at a higher level than traditional security appliances. This allows
packet decisions to be made based on more than just source/destination IP Addresses or ports. It can
also use information spanning across multiple connections for any given host.
Network-based application firewalls operate at the application layer of a TCP/IP stack. They can
understand certain applications and protocols such as File Transfer Protocol (FTP), Domain Name
System (DNS), or Hypertext Transfer Protocol (HTTP). This allows it to identify unwanted applications
or services using a non-standard port or detect if an allowed protocol is being abused.
A host-based application firewall monitors application system calls or other general system
communication. This gives more granularity and control but is limited to only protecting the host it is
running on. Control is applied by filtering on a per-process basis. Generally, prompts are used to
define rules for processes that have not yet received a connection. Further filtering can be done by
examining the process ID of the owner of the data packets. Many host-based application firewalls are
combined or used in conjunction with a packet filter.
Question: 12
By using a smart card and pin, you are using a two-factor authentication that satisfies
Answer: B
Explanation:
Two-factor Authentication or 2FA is a user identity verification method, where two of the three
possible authentication factors are combined to grant access to a website or application.1)
something the user knows, 2) something the user has, or 3) something the user is.
Questions and Answers PDF 16/530
This is often a password, passphrase, PIN, or secret question. To satisfy this authentication challenge,
the user must provide information that matches the answers previously provided to the organization
by that user, such as “Name the town in which you were born.”
This involves entering a one-time password generated by a hardware authenticator. Users carry
around an authentication device that will generate a one-time password on command. Users then
authenticate by providing this code to the organization. Today, many organizations offer software
authenticators that can be installed on the user’s mobile device.
This third authentication factor requires the user to authenticate using biometric data. This can
include fingerprint scans, facial scans, behavioral biometrics, and more.
For example: In internet security, the most used factors of authentication are:
something the user has (e.g., a bank card) and something the user knows (e.g., a PIN code). This is
two-factor authentication. Two-factor authentication is also sometimes referred to as strong
authentication, Two-Step Verification, or 2FA.
The key difference between Multi-Factor Authentication (MFA) and Two-Factor Authentication (2FA)
is that, as the term implies, Two-Factor Authentication utilizes a combination of two out of three
possible authentication factors. In contrast, Multi-Factor Authentication could utilize two or more of
these authentication factors.
Question: 13
“........is an attack type for a rogue Wi-Fi access point that appears to be a legitimate one offered on
the premises, but actually has been set up to eavesdrop on wireless communications. It is the
wireless version of the phishing scam. An attacker fools wireless users into connecting a laptop or
mobile phone to a tainted hot-spot by posing as a legitimate provider. This type of attack may be
used to steal the passwords of
unsuspecting users by either snooping the communication link or by phishing, which involves setting
up a fraudulent web site and luring people there.”
Questions and Answers PDF 17/530
B. Sinkhole Attack
C. Collision Attack
Answer: A
Explanation:
https://en.wikipedia.org/wiki/Evil_twin_(wireless_networks)
An evil twin attack is a hack attack in which a hacker sets up a fake Wi-Fi network that looks like a
legitimate access point to steal victims’ sensitive details. Most often, the victims of such attacks are
ordinary people like you and me.
The attack can be performed as a man-in-the-middle (MITM) attack. The fake Wi-Fi access point is
used to eavesdrop on users and steal their login credentials or other sensitive information. Because
the hacker owns the equipment being used, the victim will have no idea that the hacker might be
intercepting things like bank transactions.
An evil twin access point can also be used in a phishing scam. In this type of attack, victims will
connect to the evil twin and will be lured to a phishing site. It will prompt them to enter their
sensitive data, such as their login details. These, of course, will be sent straight to the hacker. Once
the hacker gets them, they might simply disconnect the victim and show that the server is
temporarily unavailable.
ADDITION: It may not seem obvious what happened. The problem is in the question statement. The
attackers were not Alice and John, who were able to connect to the network without a password, but
on the contrary, they were attacked and forced to connect to a fake network, and not to the real
network belonging to Jane.
Questions and Answers PDF 18/530
Question: 14
What term describes the amount of risk that remains after the vulnerabilities are classified and the
countermeasures have been deployed?
A. Residual risk
B. Impact risk
C. Deferred risk
D. Inherent risk
Answer: A
Explanation:
https://en.wikipedia.org/wiki/Residual_risk
The residual risk is the risk or danger of an action or an event, a method or a (technical) process that,
although being abreast with science, still conceives these dangers, even if all theoretically possible
safety measures would be applied (scientifically conceivable measures); in other words, the amount
of risk left over after natural or inherent risks have been reduced by risk controls.
Question: 15
Session splicing is an IDS evasion technique in which an attacker delivers data in multiple, small sized
packets to the target computer, making it very difficult for an IDS to detect the attack signatures.
Which tool can be used to perform session splicing attacks?
A. tcpsplice
B. Burp
C. Hydra
D. Whisker
Answer: D
Explanation:
«Many IDS reassemble communication streams; hence, if a packet is not received within a
reasonable period, many IDS stop reassembling and handling that stream. If the application under
attack keeps a session active for a longer time than that spent by the IDS on reassembling it, the IDS
will stop. As a result, any session after the IDS stops reassembling the sessions will be susceptible to
malicious data theft by attackers. The IDS will not log any attack attempt after a successful splicing
attack. Attackers can use tools such as Nessus for session splicing attacks.»
Did you know that the EC-Council exam shows how well you know their official book? So, there is no
"Whisker" in it. In the chapter "Evading IDS" -> "Session Splicing", the recommended tool for
performing a session-splicing attack is Nessus. Where Wisker came from is not entirely clear, but I
will assume the author of the question found it while copying Wikipedia.
https://en.wikipedia.org/wiki/Intrusion_detection_system_evasion_techniques
One basic technique is to split the attack payload into multiple small packets so that the IDS must
reassemble the packet stream to detect the attack. A simple way of splitting packets is by
fragmenting them, but an adversary can also simply craft packets with small payloads. The 'whisker'
evasion tool calls crafting packets with small payloads 'session splicing'.
Questions and Answers PDF 20/530
By itself, small packets will not evade any IDS that reassembles packet streams. However, small
packets can be further modified in order to complicate reassembly and detection. One evasion
technique is to pause between sending parts of the attack, hoping that the IDS will time out before
the target computer does. A second evasion technique is to send the packets out of order, confusing
simple packet re-assemblers but not the target computer.
NOTE: Yes, I found scraps of information about the tool that existed in 2012, but I can not give you
unverified information. According to the official tutorials, the correct answer is Nessus, but if you
know anything about Wisker, please write in the QA section. Maybe this question will be updated
soon, but I'm not sure about that.
Question: 16
You have successfully comprised a server having an IP address of 10.10.0.5. You would like to
enumerate all machines in the same network quickly.
Answer: B
Explanation:
https://nmap.org/book/man-port-specification.html
NOTE: In my opinion, this is an absolutely wrong statement of the question. But you may come
across a question with a similar wording on the exam. What does "fast" mean? If we want to increase
the speed and intensity of the scan we can select the mode using the -T flag (0/1/2/3/4/5). At high -T
values, we will sacrifice stealth and gain speed, but we will not limit functionality.
Questions and Answers PDF 21/530
Specifies that you wish to scan fewer ports than the default. Normally Nmap scans the most common
1,000 ports for each scanned protocol. With -F, this is reduced to 100.
Technically, scanning will be faster, but just because we have reduced the number of ports by 10
times, we are just doing 10 times less work, not faster.
Question: 17
Which of the following is the BEST way to defend against network sniffing?
Answer: A
Explanation:
https://en.wikipedia.org/wiki/Sniffing_attack
To prevent networks from sniffing attacks, organizations and individual users should keep away from
applications using insecure protocols, like basic HTTP authentication, File Transfer Protocol (FTP), and
Telnet. Instead, secure protocols such as HTTPS, Secure File Transfer Protocol (SFTP), and Secure Shell
Questions and Answers PDF 22/530
(SSH) should be preferred. In case there is a necessity for using any insecure protocol in any
application, all the data transmission should be encrypted. If required, VPN (Virtual Private
Networks) can be used to provide secure access to users.
NOTE: I want to note that the wording "best option" is valid only for the EC-Council's exam since the
other options will not help against sniffing or will only help from some specific attack vectors.
The sniffing attack surface is huge. To protect against it, you will need to implement a complex of
measures at all levels of abstraction and apply controls at the physical, administrative, and technical
levels. However, encryption is indeed the best option of all, even if your data is intercepted - an
attacker cannot understand it.
Question: 18
Although FTP traffic is not encrypted by default, which layer 3 protocol would allow for end-to-end
encryption of the connection?
A. SFTP
B. Ipsec
C. SSL
D. FTPS
Answer: B
Explanation:
https://en.wikipedia.org/wiki/IPsec
Internet Protocol Security (IPsec) is a secure network protocol suite that authenticates and encrypts
the packets of data to provide secure encrypted communication between two computers over an
Questions and Answers PDF 23/530
IPsec includes protocols for establishing mutual authentication between agents at the beginning of a
session and negotiation of cryptographic keys to use during the session. IPsec can protect data flows
between a pair of hosts (host-to-host), between a pair of security gateways (network-to-network), or
between a security gateway and a host (network-to-host). IPsec uses cryptographic security services
to protect communications over Internet Protocol (IP) networks. It supports network-level peer
authentication, data-origin authentication, data integrity, data confidentiality (encryption), and
replay protection.
The initial IPv4 suite was developed with few security provisions. As a part of the IPv4 enhancement,
IPsec is a layer 3 OSI model or internet layer end-to-end security scheme. In contrast, while some
other Internet security systems in widespread use operate above layer 3, such as Transport Layer
Security (TLS) that operates at the Transport Layer and Secure Shell (SSH) that operates at the
Application layer, IPsec can automatically secure applications at the IP layer.
Incorrect answers:
SFTP https://en.wikipedia.org/wiki/File_Transfer_Protocol#FTP_over_SSH
FTP over SSH is the practice of tunneling a normal FTP session over a Secure Shell connection.[27]
Because FTP uses multiple TCP connections (unusual for a TCP/IP protocol that is still in use), it is
particularly difficult to tunnel over SSH. With many SSH clients, attempting to set up a tunnel for the
control channel (the initial client-to-server connection on port 21) will protect only that channel;
when data is transferred, the FTP software at either end sets up new TCP connections (data channels)
and thus have no confidentiality or integrity protection.
FTPS https://en.wikipedia.org/wiki/FTPS
FTPS (also known FTP-SSL, and FTP Secure) is an extension to the commonly used File Transfer
Protocol (FTP) that adds support for the Transport Layer Security (TLS) and, formerly, the Secure
Sockets Layer cryptographic protocols.
SSL https://en.wikipedia.org/wiki/Transport_Layer_Security
Transport Layer Security (TLS), and its now-deprecated predecessor, Secure Sockets Layer (SSL), are
cryptographic protocols designed to provide communications security over a computer network.
Several versions of the protocols are widely used in applications such as web browsing, email, instant
messaging, and voice over IP (VoIP). Websites can use TLS to secure all communications between
their servers and web browsers.
Questions and Answers PDF 24/530
NOTE: All of these protocols are the application layer of the OSI model.
Question: 19
You are the Network Admin, and you get a complaint that some of the websites are no longer
accessible. You try to ping the servers and find them to be reachable. Then you type the IP address
and then you try on the browser, and find it to be accessible. But they are not accessible when you
try using the URL.
Answer: A
Explanation:
DNS stands for “Domain Name System.” It’s a system that lets you connect to websites by matching
human-readable domain names (like example.com) with the server's unique ID where a website is
stored.
Questions and Answers PDF 25/530
Think of the DNS system as the internet’s phonebook. It lists domain names with their corresponding
identifiers called IP addresses, instead of listing people’s names with their phone numbers. When a
user enters a domain name like wpbeginner.com on their device, it looks up the IP address and
connects them to the physical location where that website is stored.
NOTE: Often DNS lookup information will be cached locally inside the querying computer or remotely
in the DNS infrastructure. There are typically 8 steps in a DNS lookup. When DNS information is
cached, steps are skipped from the DNS lookup process, making it quicker. The example below
outlines all 8 steps when nothing is cached.
1. A user types ‘example.com’ into a web browser, and the query travels into the Internet and is
received by a DNS recursive resolver;
3. The root server then responds to the resolver with the address of a Top-Level Domain (TLD) DNS
server (such as .com or .net), which stores the information for its domains. When searching for
example.com, our request is pointed toward the .com TLD;
5. The TLD server then responds with the IP address of the domain’s nameserver, example.com;
7. The IP address for example.com is then returned to the resolver from the nameserver;
8. The DNS resolver then responds to the web browser with the IP address of the domain requested
initially;
Once the 8 steps of the DNS lookup have returned the IP address for example.com, the browser can
request the web page:
10. The server at that IP returns the webpage to be rendered in the browser.
NOTE 2: DNS primarily uses the User Datagram Protocol (UDP) on port number 53 to serve requests.
And if this port is blocked, then a problem arises already in the first step. But the ninth step is
performed without problems.
Questions and Answers PDF 26/530
Question: 20
Which of the following tools is used to detect wireless LANs using the 802.11a/b/g/n WLAN
standards on a linux platform?
A. Kismet
B. Abel
C. Netstumbler
D. Nessus
Answer: A
Explanation:
https://en.wikipedia.org/wiki/Kismet_(software)
Kismet is a network detector, packet sniffer, and intrusion detection system for 802.11 wireless LANs.
Kismet will work with any wireless card which supports raw monitoring mode, and can sniff 802.11a,
802.11b, 802.11g, and 802.11n traffic.
Incorrect answers:
Nessus https://en.wikipedia.org/wiki/Nessus_(software)
Nessus is a remote security scanning tool that scans a computer and raises an alert if it discovers any
vulnerabilities that malicious hackers could use to access any computer you have connected to a
network.
Questions and Answers PDF 27/530
Nmap https://en.wikipedia.org/wiki/Nmap
Nmap (Network Mapper) is a free and open-source network scanner created by Gordon Lyon (also
known by his pseudonym Fyodor Vaskovich). Nmap is used to discover hosts and services on a
computer network by sending packets and analyzing the responses.
Nmap provides a number of features for probing computer networks, including host discovery and
service and operating system detection. These features are extensible by scripts that provide more
advanced service detection, vulnerability detection, and other features. Nmap can adapt to network
conditions including latency and congestion during a scan.
Abel https://en.wikipedia.org/wiki/Cain_and_Abel_(software)
Cain and Abel (often abbreviated to Cain) was a password recovery tool for Microsoft Windows. It
could recover many kinds of passwords using methods such as network packet sniffing, cracking
various password hashes by using methods such as dictionary attacks, brute force and cryptanalysis
attacks. Cryptanalysis attacks were done via rainbow tables which could be generated with the
winrtgen.exe program provided with Cain and Abel.
Question: 21
Scenario1:
2. Attacker sets up a web site which contains interesting and attractive content like 'Do you want to
make
$1000 in a day?'.
4. Attacker creates a transparent 'iframe' in front of the URL which victim attempts to click, so victim
thinks that he/she clicks to the 'Do you want to make $1000 in a day?' URL but actually he/she clicks
to the content or URL that exists in the transparent 'iframe' which is setup by the attacker.
A. Session Fixation
B. HTML Injection
D. Clickjacking Attack
Answer: D
Explanation:
https://en.wikipedia.org/wiki/Clickjacking
Clickjacking is an attack that tricks a user into clicking a webpage element which is invisible or
disguised as another element. This can cause users to unwittingly download malware, visit malicious
web pages, provide credentials or sensitive information, transfer money, or purchase products
online.
Typically, clickjacking is performed by displaying an invisible page or HTML element, inside an iframe,
on top of the page the user sees. The user believes they are clicking the visible page but in fact they
are clicking an invisible element in the additional page transposed on top of it.
Question: 22
A network administrator discovers several unknown files in the root directory of his Linux FTP server.
One of the files is a tarball, two are shell script files, and the third is a binary file is named "nc." The
FTP server's access logs show that the anonymous user account logged in to the server, uploaded the
files, and extracted the contents of the tarball and ran the script using a function provided by the FTP
server's software. The “ps” command shows that the “nc” file is running as process, and the netstat
command shows the “nc” process is listening on a network port.
What kind of vulnerability must be present to make this remote attack possible?
Questions and Answers PDF 29/530
B. Privilege escalation
C. Directory traversal
Answer: A
Explanation:
Processes may automatically execute specific binaries as part of their functionality or to perform
other actions. If the permissions on the file system directory containing a target binary, or
permissions on the binary itself, are improperly set, then the target binary may be overwritten with
another binary using user-level permissions and executed by the original process. If the original
process and thread are running under a higher permissions level, then the replaced binary will also
execute under higher-level permissions, which could include SYSTEM.
Adversaries may use this technique to replace legitimate binaries with malicious ones as a means of
executing code at a higher permissions level. If the executing process is set to run at a specific time
or during a certain event (e.g., system bootup) then this technique can also be used for persistence.
Questions and Answers PDF 30/530
Question: 23
Which method of password cracking takes the most time and effort?
A. Dictionary attack
B. Shoulder surfing
C. Rainbow tables
D. Brute force
Answer: D
Explanation:
Brute-force attack when an attacker uses a set of predefined values to attack a target and analyze the
response until he succeeds. Success depends on the set of predefined values. It will take more time if
it is larger, but there is a better probability of success. In a traditional brute-force attack, the
passcode or password is incrementally increased by one letter/number each time until the right
passcode/password is found.