| To: | <nessus@list.nessus.org> |
|---|---|
| Subject: | PLUGIN HELP |
| From: | "John Scherff" <JScherff@24hourfit.com> |
| Date: | Thu, 10 May 2007 08:28:57 -0700 |
| Delivered-to: | sp-com-lists@consult.net |
| Delivered-to: | nessus-list1@securepoint.com |
| Delivered-to: | nessus@list.nessus.org |
| List-archive: | <http://mail.nessus.org/pipermail/nessus> |
| List-help: | <mailto:nessus-request@list.nessus.org?subject=help> |
| List-id: | Discussion of Nessus software <nessus.list.nessus.org> |
| List-post: | <mailto:nessus@list.nessus.org> |
| List-subscribe: | <http://mail.nessus.org/mailman/listinfo/nessus>, <mailto:nessus-request@list.nessus.org?subject=subscribe> |
| List-unsubscribe: | <http://mail.nessus.org/mailman/listinfo/nessus>, <mailto:nessus-request@list.nessus.org?subject=unsubscribe> |
| Sender: | nessus-bounces@list.nessus.org |
| Thread-index: | AceTF+6rAGd7OkgwSgW5CUv90kLF8Q== |
| Thread-topic: | PLUGIN HELP |
|
(This is a re-post. Tenable support kicked my ticket
(BFP-98828-930) to the curb, so I figured I'd ask one last time here...
C'mon you @tenablesecurity.com folks, help a fella
out...)
I wrote a
plugin (attached) to verify
compliance with company standards regarding local users and groups (renaming
admin, decoy accounts, group memberships, disabled accounts, etc.) I had no
problem getting NASL to do what I wanted, with ONE exception:
I need to be able to use the local host SID and local group RIDs to retrieve the actual NAMEs of local groups. I can establish a session to the $IPC share, I can get the local group RIDs using NetUserGetLocalGroups(), I can an LSA handle with LsaOpenPolicy(), I can get the hex sid of the host from the KB, and I can convert the hex sid + group RID to a raw sid with hex2raw2(). If I comment out the hex host SID -> raw host SID + group RID -> raw group SID conversion, and then paste just the raw group sid from, say, smb_group_backup_op.nasl, my plugin converts the raw SID to a group name. The group in question is the local Users group. NetUserGetLocalGroups returns '545' for this group, which I assume is the RID. - John
_______________________________________________ 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: RE: PLUGIN HELP [nes #BFP-98828-930], John Scherff |
|---|---|
| Next by Date: | Re: Nessus and Nikto, George A. Theall |
| Previous by Thread: | RE: PLUGIN HELP [nes #BFP-98828-930], John Scherff |
| Next by Thread: | Nessus and Nikto, Holstein, Robert - BLS CTR |
| Indexes: | [Date] [Thread] [Top] [All Lists] |