Skip to content

Instantly share code, notes, and snippets.

@alpha999999999999
alpha999999999999 / nmap.sh
Last active July 15, 2018 05:42
simple bash shell _ huongltse03949
#!/bin/bash
#scan number of host online
echo "enter first ip to scan [ip/source]: "
read temp
IFS='/' read -r -a temp <<< "$temp"
#temp2=$(echo $temp | tr "/" "\n")
for ix in ${!temp[*]}
do
ip=${temp[0]}