Cómo auditar tu red con PYTHON y descubrir conexiones MALICIOSAS🐍
Python Script for Monitoring Network Connections
In this section, the speaker introduces a Python script to monitor and analyze network connections to ensure no malicious activities are occurring.
Importing Necessary Libraries
- The initial step involves importing libraries such as PS util and ip2 geotools to traverse system processes and obtain information about remote IPs.
Creating Network Monitoring Function
- A function called Network monitor is created to scan processes, identify communications, and determine their legitimacy.
Obtaining Process Details
- The process details are retrieved by calling the get process details function with the process ID as a parameter.
Displaying Remote Connection Information
- Functions like get Remote details are developed to showcase detailed information about remote connections, including location coordinates.
Handling Exceptions and Finalizing Script Execution