Update compliance scripts
This commit is contained in:
parent
5b12d9e114
commit
223aebbe61
@ -1,5 +1,5 @@
|
||||
10.0.1.2
|
||||
10.0.1.12
|
||||
10.0.1.13
|
||||
10.0.1.14
|
||||
10.0.1.15
|
||||
10.0.1.16
|
26
Bash/scan-lan.sh
Executable file
26
Bash/scan-lan.sh
Executable 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
0
Bash/ssl-compliance.sh
Normal file → Executable file
Loading…
Reference in New Issue
Block a user