-> Encrypted email password for added security
-> Threshold for number of connections can be set by the administrator
-> Sends an email alert if the number of established connections exceeds the set threshold
-> Monitors network activity continuously and provides real-time information on established connections
-> User-friendly and easy to use
-> Python 3
-> psutil library
-> cryptography library
1. Clone the repository to your local machine
2. Install the dependencies by running the following command:
pip install -r requirements.txt
3. Replace the values in the code with your own email settings and encrypted email password.
4. Run the script by executing the following command:
python network_monitor.py
The tool can be configured by changing the following values in the code:
-> SMTP_SERVER: The address of the SMTP server to be used to send the email alert
-> SMTP_PORT: The port number of the SMTP server
-> FROM_ADDRESS: The email address from which the alert will be sent
-> TO_ADDRESS: The email address to which the alert will be sent
-> SUBJECT: The subject of the email alert
-> PASSWORD: The encrypted email password
-> THRESHOLD: The number of established connections beyond which an email alert will be sent
-> SLEEP_INTERVAL: The interval (in seconds) at which the script checks for established connections
The encrypted email password provided in the code is for demonstration purposes only and should be replaced with your own encrypted password. It is recommended to encrypt the password using the 'cryptography' library before using it in the code.
