home *** CD-ROM | disk | FTP | other *** search
/ Hackers Handbook - Millenium Edition / Hackers Handbook.iso / files / nt / test4gst.perl < prev    next >
Encoding:
Text File  |  1998-10-14  |  670 b   |  26 lines

  1. # TEST FOR GUEST
  2. # Created by Mnemonix 30th April 1998
  3. #
  4. # This script will test for the existence of an enabled 
  5. # Guest account with with no password on a range of 
  6. # addresses eg 123.123.123.1 to 123.123.123.256
  7.  
  8.  
  9. system ('cls');
  10. print("Test for Guest - Mnemonix 1998\n\n");
  11. print("Enter the first three bytes of the subnet\neg 123.123.123 : ");
  12. $netaddress = <STDIN>;
  13. chop($netaddress);
  14. print("\n\n");
  15. $host = 1;
  16. $password = '""';
  17. $name = guest;
  18.  
  19. while ($host < 256)
  20. {
  21.     print ("net use \\\\$netaddress.$host\\ipc\$ $password /user:$name");
  22.     print ("\n\n");
  23.     system ("net use \\\\$netaddress.$host\\ipc\$ $password /user:$name");
  24.     $host++;
  25. }
  26.