useful lines

———————————————————————–

GNU nano 2.2.6 File: ping.sh

#!/bin/bash
for i in 192.168.0.{1..30}
do
ping -c 1 -t 1 “$i” >/dev/null 2>&1 &&
echo “Ping Status of $i : Success” ||
echo “Ping Status of $i : Failed”
done

————————————————————-

nmap -sV -O -v 192.168.0.1

nmap -p 22 192.168.0.1-254

Written by logicscience1

Husband, father, brother, spiritual philosopher, techno leader, drum n bass DJ, long distance runner and sometimes human.

One comment

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.