Update compliance scripts

This commit is contained in:
Benjamin Hays 2024-01-27 19:36:45 -05:00
parent 5b12d9e114
commit 223aebbe61
3 changed files with 28 additions and 2 deletions

View File

@ -1,5 +1,5 @@
10.0.1.2 10.0.1.2
10.0.1.12 10.0.1.12
10.0.1.13
10.0.1.14 10.0.1.14
10.0.1.15 10.0.1.15
10.0.1.16

26
Bash/scan-lan.sh Executable file
View File

@ -0,0 +1,26 @@
#!/bin/sh
if [ "$#" -eq 0 ]; then
echo "Usage: $0 (--install-deps) <cidr-range>"
exit 1
fi
if [ "$1" = "--install-deps" ]; then
echo "[+] Installing dependencies"
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
if lsb_release -a 2>/dev/null | grep -q 'Debian'; then
sudo apt-get update && sudo apt-get install -y nmap
elif lsb_release -a 2>/dev/null | grep -q 'Fedora'; then
sudo dnf install -y nmap
elif lsb_release -a 2>/dev/null | grep -q 'Arch\|Manjaro'; then
sudo pacman -Syu nmap
fi
fi
cidr="$2"
else
cidr="$1"
fi
sudo nmap -sS -T4 -A $cidr -oN nmap.log

0
Bash/ssl-compliance.sh Normal file → Executable file
View File