nerdexam
EC-Council

312-50V9 · Question #75

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…

The correct answer is C. Python. Python is the dominant scripting language for network automation and security tasks due to its rich library ecosystem and ease of use for writing scheduled scripts.

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

(56 responses)
  • A
    5% (3)
  • B
    7% (4)
  • C
    86% (48)
  • D
    2% (1)

Why each option

Python is the dominant scripting language for network automation and security tasks due to its rich library ecosystem and ease of use for writing scheduled scripts.

APHP

PHP is a server-side web scripting language designed for generating dynamic web content, not for network scanning or system automation tasks.

BC#

C# is a compiled, object-oriented language primarily used for building Windows applications and services, making it overly complex and impractical for quick security automation scripts.

CPythonCorrect

Python is widely used for network security scripting because of libraries like Scapy, socket, and nmap bindings that make scanning and automation straightforward. Its simple syntax allows security professionals to quickly write maintainable scripts, and it integrates easily with scheduling tools like cron. It is the industry-standard choice for tasks like daily network reconnaissance scripts.

DASP.NET

ASP.NET is a web application framework built on top of C#, not a standalone scripting language, and has no practical use case for internal network scanning tasks.

Concept tested: Python scripting for network security automation

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

Topics

#Python scripting#network scanning#automation#unauthorized devices

Community Discussion

No community discussion yet for this question.

Full 312-50V9 Practice