avonar / impacket

Automatically exported from code.google.com/p/impacket
Other
0 stars 0 forks source link

LsaLookupSids should also provide the SID_NAME_USE member (SID type) #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This is actually a feature request.

While coding the smb_lookupsid module for patator (which does the same as 
metasploit's auxiliary/scanner/smb/smb_lookupsid module), I came up with this 
patch for impacket in order to be able to print the SID type along with the 
account name (ie. SidTypeUser, SidTypeGroup, ... cf. 
http://msdn.microsoft.com/en-us/library/windows/desktop/aa379601%28v=vs.85%29.as
px)

Do you think you might want to add this feature?

Original issue reported on code.google.com by lanjelot@gmail.com on 23 Apr 2012 at 4:48

Attachments:

GoogleCodeExporter commented 9 years ago
Hey mate.. thanks for the report. Do you have a code snippet to perform a 
lookupsid?. The lsarpc portion was committed by a contributor but didn't send 
code to test.

I'll look your changes over the weekend.

cheers,
beto

Original comment by bet...@gmail.com on 26 Apr 2012 at 9:24

GoogleCodeExporter commented 9 years ago
Changing type

Original comment by bet...@gmail.com on 26 Apr 2012 at 9:25

GoogleCodeExporter commented 9 years ago
see attached for a sample code that works with my windows 2003 sp2 virtual 
machine

Original comment by lanjelot@gmail.com on 27 Apr 2012 at 6:52

Attachments:

GoogleCodeExporter commented 9 years ago
Hey lanjelot:

Check http://code.google.com/p/impacket/source/detail?r=525

Let me know if it works for you and I'll close this ticket.

thanks for the report!,
beto

Original comment by bet...@gmail.com on 29 Apr 2012 at 8:45

GoogleCodeExporter commented 9 years ago
works great, thank you for your quick response! :)

Original comment by lanjelot@gmail.com on 3 May 2012 at 1:51

GoogleCodeExporter commented 9 years ago
awesome! let me know if you need anything else.. 

cheers!
beto

Original comment by bet...@gmail.com on 3 May 2012 at 2:25