Limited-Time Offer: Enjoy 50% Savings! Ends in 00h 00m 00s Coupon code: 50OFF
Skip to content

Free GAQM Certified Professional Ethical Hacker (CPEH) Exam CPEH-001 Exam Questions

Page: 1 / 59 Total 877 questions

Want more questions? Get Premium Access.

Question 1

In order to attack a wireless network, you put up an access point and override the signal of the real access point. As users send authentication data, you are able to capture it. What kind of attack is this?

Correct Answer: A. Rouge access point attack
Explanation:

The definition of a Rogue access point is:

1. A wireless access point (AP) installed by an employee without the consent of the IT department. Without the proper security configuration, users have exposed their company's network to the outside world.

2. An access point (AP) set up by an attacker outside a facility with a wireless network. Also called an 'evil twin, ' the rogue AP picks up beacons (signals that advertise its presence) from the company's legitimate AP and transmits identical beacons, which some client machines inside the building associate with.


Question 2

What is the BEST alternative if you discover that a rootkit has been installed on one of your computers?

Correct Answer: E. Reload from known good media
Explanation:

If a rootkit is discovered, you will need to reload from known good media. This typically means performing a complete reinstall.


Question 3

Vulnerability scanners are automated tools that are used to identify vulnerabilities and misconfigurations of hosts. They also provide information regarding mitigating discovered vulnerabilities.

Which of the following statements is incorrect?

Correct Answer: D. Vulnerability scanners can identify weakness and automatically fix and patch the vulnerabilities without user intervention

Question 4

A covert channel is a channel that

Correct Answer: A. transfers information over, within a computer system, or network that is outside of the security policy.

Question 5

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?

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 non-existant 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 6

Which of the following techniques will identify if computer files have been changed?

Correct Answer: C. Integrity checking hashes

Question 7

Which one of the following instigates a SYN flood attack?

Correct Answer: B. Creating a high number of half-open connections.
Explanation:

A SYN attack occurs when an attacker exploits the use of the buffer space during a Transmission Control Protocol (TCP) session initialization handshake.The attacker floods the target system's small 'in-process' queue with connection requests, but it does not respond when a target system replies to those requests.This causes the target system to time out while waiting for the proper response, which makes the system crash or become unusable.


Question 8

What will the following command produce on a website's login page if executed successfully? SELECT email, passwd, login_id, full_name FROM members WHERE email = 'someone@somewhere.com'; DROP TABLE members; --'

Correct Answer: B. This command will delete the entire members table.

Question 9

Which of the following types of firewall inspects only header information in network traffic?

Correct Answer: A. Packet filter

Question 10

What does black box testing mean?

Correct Answer: B. You have no knowledge of the environment
Explanation:

Black box testing is conducted when you have no knowledge of the environment. It is more time consuming and expensive.


Question 11

More sophisticated IDSs look for common shellcode signatures. But even these systems can be bypassed, by using polymorphic shellcode. This is a technique common among virus writers ?it basically hides the true nature of the shellcode in different disguises. How does a polymorphic shellcode work?

Correct Answer: A. They encrypt the shellcode by XORing values over the shellcode, using loader code to decrypt the shellcode, and then executing the decrypted shellcode

Question 12

File extensions provide information regarding the underlying server technology. Attackers can use this information to search vulnerabilities and launch attacks. How would you disable file extensions in Apache servers?

Correct Answer: B. Use mod_negotiation

Question 13

Which of the following ICMP message types are used for destinations unreachables?

Correct Answer: B. 3
Explanation:

Type 3 messages are used for unreachable messages. 0 is Echo Reply, 8 is Echo request, 11 is time exceeded, 13 is timestamp and 17 is subnet mask request. Learning these would be advisable for the test.


Question 14

Hampton is the senior security analyst for the city of Columbus in Ohio. His primary responsibility is to ensure that all physical and logical aspects of the city's computer network are secure from all angles. Bill is an IT technician that works with Hampton in the same IT department. Bill's primary responsibility is to keep PC's and servers up to date and to keep track of all the agency laptops that the company owns and lends out to its employees. After Bill setup a wireless network for the agency, Hampton made sure that everything was secure. He instituted encryption, rotating keys, turned off SSID broadcasting, and enabled MAC filtering. According to agency policy, only company laptops are allowed to use the wireless network, so Hampton entered all the MAC addresses for those laptops into the wireless security utility so that only those laptops should be able to access the wireless network. Hampton does not keep track of all the laptops, but he is pretty certain that the agency only purchases Dell laptops. Hampton is curious about this because he notices Bill working on a Toshiba laptop one day and saw that he was on the Internet. Instead of jumping to conclusions, Hampton decides to talk to Bill's boss and see if they had purchased a Toshiba laptop instead of the usual Dell. Bill's boss said no, so now Hampton is very curious to see how Bill is accessing the Internet. Hampton does site surveys every couple of days, and has yet to see any outside wireless network signals inside the company's building. How was Bill able to get Internet access without using an agency laptop?

Correct Answer: A. Bill spoofed the MAC address of Dell laptop

Question 15

A corporation hired an ethical hacker to test if it is possible to obtain users' login credentials using methods other than social engineering. Access to offices and to a network node is granted. Results from server scanningindicateall are adequately patched andphysical access is denied, thus, administrators have access only through Remote Desktop. Which techniquecould be used to obtain login credentials?

Correct Answer: D. Capture administrators RDP traffic and decode it with Cainand Abel.