ECCouncil certification · Exam 312-50v12

312-50v12 Mock Exam Page 16

Certified Ethical Hacker CEH v12

Free 312-50v12 mock exam questions 151–160, each with the answer and an explanation.

20 questions · 33 minutes · free, no sign-up

Free 312-50v12 questions

151–160 of 170 free
Question 151 Choose 1

John, a professional hacker, decided to use DNS to perform data exfiltration on a target
network, in this process, he embedded malicious data into the DNS protocol packets that
even DNSSEC cannot detect. Using this technique. John successfully injected malware to
bypass a firewall and maintained communication with the victim machine and C&C server.
What is the technique employed by John to bypass the firewall?

Show answerHide answer

Correct answer: C

DNS tunneling method

Explanation

Explanation:
DNS tunneling may be a method wont to send data over the DNS protocol, a protocol which has never been intended for data transfer. due to that, people tend to overlook it and
it’s become a well-liked but effective tool in many attacks.Most popular use case for DNS
tunneling is obtaining free internet through bypassing captive portals at airports, hotels, or if
you are feeling patient the not-so-cheap on the wing Wi-Fi.On those shared internet
hotspots HTTP traffic is blocked until a username/password is provided, however DNS
traffic is usually still allowed within the background: we will encode our HTTP traffic over
DNS and voilà, we’ve internet access.This sounds fun but reality is, browsing anything on
DNS tunneling is slow. Like, back to 1998 slow.Another more dangerous use of DNS
tunneling would be bypassing network security devices (Firewalls, DLP appliances…) to
line up an immediate and unmonitored communications channel on an organisation’s
network. Possibilities here are endless: Data exfiltration, fixing another penetration testing
tool… you name it.To make it even more worrying, there’s an outsized amount of easy to
use DNS tunneling tools out there.There’s even a minimum of one VPN over DNS protocol
provider (warning: the planning of the web site is hideous, making me doubt on the
legitimacy of it).As a pentester all this is often great, as a network admin not such a lot .
How does it work:For those that ignoramus about DNS protocol but still made it here, i feel
you deserve a really brief explanation on what DNS does: DNS is sort of a phonebook for
the web , it translates URLs (human-friendly language, the person’s name), into an IP
address (machine-friendly language, the phone number). That helps us remember many
websites, same as we will remember many people’s names.For those that know what DNS
is i might suggest looking here for a fast refresh on DNS protocol, but briefly what you
would like to understand is:• A Record: Maps a website name to an IP
address.example.com ? 12.34.52.67• NS Record (a.k.a. Nameserver record): Maps a
website name to an inventory of DNS servers, just in case our website is hosted in multiple
servers.example.com ? server1.example.com, server2.example.comWho is involved in
DNS tunneling?• Client. Will launch DNS requests with data in them to a website .• One
Domain that we will configure. So DNS servers will redirect its requests to an outlined
server of our own.• Server. this is often the defined nameserver which can ultimately
receive the DNS requests.The 6 Steps in DNS tunneling (simplified):1. The client encodes
data during a DNS request. The way it does this is often by prepending a bit of knowledge
within the domain of the request. for instance : mypieceofdata.server1.example.com2. The
DNS request goes bent a DNS server.3. The DNS server finds out the A register of your
domain with the IP address of your server.4. The request for
mypieceofdata.server1.example.com is forwarded to the server.5. The server processes
regardless of the mypieceofdata was alleged to do. Let’s assume it had been an HTTP
request.6. The server replies back over DNS and woop woop, we’ve got signal.
Bypassing Firewalls through the DNS Tunneling Method DNS operates using UDP, and it
has a 255-byte limit on outbound queries. Moreover, it allows only alphanumeric charactersand hyphens. Such small size constraints on external queries allow DNS to be used as an
ideal choice to perform data exfiltration by various malicious entities. Since corrupt or
malicious data can be secretly embedded into the DNS protocol packets, even DNSSEC
cannot detect the abnormality in DNS tunneling. It is effectively used by malware to bypass
the firewall to maintain communication between the victim machine and the C&C server.
Tools such as NSTX (https://sourceforge.net), Heyoka (http://heyoka.sourceforge.netuse),
and Iodine (https://code.kryo.se) use this technique of tunneling traffic across DNS port 53.
CEH v11 Module 12 Page 994

Question 152 Choose 1

Alex, a cloud security engineer working in Eyecloud Inc. is tasked with isolating
applications from the underlying infrastructure and stimulating communication via welldefined
channels. For this purpose, he used an open-source technology that helped him in
developing, packaging, and running applications; further, the technology provides PaaS
through OS-level visualization, delivers containerized software packages, and promotes
fast software delivery. What is the cloud technology employed by Alex in the above
scenario?

Show answerHide answer

Correct answer: C

Docker

Question 153 Choose 1

Sam is a penetration tester hired by Inception Tech, a security organization. He was asked
to perform port scanning on a target host in the network. While performing the given task,
Sam sends FIN/ACK probes and determines that an RST packet is sent in response by the
target host, indicating that the port is closed.
What is the port scanning technique used by Sam to discover open ports?

Show answerHide answer

Correct answer: C

TCP Maimon scan

Explanation

Explanation: TCP Maimon scan
This scan technique is very similar to NULL, FIN, and Xmas scan, but the probe used
here is
FIN/ACK. In most cases, to determine if the port is open or closed, the RST packet
should be generated as a response to a probe request. However, in many BSD
systems, the port is open if the packet gets dropped in response to a probe.
https://nmap.org/book/scan-methods-maimon-scan.html
How Nmap interprets responses to a Maimon scan probe
Probe Response Assigned State
No response received (even after retransmissions) open|filtered
TCP RST packet closed
ICMP unreachable error (type 3, code 1, 2, 3, 9, 10, or 13) filtered

Question 154 Choose 1

Which of these is capable of searching for and locating rogue access points?

Show answerHide answer

Correct answer: C

WIPS

Explanation

Explanation:
A Wireless Intrusion Prevention System (WIPS) is a network device that monitors the radio
spectrum for the presence of unauthorized access points (intrusion detection), and can
automatically take countermeasures (intrusion prevention).

Question 155 Choose 1

Which rootkit is characterized by its function of adding code and/or replacing some of the
operating-system kernel code to obscure a backdoor on a system?

Show answerHide answer

Correct answer: C

Kernel-level rootkit

Question 156 Choose 1

Bob wants to ensure that Alice can check whether his message has been tampered with.
He creates a checksum of the message and encrypts it using asymmetric cryptography.
What key does Bob use to encrypt the checksum for accomplishing this goal?

Show answerHide answer

Correct answer: B

Alice's public key

Question 157 Choose 1

Sam, a web developer, was instructed to incorporate a hybrid encryption software program
into a web application to secure email messages. Sam used an encryption software, which
is a free implementation of the OpenPGP standard that uses both symmetric-key
cryptography and asymmetric-key cryptography for improved speed and secure key
exchange. What is the encryption software employed by Sam for securing the email
messages?

Show answerHide answer

Correct answer: A

PGP

Question 158 Choose 1

ping-* 6 192.168.0.101
Output:
Pinging 192.168.0.101 with 32 bytes of data:
Reply from 192.168.0.101: bytes=32 time<1ms TTL=128
Reply from 192.168.0.101: bytes=32 time<1ms TTL=128
Reply from 192.168.0.101: bytes=32 time<1ms TTL=128
Reply from 192.168.0.101: bytes=32 time<1ms TTL=128
Reply from 192.168.0.101: bytes=32 time<1ms TTL=128
Reply from 192.168.0.101:
Ping statistics for 192.168.0101
Packets: Sent = 6, Received = 6, Lost = 0 (0% loss).
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
What does the option * indicate?

Show answerHide answer

Correct answer: D

n

Question 159 Choose 1

What information security law or standard aims at protecting stakeholders and the general
public from accounting errors and fraudulent activities within organizations?

Show answerHide answer

Correct answer: C

SOX

Question 160 Choose 1

Cross-site request forgery involves:

Show answerHide answer

Correct answer: C

A browser making a request to a server without the user’s knowledge

Explanation

Explanation: https://owasp.org/www-community/attacks/csrf
Cross-Site Request Forgery (CSRF) is an attack that forces an end user to execute
unwanted actions on a web application in which they’re currently authenticated. With a little
help of social engineering (such as sending a link via email or chat), an attacker may trick
the users of a web application into executing actions of the attacker’s choosing. If the victim
is a normal user, a successful CSRF attack can force the user to perform state changing
requests like transferring funds, changing their email address, and so forth. If the victim is
an administrative account, CSRF can compromise the entire web application.
CSRF is an attack that tricks the victim into submitting a malicious request. It inherits
the identity and privileges of the victim to perform an undesired function on the victim’s
behalf. For most sites, browser requests automatically include any credentials associated
with the site, such as the user’s session cookie, IP address, Windows domain credentials,
and so forth. Therefore, if the user is currently authenticated to the site, the site will
have no way to distinguish between the forged request sent by the victim and a
legitimate request sent by the victim.
CSRF attacks target functionality that causes a state change on the server, such as
changing the victim’s email address or password, or purchasing something. Forcing the
victim to retrieve data doesn’t benefit an attacker because the attacker doesn’t receive the
response, the victim does. As such, CSRF attacks target state-changing requests.
It’s sometimes possible to store the CSRF attack on the vulnerable site itself. Such
vulnerabilities are called “stored CSRF flaws”. This can be accomplished by simply storing
an IMG or IFRAME tag in a field that accepts HTML, or by a more complex cross-site
scripting attack. If the attack can store a CSRF attack in the site, the severity of the attack
is amplified. In particular, the likelihood is increased because the victim is more likely to
view the page containing the attack than some random page on the Internet. The likelihood is also increased because the victim is sure to be authenticated to the site already.

Full mock exam

Sit the 312-50v12 exam before exam day

Full-length mocks with the same number of questions and the same time limit as the real 312-50v12 exam. Every attempt draws a new set of questions from the full bank, so you can keep going until you pass comfortably.

Get full 312-50v12 mock exam
  • 65questions per mock
  • 105 mintime limit
  • 569questions in the bank
  • Newmock on every attempt