nerdexam
EC-Council

312-50V11 · Question #302

A recently hired network security associate at a local bank was given the responsibility to perform daily scans of the internal network to look for unauthorized devices. The employee decides to write

The correct answer is C. Python. Python is the preferred language for network security automation scripts due to its rich library ecosystem and ease of scheduling.

Scanning Networks

Question

A recently hired network security associate at a local bank was given the responsibility to perform daily scans of the internal network to look for unauthorized devices. The employee decides to write a script that will scan the network for unauthorized devices every morning at 5:00 am. Which of the following programming languages would most likely be used?

Options

  • APHP
  • BC#
  • CPython
  • DASP.NET

How the community answered

(36 responses)
  • A
    3% (1)
  • B
    3% (1)
  • C
    94% (34)

Why each option

Python is the preferred language for network security automation scripts due to its rich library ecosystem and ease of scheduling.

APHP

PHP is a server-side web scripting language not designed for low-level network scanning or standalone automation scripts.

BC#

C# is a compiled, general-purpose application language that lacks the quick scripting workflow and native network security libraries suited for this task.

CPythonCorrect

Python provides extensive networking libraries such as Scapy, python-nmap, and the built-in socket module that make network scanning and device discovery straightforward to implement. Its concise syntax and compatibility with scheduling tools like cron make it the standard choice for automating recurring security tasks such as daily unauthorized device detection.

DASP.NET

ASP.NET is a web application framework, not a standalone scripting language, and is not appropriate for network-level scanning automation.

Concept tested: Python scripting for network security automation

Source: https://docs.python.org/3/library/socket.html

Topics

#scripting#network scanning#Python#automation

Community Discussion

No community discussion yet for this question.

Full 312-50V11 Practice