Skip to content

Instantly share code, notes, and snippets.

Last active September 25, 2019 11:43
What would you like to do?
nmap -sn -iL $1 |grep "Nmap scan report for"|grep -Eo "(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)"|sort -u |tee $1.txt
echo "Detect IP $(wc -l $1.txt|awk '{ print $1 }' )" "=> result_${1}" "saved"
echo "File Location : "$(pwd)/"result_$1"
Copy link

cihanmehmet commented Sep 23, 2019

Nmap -sn (No port scan) scan live IP detection script

fping -f ip.txt

Usage bash ip.txt


See Also

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment