ECCouncil certification · Exam EC0-350

EC0-350 Mock Exam Page 24

Ethical Hacking and Countermeasures V8

Free EC0-350 mock exam questions 231–240, each with the answer and an explanation.

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

Free EC0-350 questions

231–240 of 261 free
Question 231 Choose 1

What is the tool Firewalk used for?

Show answerHide answer

Correct answer: C

To determine what rules are in place for a firewall

Explanation

Firewalk is an active reconnaissance network security tool that attempts to
determine what layer 4 protocols a given IP forwarding device "firewall" will pass. Firewalk
works by sending out TCP or UDP packets with a TTL one greater than the targeted
gateway. If the gateway allows the traffic, it will forward the packets to the next hop where
they will expire and elicit an ICMP_TIME_EXCEEDED message. If the gateway host does
not allow the traffic, it will likely drop the packets and no response will be returned.

Question 232 Choose 1

What is Form Scalpel used for?

Show answerHide answer

Correct answer: A

Dissecting HTML Forms

Explanation

Form Scalpel automatically extracts forms from a given web page and splits up all fields for editing and manipulation.

Question 233 Choose 2

What makes web application vulnerabilities so aggravating? (Choose two)

Show answerHide answer

Correct answer: A, B

They can be launched through an authorized port.

A firewall will not stop them.

Explanation

As the vulnerabilities exists on a web server, incoming traffic on port 80 will
probably be allowed and no firewall rules will stop the attack.

Question 234 Choose 1

While probing an organization you discover that they have a wireless network. From your
attempts to connect to the WLAN you determine that they have deployed MAC filtering by
using ACL on the access points. What would be the easiest way to circumvent and
communicate on the WLAN?

Show answerHide answer

Correct answer: D

Sniff traffic if the WLAN and spoof your MAC address to one that you captured.

Explanation

The easiest way to gain access to the WLAN would be to spoof your MAC
address to one that already exists on the network.

Question 235 Choose 1

Study the following exploit code taken from a Linux machine and answer the questions
below:
echo “ingreslock stream tcp nowait root /bin/sh sh –I" > /tmp/x;
/usr/sbin/inetd –s /tmp/x;
sleep 10;
/bin/ rm –f /tmp/x AAAA…AAA
In the above exploit code, the command “/bin/sh sh –I" is given.
What is the purpose, and why is ‘sh’ shown twice?

Show answerHide answer

Correct answer: A

The command /bin/sh sh –i appearing in the exploit code is actually part of an inetd
configuration file.

Explanation

What's going on in the above question is the attacker is trying to write to the
unix filed /tm/x (his inetd.conf replacement config) - he is attempting to add a service
called ingresslock (which doesnt exist), which is "apparently" suppose to spawn a shell the
given port specified by /etc/services for the service "ingresslock", ingresslock is a nonexistant
service, and if an attempt were made to respawn inetd, the service would error out
on that line. (he would have to add the service to /etc/services to suppress the error). Now
the question is asking about /bin/sh sh -i which produces an error that should read "sh:
/bin/sh: cannot execute binary file", the -i option places the shell in interactive mode and
cannot be used to respawn itself.

Question 236 Choose 1

A program that defends against a port scanner will attempt to:

Show answerHide answer

Correct answer: D

Update a firewall rule in real time to prevent the port scan from being completed

Question 237 Choose 1

Liza has forgotten her password to an online bookstore. The web application asks her to
key in her email so that they can send her the password. Liza enters her email
liza@yahoo.com'. The application displays server error. What is wrong with the web
application?

Show answerHide answer

Correct answer: B

User input is not sanitized

Explanation

All input from web browsers, such as user data from HTML forms and
cookies, must be stripped of special characters and HTML tags as described in the
following CERT advisories:
http://www.cert.org/advisories/CA-1997-25.html
http://www.cert.org/advisories/CA-2000-02.html

Question 238 Choose 1

Bubba has just accessed he preferred ecommerce web site and has spotted an item that
he would like to buy. Bubba considers the price a bit too steep. He looks at the source code
of the webpage and decides to save the page locally, so that he can modify the page
variables. In the context of web application security, what do you think Bubba has
changes?

Show answerHide answer

Correct answer: A

A hidden form field value.

Question 239 Choose 1

After studying the following log entries, how many user IDs can you identify that the
attacker has tampered with?
1. mkdir -p /etc/X11/applnk/Internet/.etc
2. mkdir -p /etc/X11/applnk/Internet/.etcpasswd
3. touch -acmr /etc/passwd /etc/X11/applnk/Internet/.etcpasswd
4. touch -acmr /etc /etc/X11/applnk/Internet/.etc
5. passwd nobody -d
6. /usr/sbin/adduser dns -d/bin -u 0 -g 0 -s/bin/bash
7. passwd dns -d
8. touch -acmr /etc/X11/applnk/Internet/.etcpasswd /etc/passwd
9. touch -acmr /etc/X11/applnk/Internet/.etc /etc

Show answerHide answer

Correct answer: C

nobody, dns

Explanation

Passwd is the command used to modify a user password and it has been used together with the usernames nobody and dns.

Question 240 Choose 1

In the context of using PKI, when Sven wishes to send a secret message to Bob, he looks
up Bob’s public key in a directory, uses it to encrypt the message before sending it off. Bob
then uses his private key to decrypt the message and reads it. No one listening on can
decrypt the message.
Anyone can send an encrypted message to Bob but only Bob can read it. Thus, although
many people may know Bob’s public key and use it to verify Bob’s signature, they cannot
discover Bob’s private key and use it to forge digital signatures.
What does this principle refer to?

Show answerHide answer

Correct answer: D

Asymmetry

Explanation

PKI uses asymmetric key pair encryption. One key of the pair is the only way
to decrypt data encrypted with the other.

Full mock exam

Sit the EC0-350 exam before exam day

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

Get full EC0-350 mock exam
  • 65questions per mock
  • 105 mintime limit
  • 873questions in the bank
  • Newmock on every attempt