Courseiva
Iot And OT ExploitationhardMultiple ChoiceObjective-mapped

CPENT Iot And OT Exploitation Practice Question

An ethical hacker is performing a security review of a smart energy grid employing IEC 60870-5-104. The hacker wishes to inject a forged ASDU (Application Service Data Unit) command to open a circuit breaker. Using Python, which library can the hacker use to construct and transmit raw IEC 104 application layer frames over TCP?

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Scapy

Scapy is a powerful Python-based packet manipulation library that allows building custom packets for industrial protocols like Modbus, DNP3, and IEC 104.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • BeautifulSoup

    Why it's wrong here

    BeautifulSoup is a Python library for parsing HTML and XML documents, not for network packet crafting.

  • Pandas

    Why it's wrong here

    Pandas is a data analysis and manipulation library for tabular data.

  • Pygame

    Why it's wrong here

    Pygame is a set of Python modules designed for writing video games.

  • Scapy

    Why this is correct

    Scapy provides packet crafting capabilities and supports industrial protocol layers for network injection and protocol testing.

About these practice questions

This CPENT question is part of Courseiva's 276-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed August 2026 · checked against the official EC-Council exam blueprint

This CPENT practice question is part of Courseiva's free EC-Council certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the CPENT exam.