Initial Commit

This commit is contained in:
2020-01-28 22:15:42 +01:00
commit a0476d4c17
13 changed files with 6638 additions and 0 deletions

25
first_scan.sh Executable file
View File

@@ -0,0 +1,25 @@
#!/usr/bin/bash
if [ $# -lt 1 ]; then
echo "Invalid usage: $0 <host>"
exit
fi
if [ "$EUID" -ne 0 ]; then
echo "[-] Script requires root permissions (e.g. nmap scan)"
exit
fi
IP_ADDRESS=$1
echo "[+] Checking online status…"
ping -c1 -W1 -q "${IP_ADDRESS}" &>/dev/null
status=$(echo $?)
if ! [[ $status == 0 ]] ; then
echo "[-] Target not reachable"
exit
fi
echo "[+] Scanning for open ports…"
nmap -A "${IP_ADDRESS}" -p 1-65535 -T 5 --stats-every 30s