Home page logo
/

fulldisclosure logo Full Disclosure mailing list archives

[ElectronicSouls] - Full Disclosure
From: electronicsouls () hushmail com
Date: Sat, 30 Nov 2002 19:10:56 -0800


-----BEGIN PGP SIGNED MESSAGE-----

Dear List,

New technique.  No one is safe.

# cat chk.txt
#!/bin/bash
#81 different OS checks
line=$1
rm -f tmp;

timeout=7;

for MOFF in `(sleep $timeout;exit 0)|telnet $1 >>tmp`
 do
  echo "$MOFF" >>tmp
 done



# SuSE Linux #

  if grep -i "SuSE" tmp >/dev/null;
   then

    if grep -i "SuSE Linux 6.0" tmp >/dev/null;
     then
      echo $line>>suse61
      exit 0
    fi

    if grep -i "SuSE Linux 6.1" tmp >/dev/null;
     then
      echo $line>>suse61
      exit 0
    fi

    if grep -i "SuSE Linux 6.2" tmp >/dev/null;
     then
      echo $line>>suse62
      exit 0
    fi

    if grep -i "SuSE Linux 6.3" tmp >/dev/null;
     then
      echo $line>>suse63
      exit 0
    fi

    if grep -i "SuSE Linux 6.4" tmp >/dev/null;
     then
      echo $line>>suse64
      exit 0
    fi

    if grep -i "SuSE Linux 7" tmp >/dev/null;
     then
      echo $line>>suse7
      exit 0
    fi

    if grep -i "SuSE 7.0 Professional" tmp >/dev/null;
     then
      echo $line>>suse7pro
      exit 0
    fi

   echo $line>>suse
   exit 0
  fi


# Red Hat Code Names #

   if grep -i "Red Hat" tmp >/dev/null;
    then

    if grep -i "Guinness" tmp >/dev/null;
     then
      echo $line>>rh7
      exit 0
    fi

    if grep -i "Zoot" tmp >/dev/null;
     then
      echo $line>>rh62
      exit 0
    fi

    if grep -i "Cartman" tmp >/dev/null;
     then
      echo $line>>rh61
      exit 0
    fi

    if grep -i "Hedwig" tmp >/dev/null;
     then
      echo $line>>rh6
      exit 0
    fi

    if grep -i "Starbuck" tmp >/dev/null;
     then
      echo $line>>rh59
      exit 0
    fi

    if grep -i "Apollo" tmp >/dev/null;
     then
      echo $line>>rh52
      exit 0
    fi

    if grep -i "Manhattan" tmp >/dev/null;
     then
      echo $line>>rh51
      exit 0
    fi

    if grep -i "Hurricane" tmp >/dev/null;
     then
      echo $line>>rh5
      exit 0
    fi

    if grep -i "Red Hat Russian" tmp >/dev/null;
     then
      echo $line>>rhr
      exit 0
    fi

   echo $line>>rh
   exit 0
  fi
#############


# SunOS #

 if grep "SunOS" tmp >/dev/null
  then

   if grep "SunOS 5.6" tmp >/dev/null;
    then
     echo $line>>sunos56
     exit 0
   fi

   if grep "SunOS 5.7" tmp >/dev/null;
    then
     echo $line>>sunos57
     exit 0
   fi

   if grep "SunOS 5.8" tmp >/dev/null;
    then
     echo $line>>sunos58
     exit 0
   fi

  echo $line>>sunos
  exit 0
 fi
#########


# Mandrake #

   if grep -i "Mandrake" tmp >/dev/null;
    then

     if grep -i "Venus" tmp >/dev/null;
      then
       echo $line>>mandrake6
       exit 0
     fi

     if grep -i "Helios" tmp >/dev/null;
      then
       echo $line>>mandrake61
       exit 0
     fi

     if grep -i "Air" tmp >/dev/null;
      then
       echo $line>>mandrake7
       exit 0
     fi

     if grep -i "helium" tmp >/dev/null;
      then
       echo $line>>mandrake71
       exit 0
     fi

     if grep -i "Odyssey" tmp >/dev/null;
      then
       echo $line>>mandrake72
       exit 0
     fi

     if grep -i "mdksecure" tmp >/dev/null;
      then
       echo $line>>mandrake-sec
       exit 0
     fi

    echo $line>>mandrake
    exit 0
   fi

############


