Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | Re: Easy way to check for NULL admin passwords |
|---|---|
| Date: | Thu, 24 Mar 2005 17:49:52 -0500 |
On Thu, Mar 24, 2005 at 04:23:16PM -0600, Engstrom, Glenn E (Glenn) wrote:
I have been looking to see if there is a quick scan I can run to just check if on any windows boxws the administrative account has a NULL password. I was thinking of just setting the SMB account and password appropriately, but not sure which plugin(s) to select.
smb_login.nasl does that. However if you want to simplify it, you can
write the following :
Write a plugin which does the following :
----
include('smb_func.inc');
if ( ! get_port_state(kb_smb_transport()) exit(0);
soc = open_sock_tcp(kb_smb_transport());
if ( ! soc ) exit(0);
session_setup(socket:soc, hostname:kb_smb_hostname());
r = NetUseAdd(login:"administrator", share:"IPC$");
if ( r != 1 ) exit(0); # Could not log in
if ( session_is_guest() ) exit(0); # ForceGuest is set in the registry
security_hole(kb_smb_transport());
NetUseDel();
----
-- Renaud
_______________________________________________
Nessus mailing list
Nessus@list.nessus.org
http://mail.nessus.org/mailman/listinfo/nessus
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | RE: Easy way to check for NULL admin passwords, Mallory, Danny |
|---|---|
| Next by Date: | Re: Plugin 10430 (smb_reg_run_permissions) False Negatives?, Renaud Deraison |
| Previous by Thread: | Easy way to check for NULL admin passwords, Engstrom, Glenn E (Glenn) |
| Next by Thread: | RE: Easy way to check for NULL admin passwords, Mallory, Danny |
| Indexes: | [Date] [Thread] [Top] [All Lists] |