nerdexam
EC-Council

312-50V11 · Question #51

An attacker, using a rogue wireless AP, performed an MITM attack and injected an HTML code to embed a malicious applet in all HTTP connections. When users accessed any page, the applet ran and…

The correct answer is B. Ettercap. Ettercap is a MITM attack framework capable of intercepting live connections and injecting arbitrary content, including malicious HTML or applets, into HTTP traffic in real time.

Sniffing

Question

An attacker, using a rogue wireless AP, performed an MITM attack and injected an HTML code to embed a malicious applet in all HTTP connections. When users accessed any page, the applet ran and exploited many machines. Which one of the following tools the hacker probably used to inject HTML code?

Options

  • AWireshark
  • BEttercap
  • CAircrack-ng
  • DTcpdump

How the community answered

(55 responses)
  • A
    4% (2)
  • B
    71% (39)
  • C
    11% (6)
  • D
    15% (8)

Why each option

Ettercap is a MITM attack framework capable of intercepting live connections and injecting arbitrary content, including malicious HTML or applets, into HTTP traffic in real time.

AWireshark

Wireshark is a passive packet capture and analysis tool; it cannot inject or modify traffic.

BEttercapCorrect

Ettercap supports content filtering plugins that allow an attacker to intercept HTTP sessions and inject or replace HTML content on the fly, making it the tool of choice for this type of MITM HTTP injection attack. When combined with a rogue AP to position the attacker in the traffic path, Ettercap can rewrite response bodies before they reach the victim's browser. This makes it uniquely suited for embedding malicious Java applets or scripts into otherwise legitimate web pages.

CAircrack-ng

Aircrack-ng is a wireless network security auditing suite focused on cracking WEP/WPA keys, not on injecting content into HTTP sessions.

DTcpdump

Tcpdump is a command-line packet capture tool used for traffic inspection only; it has no capability to modify or inject data into network streams.

Concept tested: MITM HTTP content injection using Ettercap

Source: https://www.ettercap-project.org/ettercap/documentation.html

Topics

#MITM attack#rogue wireless AP#Ettercap#HTML injection

Community Discussion

No community discussion yet for this question.

Full 312-50V11 Practice