# Cobalt #

   if grep -i "Cobalt" tmp >/dev/null;
    then

     if grep -i "Fargo" tmp >/dev/null;
      then
       echo $line>>cobalt4
       exit 0
     fi

     if grep -i "Pacifica" tmp >/dev/null;
      then
       echo $line>>cobalt5
       exit 0
     fi

     if grep -i "Shinkansen-Decaf" tmp >/dev/null;
      then
       echo $line>>cobalt6_s
       exit 0
     fi

     if grep -i "Carmel" tmp >/dev/null;
      then
       echo $line>>cobalt6_c
       exit 0
     fi

    echo $line>>cobalt
    exit 0
   fi
#########

   if grep -i "Cisco" tmp >/dev/null;
    then
     echo $line>>cisco
     exit 0
   fi

#######
# SCO #

  if grep -i "SCO OpenServer(TM) Release 5" tmp >/dev/null;
   then
    echo $line>>sco_openserver5
    exit 0
   fi

  if grep -i "SCO OpenServer" tmp >/dev/null;
   then
    echo $line>>sco_openserver
    exit 0
   fi

  if grep -i "SCO UnixWare 7.1.0" tmp >/dev/null;
   then
    echo $line>>sco_unixware710
    exit 0
  fi

  if grep -i "SCO UnixWare 7.1.1" tmp >/dev/null;
   then
    echo $line>>sco_unixware711
    exit 0
  fi

  if grep -i "SCO Unixware" tmp >/dev/null;
   then
    echo $line>>sco_unixware
    exit 0
  fi


#######

###################
# Black Cat Linux #

   if grep -i "Black Cat Linux" tmp >/dev/null;
    then

     if grep -i "Foxhound" tmp >/dev/null;
      then
       echo $line>>blackcat602
       exit 0
     fi

     if grep -i "Bear" tmp >/dev/null;
      then
       echo $line>>blackcat62
       exit 0
     fi

    echo $line>>blackcat
    exit 0
   fi
###################


#######
# BSD #

   if grep -i "FreeBSD" tmp >/dev/null;
    then
     echo $line>>freebsd
     exit 0
   fi

   if grep -i "NetBSD" tmp >/dev/null;
    then
     echo $line>>netbsd
     exit 0
   fi

   if grep -i "OpenBSD" tmp >/dev/null;
    then
     echo $line>>openbsd
     exit 0
   fi

   if grep -i "BSDI BSD/OS 3.0" tmp >/dev/null;
    then
     echo $line>>bsdi30
     exit 0
   fi

   if grep -i "BSDI BSD/OS 4.0.1" tmp >/dev/null;
    then
     echo $line>>bsdi401
     exit 0
   fi

   if grep -i "BSDI BSD/OS 4.0 " tmp >/dev/null;
    then
     echo $line>>bsdi40
     exit 0
   fi

   if grep -i "BSDI BSD/OS 4" tmp >/dev/null;
    then
     echo $line>>bsdi4
     exit 0
   fi

   if grep -i "BSDi" tmp >/dev/null;
    then
     echo $line>>bsdi
     exit 0
   fi

#######


##########
# Debian #

   if grep -i "Debian" tmp >/dev/null;
    then

     if grep -i "Debian GNU/Linux 2.2" tmp >/dev/null;
      then
       echo $line>>debian22
       exit 0
     fi

     echo $line>>debian22
     exit 0
   fi

#########

   if grep -i "Welcome to Microsoft Telnet Service" tmp >/dev/null;
    then
     echo $line>>win2k
     exit 0
   fi

   if grep -i "TranceLinux" tmp >/dev/null;
    then
     echo $line>>trance
     exit 0
   fi

   if grep -i "  *  I N U X  ***  O U T E R  ***  R O J E C T" tmp >/dev/null;
    then
     echo $line>>lrp
     exit 0
   fi

   if grep -i "Welcome to Linux for Taiwan" tmp >/dev/null;
    then
     echo $line>>lft
     exit 0
   fi

   if grep -i "Welcome to Peanut Linux" tmp >/dev/null;
    then
     echo $line>>peanut
     exit 0
   fi

   if grep -i "Slackware" tmp >/dev/null;
    then
     echo $line>>slackware
     exit 0
   fi

   if grep -i "Coyote Linux" tmp >/dev/null;
    then
     echo $line>>coyote
     exit 0
   fi

   if grep -i "NetMAX Linux" tmp >/dev/null;
    then
     echo $line>>netmax
     exit 0
   fi

   if grep -i "Storm Linux" tmp >/dev/null;
    then
     echo $line>>storm
     exit 0
   fi

   if grep -i "AIX" tmp >/dev/null;
    then
     echo $line>>aix
     exit 0
   fi

   if grep -i "IRIX" tmp >/dev/null;
    then
     echo $line>>irix
     exit 0
   fi

   if grep -i "System V Release 4.0" tmp >/dev/null;
    then
     echo $line>>systemV
     exit 0
   fi

   if grep -i "Corel" tmp >/dev/null;
    then
     echo $line>>corel
     exit 0
   fi

   if grep -i "Openlinux" tmp >/dev/null;
    then
     echo $line>>openlinux
     exit 0
   fi

