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:

January 2023

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Hosting By
Rokasec
close