exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

MapSweeper 1.0 Ping Sweeper

MapSweeper 1.0 Ping Sweeper
Posted Nov 3, 2009
Authored by 0x90

MapSweeper version 1.0 ping sweeping script.

tags | tool, scanner
systems | unix
SHA-256 | 78c58f4e6a6537b3dfef8851eccfd453b7b677c8f62d6b7760cde32ccbb49583

MapSweeper 1.0 Ping Sweeper

Change Mirror Download
#!/usr/bin/env bash
# MapSweeper V1.0
# coded By 0x90 2009
# 0x90[at]bsdmail.org
# www.sec-r1z.com
# This tool will ping sweep networks to discover live devices
# It support Class A,B, C Network's
#
# I do not take any responsibility for what you do with this tool
# Hopefully it will make your life easier rather then making other
# peoples lives more difficult!
##############################
# ___ ___ ___
# / _ \ / _ \ / _ \
#| | | |_ _| (_) | | | |
#| | | \ \/ /\__, | | | |
#| |_| |> < / /| |_| |
# \___//_/\_\ /_/ \___/
##############################
echo ".:: MapSweeper, Coded By 0x90 ::."
echo
#Discover Network with ICMP
echo -n "Enter Start IP: "
read Strange
if [ -z "$Strange" ] ; then
echo Example: $0 192.168.1.1
exit 1
fi
echo -n "Enter End IP: "
read Enrange
if [ -z "$Enrange" ]; then
echo Example: $0 192.168.255.255
exit 1
fi
Stoct1=`echo $Strange | cut -d"." -f1`
Stoct2=`echo $Strange | cut -d"." -f2`
Stoct3=`echo $Strange | cut -d"." -f3`
Stoct4=`echo $Strange | cut -d"." -f4`

Enoct1=`echo $Enrange | cut -d"." -f1`
Enoct2=`echo $Enrange | cut -d"." -f2`
Enoct3=`echo $Enrange | cut -d"." -f3`
Enoct4=`echo $Enrange | cut -d"." -f4`

#Class A Function
class_A () {
for (( x="$Stoct2"; x <= "$Enoct2"; x++));
do
if [ "$x" != "$Stoct2" ]; then
for (( e=1; e <= "$Enoct3"; e++));
do
if [ "$e" != "$Stoct3" ]; then
for (( i=1; i <= "$Enoct4"; i++));
do
ip=""$Stoct1"."$x"."$e"."$i""
p=`ping -t 1 -c 1 $ip | grep icmp |awk '{print $8}'`
if [ "$p" == "ms" ]; then
echo $ip Live
else
echo $ip Dead
fi
done
else
for (( i="$Stoct4"; i <= 255; i++));
do
ip=""$Stoct1"."$x"."$e"."$i""
p=`ping -t 1 -c 1 $ip | grep icmp |awk '{print $8}'`
if [ "$p" == "ms" ]; then
echo $ip Live
else
echo $ip Dead
fi
done
fi
done
else
for (( e="$Stoct3"; e <= 255; e++));
do
if [ "$e" != "$Stoct3" ]; then
for (( i=1; i <= "$Enoct4"; i++));
do
ip=""$Stoct1"."$x"."$e"."$i""
p=`ping -t 1 -c 1 $ip | grep icmp |awk '{print $8}'`
if [ "$p" == "ms" ]; then
echo $ip Live
else
echo $ip Dead
fi
done
else
for (( i="$Stoct4"; i <= 255; i++));
do
ip=""$Stoct1"."$x"."$e"."$i""
p=`ping -t 1 -c 1 $ip | grep icmp |awk '{print $8}'`
if [ "$p" == "ms" ]; then
echo $ip Live
else
echo $ip Dead
fi
done
fi
done
fi
done
}

#Class B Function
class_B () {
for (( e="$Stoct3"; e <= "$Enoct3"; e++));
do
if [ "$e" != "$Stoct3" ]; then
for (( i=1; i <= "$Enoct4"; i++));
do
ip=""$Stoct1"."$Stoct2"."$e"."$i""
p=`ping -t 1 -c 1 $ip | grep icmp |awk '{print $8}'`
if [ "$p" == "ms" ]; then
echo $ip Live
else
echo $ip Dead
fi
done
else
for (( i="$Stoct4"; i <= 255; i++));
do
ip=""$Stoct1"."$Stoct2"."$e"."$i""
p=`ping -t 1 -c 1 $ip | grep icmp |awk '{print $8}'`
if [ "$p" == "ms" ]; then
echo $ip Live
else
echo $ip Dead
fi
done
fi
done
}

#Class C Function
class_C () {
for (( i="$Stoct4"; i <= "$Enoct4"; i++));
do
ip=""$Stoct1"."$Stoct2"."$Stoct3"."$i""
p=`ping -t 1 -c 1 $ip | grep icmp |awk '{print $8}'`
if [ "$p" == "ms" ]; then
echo $ip Live
else
echo $ip Dead
fi
done
}
#start counting scan time
BEGINTIME=`perl -e 'printf "%d\n", time;'`
echo
if [ "$Stoct1" == "$Enoct1" ] && [ "$Stoct2" != "$Enoct2" ]; then
echo "Scan Class A Network ..."
class_A
elif [ "$Stoct1" == "$Enoct1" ] && [ "$Stoct2" == "$Enoct2" ] && [ "$Stoct3" != "$Enoct3" ]; then
echo "Scan Class B Network ..."
class_B
elif [ "$Stoct1" == "$Enoct1" ] && [ "$Stoct2" == "$Enoct2" ] && [ "$Stoct3" == "$Enoct3" ] && [ "$Stoct4" != "$Enoct4" ]; then
echo "Scan Class C Network ..."
class_C
fi
echo

ENDTIME=`perl -e 'printf "%d\n", time;'`
totaltime=`expr ${ENDTIME} - ${BEGINTIME}`
echo Scan Complete in $totaltime seconds
exit 0
Login or Register to add favorites

File Archive:

September 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Sep 1st
    261 Files
  • 2
    Sep 2nd
    17 Files
  • 3
    Sep 3rd
    38 Files
  • 4
    Sep 4th
    52 Files
  • 5
    Sep 5th
    23 Files
  • 6
    Sep 6th
    27 Files
  • 7
    Sep 7th
    0 Files
  • 8
    Sep 8th
    1 Files
  • 9
    Sep 9th
    16 Files
  • 10
    Sep 10th
    38 Files
  • 11
    Sep 11th
    21 Files
  • 12
    Sep 12th
    40 Files
  • 13
    Sep 13th
    18 Files
  • 14
    Sep 14th
    0 Files
  • 15
    Sep 15th
    0 Files
  • 16
    Sep 16th
    21 Files
  • 17
    Sep 17th
    51 Files
  • 18
    Sep 18th
    23 Files
  • 19
    Sep 19th
    48 Files
  • 20
    Sep 20th
    36 Files
  • 21
    Sep 21st
    0 Files
  • 22
    Sep 22nd
    0 Files
  • 23
    Sep 23rd
    0 Files
  • 24
    Sep 24th
    0 Files
  • 25
    Sep 25th
    0 Files
  • 26
    Sep 26th
    0 Files
  • 27
    Sep 27th
    0 Files
  • 28
    Sep 28th
    0 Files
  • 29
    Sep 29th
    0 Files
  • 30
    Sep 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close