mirror of
https://github.com/nmap/nmap.git
synced 2025-12-26 01:19:03 +00:00
Added support for LDAP substring searches to ldap.lua. These can now be performed alone or in conjunction with other LDAP query types.
Added a new quick filter (qfilter) to ldap-search.nse that allows the user to specify, on the command line, an attribute and corresponding value to search the LDAP directory for. The use of the asterisk '*' as a wildcard is permitted in the value parameter. Updated asn1.lua with some minor notes on a hex value that was used.
This commit is contained in:
@@ -281,7 +281,9 @@ ASN1Encoder = {
|
||||
end,
|
||||
|
||||
---
|
||||
-- Encodes an ASN1 sequence
|
||||
-- Encodes an ASN1 sequence, the value of 30 below breaks down as
|
||||
-- 0x30 = 00110000 = 00 1 10000
|
||||
-- hex binary Universal Constructed value Data Type = SEQUENCE (16)
|
||||
encodeSeq = function(self, seqData)
|
||||
return bin.pack('HAA' , '30', self.encodeLength(#seqData), seqData)
|
||||
end,
|
||||
|
||||
Reference in New Issue
Block a user