home *** CD-ROM | disk | FTP | other *** search
/ The Hacker's Encyclopedia 1998 / hackers_encyclopedia.iso / hacking / unix / linux.sh < prev    next >
Encoding:
Linux/UNIX/POSIX Shell Script  |  2003-06-11  |  1.7 KB  |  112 lines

  1. #!/bin/sh
  2. #
  3. # linux security scanner v0.1
  4. # by FA-Q - leet@infomind.net - http://www.innu.org
  5. # usage: sh linux.sh
  6.  
  7. echo **[checking for system vulnerabilities]**
  8.  
  9. if test -g /usr/lib/games/abuse/abuse.console
  10.    then
  11.    ls -l /usr/lib/games/abuse/abuse.console
  12. fi
  13.  
  14. if test -g /usr/games/bdash
  15.    then
  16.    ls -l /usr/games/bdash
  17. fi
  18.  
  19. if test -g /usr/bin/resizecons
  20.    then
  21.    ls -l /usr/bin/resizecons
  22. fi
  23.  
  24. if test -g /usr/bin/splitvt
  25.    then
  26.    ls -l /usr/bin/splitvt
  27. fi
  28.  
  29. if test -g /sbin/smbmount
  30.    then
  31.    ls -l /sbin/smbmount
  32. fi
  33.  
  34. if test -g /usr/bin/traceroute
  35.    then
  36.    ls -l /usr/bin/traceroute
  37. fi
  38.  
  39. if test -g /bin/umount
  40.    then
  41.    ls -l /bin/umount
  42. fi
  43.  
  44. if test -g /usr/X11/bin/xlock
  45.    then
  46.    ls -l /usr/X11/bin/xlock
  47. fi
  48.  
  49. if test -g /usr/bin/zgv
  50.    then
  51.    ls -l /usr/bin/zgv
  52. fi
  53.  
  54. if test -g /usr/X11/bin/color_xterm
  55.    then
  56.    ls -l /usr/X11/bin/color_xterm
  57. fi
  58.  
  59. if test -g /usr/X11R6/bin/cxterm
  60.    then
  61.    ls -l /usr/X11R6/bin/cxterm
  62. fi
  63.  
  64. if test -g /usr/sbin/dip
  65.    then
  66.    ls -l /usr/sbin/dip
  67. fi
  68.  
  69. if test -g /lib/ld.so
  70.    then
  71.    ls -l /lib/ld.so
  72. fi
  73.  
  74. if test -g /usr/X11/bin/SuperProbe
  75.    then
  76.    ls -l /usr/X11/bin/SuperProbe
  77. fi
  78.  
  79. if test -g /usr/bin/lpr
  80.    then
  81.    ls -l /usr/bin/lpr
  82. fi
  83.  
  84. if test -g /usr/bin/minicom
  85.    then
  86.    ls -l /usr/bin/minicom
  87. fi
  88.  
  89. if test -g /bin/su
  90.    then
  91.    ls -l /bin/su
  92. fi
  93.  
  94. if test -g /usr/bin/suidperl
  95.    then
  96.    ls -l /usr/bin/suidperl
  97. fi
  98.  
  99. if test -g /bin/ping
  100.    then
  101.    ls -l /bin/ping
  102. fi
  103.  
  104. if test -u /usr/bin/crontab && test -e /usr/doc/vixie-cron*
  105.    then
  106.    ls -l /usr/bin/crontab
  107. fi
  108.  
  109. echo **************[complete]***************
  110.  
  111. #%. e-oh-ef
  112.