Added prompt for SNMP password.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user