-
Notifications
You must be signed in to change notification settings - Fork 14.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Follow MS-LSAD and MS-LSAT spec for LSARPC & LookupSids
- Loading branch information
1 parent
6911c35
commit d4778c2
Showing
3 changed files
with
25 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
### | ||
# | ||
# This mixin provides methods to look-up security identifiers on the remote SMB server. | ||
# | ||
# -*- coding: binary -*- | ||
|
||
module Msf | ||
|
||
module Exploit::Remote::MsLsat | ||
|
||
def lookup_sids(policy_handle, sids, lookup_level) | ||
sids = [sids] unless sids.is_a?(Array) | ||
|
||
self.lsarpc_pipe.lsar_lookup_sids( | ||
policy_handle: policy_handle, | ||
sids: sids, | ||
lookup_level: lookup_level | ||
) | ||
end | ||
|
||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters