From 5d1d4d9aae300032a9cf6c655a8e02cd945ea5ad Mon Sep 17 00:00:00 2001 From: JustinOros Date: Thu, 24 Jul 2025 11:33:02 -0700 Subject: [PATCH] Added prompt for SNMP password. --- diff-web.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/diff-web.py b/diff-web.py index a159d24..6466169 100644 --- a/diff-web.py +++ b/diff-web.py @@ -15,6 +15,7 @@ from datetime import datetime from bs4 import BeautifulSoup import smtplib from email.mime.text import MIMEText +import getpass # For secure SNMP password input SMTP_SERVER = "smtp.gmail.com" SMTP_PORT = 587 @@ -41,6 +42,9 @@ parser.add_argument("-h", "--hook", type=str, args = parser.parse_args() +# Prompt for SNMP password securely +SNMP_PASSWORD = getpass.getpass("Enter SNMP password: ") + def normalize_url(url): parsed = urlparse(url) if not parsed.scheme: