Free 312-50 Exam Braindumps
Ethical Hacker Certified Questions 371–375 (page: 76)

Updated On: 10-Feb-2026

What attack is being depicted here?

  1. Cookie Stealing
  2. Session Hijacking
  3. Cross Site scripting
  4. Parameter Manipulation

Answer(s): D

Explanation:

Manipulating the data sent between the browser and the web application to an attacker's advantage has long been a simple but effective way to make applications do things in a way the user often shouldn't be able to. In a badly designed and developed web application, malicious users can modify things like prices in web carts, session tokens or values stored in cookies and even HTTP headers. In this case the user has elevated his rights.



Annie has just succeeded is stealing a secure cookie via a XSS attack. She is able to replay the cookie even while the session is valid on the server. Why do you think this is possible?

  1. Any Cookie can be replayed irrespective of the session status
  2. The scenario is invalid as a secure cookie can’t be replayed
  3. It works because encryption is performed at the network layer (layer 1 encryption)
  4. It works because encryption is performed at the application layer (Single Encryption Key)

Answer(s): D

Explanation:

Single key encryption (conventional cryptography) uses a single word or phrase as the key. The same key is used by the sender to encrypt and the receiver to decrypt. Sender and receiver initially need to have a secure way of passing the key from one to the other. With TLS or SSL this would not be possible.



Consider the following code:

If an attacker can trick a victim user to click a link like this and the web application does not validate input, then the victim’s browser will pop up an alert showing the users current set of cookies. An attacker can do much more damage, including stealing passwords, resetting your home page or redirecting the user to another web site.
What is the countermeasure against XSS scripting?

  1. Create an IP access list and restrict connections based on port number
  2. Replace “<” and “>” characters with ?lt; and ?gt; using server scripts
  3. Disable Javascript in IE and Firefox browsers
  4. Connect to the server using HTTPS protocol instead of HTTP

Answer(s): B

Explanation:

The correct answer contains a string which is an HTML-quoted version of the original script. The quoted versions of these characters will appear as literals in a browser, rather than with their special meaning as HTML tags. This prevents any script from being injected into
HTML output, but it also prevents any user-supplied input from being formatted with benign HTML.



Which of the following is the best way an attacker can passively learn about technologies used in an organization?

  1. By sending web bugs to key personnel
  2. By webcrawling the organization web site
  3. By searching regional newspapers and job databases for skill sets technology hires need to possess in the organization
  4. By performing a port scan on the organization's web site

Answer(s): C

Explanation:

Note: Sending web bugs, webcrawling their site and port scanning are considered "active" attacks, the question asks "passive"



You have chosen a 22 character word from the dictionary as your password. How long will it take to crack the password by an attacker?

  1. 5 minutes
  2. 23 days
  3. 200 years
  4. 16 million years

Answer(s): A

Explanation:

A dictionary password cracker simply takes a list of dictionary words, and one at a time encrypts them to see if they encrypt to the one way hash from the system. If the hashes are equal, the password is considered cracked, and the word tried from the dictionary list is the password. As long as you use a word found in or similar to a word found in a dictionary the password is considered to be weak.



Viewing page 76 of 154
Viewing questions 376 - 380 out of 765 questions


Post your Comments and Discuss EC-Council 312-50 exam prep with other Community members:

AI Tutor AI Tutor 👋 I’m here to help!