###
   if grep -i "TurboLinux release 4.8" tmp >/dev/null;
    then
     echo $line>>turbo48
     exit 0
   fi

   if grep -i "Turbolinux" tmp >/dev/null;
    then
     echo $line>>turbo
     exit 0
   fi
###

   if grep -i "Halloween" tmp >/dev/null;
    then
     echo $line>>halloween
     exit 0
   fi

###
   if grep -i "QNX 4.24" tmp >/dev/null;
    then
     echo $line>>qnx424
     exit 0
   fi

   if grep -i "qnx" tmp >/dev/null;
    then
     echo $line>>qnx
     exit 0
   fi
###

   if grep -i "BeOS" tmp >/dev/null;
    then
     echo $line>>beos
     exit 0
   fi

   if grep -i "Ultrix" tmp >/dev/null;
    then
     echo $line>>ultrix
     exit 0
   fi

###
   if grep -i "hp-ux" tmp >/dev/null;
    then

    if grep -i "A.09.00" tmp >/dev/null;
      then
       echo $line>>hp-ux900
       exit 0
    fi

    if grep -i "A.09.04" tmp >/dev/null;
      then
       echo $line>>hp-ux904
       exit 0
    fi

    if grep -i "B.10.20" tmp >/dev/null;
      then
       echo $line>>hp-ux1020
       exit 0
    fi

    if grep -i "B.11.00" tmp >/dev/null;
      then
       echo $line>>hp-ux1100
       exit 0
    fi

   echo $line>>hp-ux
   exit 0
  fi

###

   if grep -i "dg-ux" tmp >/dev/null;
    then
     echo $line>>dg-ux
     exit 0
   fi

#################

#find some routers/proxies#


   if grep -i "WinGate>" tmp >/dev/null;
    then
     echo $line>>wg
     exit 0
   fi

   if grep -i "<host> [port]" tmp >/dev/null;
    then
     echo $line>>winproxy
     exit 0
   fi

   if grep -i "tn-gw->" tmp >/dev/null;
    then
     echo $line>>tn-gw
     exit 0
   fi

   if grep -i "Telnet>" tmp >/dev/null;
    then
     echo $line>>telnet
     exit 0
   fi

   if grep -i "Router>" tmp >/dev/null;
    then
     echo $line>>router
     exit 0
   fi

   if grep -i "AllianceAS5800>" tmp >/dev/null;
    then
     echo $line>>alliance
     exit 0
   fi

   if grep -i "LANCOM" tmp >/dev/null;
    then
     echo $line>>lancom
     exit 0
   fi

   if grep -i "PIX" tmp >/dev/null;
    then
     echo $line>>pix
     exit 0
   fi

   if grep -i "Raptor" tmp >/dev/null;
    then
     echo $line>>raptor
     exit 0
   fi

   if grep -i "Proxy" tmp >/dev/null;
    then
     echo $line>>proxy
     exit 0
   fi


# If nothing was found...maybe it is some
# strange linux distro...save it in linux

   if grep -i "Linux" tmp >/tmp/null;
    then
     echo $line>>linux
     exit 0
   fi

# Or maybe it is some unix?


   if grep -i "Unix" tmp >/tmp/null;
    then
     echo $line>>unix
     exit 0
   fi


echo $line>>unknown

rm -f tmp

#

The Electronic Souls Crew
[ElectronicSouls] (c) 2002

"Disney movies are good."

-----BEGIN PGP SIGNATURE-----
Version: Hush 2.2 (Java)
Note: This signature can be verified at https://www.hushtools.com/verify

wmQEARECACQFAj3pfdwdHGVsZWN0cm9uaWNzb3Vsc0BodXNobWFpbC5jb20ACgkQ39CI
8XTNSM5cwwCfW+TweF/xXks1bBPPq7JGnjlC22AAoIPZ28rSj1ZmEJaz4eA0vsEThydE
=OzdW
-----END PGP SIGNATURE-----




Concerned about your privacy? Follow this link to get
FREE encrypted email: https://www.hushmail.com/?l=2 

Big $$$ to be made with the HushMail Affiliate Program: 
https://www.hushmail.com/about.php?subloc=affiliate&l=427
_______________________________________________
Full-Disclosure - We believe in it.
Charter: http://lists.netsys.com/full-disclosure-charter.html


  By Date           By Thread  

Current thread:
  • [ElectronicSouls] - Full Disclosure electronicsouls (Dec 01)
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]