what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

pop2.sh

pop2.sh
Posted Mar 1, 2000
Authored by Guile Cool

Shell script which scans for vulnerable pop-2 daemons.

tags | tool, shell, scanner
systems | unix
SHA-256 | 5da342e49db9e135e3de5d38e18ac6aab928d6fcab5eaa672e8d0fdf0314ee0c

pop2.sh

Change Mirror Download
#pop2scan.sh by -()- The ImperialS -()- 2000
#efNET #imperials

rm -rf pop2scan 2>&1
ln -s `which telnet` pop2scan

if test ! -r scanned.log; then
rm -rf scanned.log
touch scanned.log
fi

echo "-(#)- Loading ImperialS pop2 Scanner... -()-"

if test -z $1; then
echo "-()- ImperialS -()- I think you missed something..."
echo "-()- ImperialS -()- USAGE: "`basename $0`" lame.com"
exit 0
fi

echo "scan("`grep -c scan scanned.log`"):" `date +"["%D" "%l:%M%p"]"` "-- $1" >> scanned.log
echo "-(1)- Getting Subnets... ($1)"

host -l $1 > $1.hostlist 2>&1
rm -rf subnet-do pophosts 2>&1
cat $1.hostlist | grep "name server" | awk -F ' ' ' {print "host -l " $1 " >> pophosts"}' >> subnet-do 2>&1

sort < subnet-do > subnet-do.sorted 2>&1
uniq < subnet-do.sorted > subnet-do.uniq 2>&1
rm -rf subnet-do subnet-do.sorted 2>&1
mv subnet-do.uniq subnet-do 2>&1
chmod 755 subnet-do 2>&1
rm -rf $1.hostlist 2>&1

echo "-(2)- Checking the Scan ($1)"
./subnet-do 2>&1
rm -rf subnet-do todo chk-pop 2>&1

cat pophosts | grep "has address" | awk -F ' ' ' {print "./pop2scan "$4" 109 >> chk-pop 2>&1 | (sleep 8 ; killall -9 pop2scan > /dev/null 2>&1)"}' >> todo 2>&1

sort < todo > sorted.todo 2>&1
uniq < sorted.todo > uniqed.todo 2>&1
rm -rf todo sorted.todo 2>&1
mv uniqed.todo todo 2>&1
chmod 755 todo 2>&1

echo "-(3)- Let's start Scanning..." `grep -c . todo` "machines with pop2 ($1)"
./todo > /dev/null 2>&1

rm -rf pophosts todo 2>&1

echo "-(4)- Done scanning ($1)"
echo ""
echo "-(5)- Cleaning the patched ones"
echo ""

cat chk-pop | grep -v 3.35 >> results.$1.stripped 2>&1
cat chk-pop | grep -v 3.37 >> results.$1.stripped 2>&1
cat chk-pop | grep -v 3.42 >> results.$1.stripped 2>&1
cat chk-pop | grep -v 3.44 >> results.$1.stripped 2>&1
cat chk-pop | grep -v 4.46 >> results.$1.stripped 2>&1
cat chk-pop | grep -v 4.47 >> results.$1.stripped 2>&1

mv chk-pop results.$1.original 2>&1

echo "-(!)- POP2 appeared : "`grep -ic POP2 results.$1.stripped` "times"
echo "-(!)- Original Results : "results.$1.original
echo "-(!)- Stripped results : "results.$1.stripped
echo "-(!)- This was scan num : "`grep -c scan scanned.log`
echo ""
echo "Thanks to twiztah..."
echo "Coded by: Guilecool and BiefuZz...-()- The ImperialS -()-"
echo "-()- The ImperialS -()- http://www.imperials.cjb.net -() The ImperialS -()-"
echo ""
Login or Register to add favorites

File Archive:

April 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close