This commit is contained in:
2024-08-05 19:55:40 -05:00
parent d8e1104caf
commit 47a78f3338
2 changed files with 41 additions and 27 deletions

View File

@@ -210,6 +210,18 @@ DISP_HEADER(){
echo
}
CHECK_HOST_NM(){
if [ ! -z ${1+x} ]; then
if [ "$(nmap ${1} -p 22,80,443 -n | grep 'open ')" != "" ] || [ "$(nmap -sU ${1} -p 161 -n | grep 'open ')" != "" ]; then
echo true
else
echo false
fi
else
echo false
fi
}
SENDNOTICE(){
if [ "${PUSHOVER_USER_TOKEN}" != "" ]; then
SN_TIT="$(echo -e "${1}" | sed "s/\%/\%25 /g")"