Test for Guest
What it does : Test for Guest tests for an enabled guest account with no password set on it, on a number of (NT or Linux) machines in a given range of IP addresses eg 123.123.123.1 to 123.123.123.256.
How it works : NT has a hidden share IPC$. This is to allow connections from remote machines using some form of InterProcess Communication method. Test for Guest will try and make a connection to this IPC$ share on the target machine supplying t he guest account with no password as the logon credentials.
net use
\\123.123.123.123\ipc$ "" /user:guest
Incidently you can connect to the IPC$ share in a null session, that is without supplying any credentials. You use the following command to do so :
net use \\123.123.123.123\ipc$ "" /user:""
Running it : You need the Perl 5 script interpreter and Windows NT (maybe it’ll run on 95) to run this. From a command prompt run:
c:\perl5\bin>perl test4gst.pl
You’ll be prompted for a network address (that is the first 3 bytes of an IP address as if it were a class C network.) eg 123.123.123 . Test for Guest will then try the guest account starting with 123.123.123.1, then 123.123.123.2 and so on upto 123.1 23.123.255. Depending on the speed of your modem it will take around 250 mins to test 255 machines.
What you’re looking for is the response : "The command completed successfully." This means the Guest account is enabled and has no password on it so you now know a valid NT account and its password for that machine. Below I’ve listed some e rrors that may occur and what they mean
System error 53 has occurred.
The network path could not be found.
Either the host is unreachable or there is no IPC$ share on the machine.
System error 1326 has occurred.
Logon failure : Unknown username or bad password
System error 1331 has occurred.
Logon failure : account currently disabled.
The guest account has not been enabled by the admin.
System error 1909 has occurred.
The referenced account is currently locked out and may not be logged on to.
This is a good response. You know the account is enabled, it is just temporarily locked out. Try again later.
System error 1240 has occurred.
The account is not authorized to login from this station.
This response will probably be from a LINUX machine that only authorizes the guest account to log on from machines with certain IP addresses.
How to get it : Click here. This will take you to test4gst.txt. Cut and paste into notepad and save as test4gst.pl. Unfortunately if I put it up as test4gst.pl this server will send down in one long line.