devsecops-wrappers/linux/nmap_ping_sweep.sh
Heretic 6810cff3fb
Add files via upload
Nmap Ping Sweep with Output to txt
2025-10-29 10:50:31 -05:00

10 lines
338 B
Bash

#!/bin/bash
# Continuous Internal IP Scanning Script (schedule with Cron and Diff results)
# Author: Victor Bishop (Heretic312)
# Date: 10/29/2025
# nmap -sn = "ping sweep" -oG = "Output to file.txt"
# Modify subnet="" to match your network
subnet=""
timestamp=$(date +%F_%H-%M)
nmap -sn $subnet -oG "internal_ips_$timestamp.txt"