1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-09 22:21:29 +00:00

Change more bin lib to string packing/fromhex. Closes #755. Closes #769

This commit is contained in:
dmiller
2017-03-25 13:39:44 +00:00
parent d66dd69df2
commit 0e7f11673c
24 changed files with 50 additions and 50 deletions

View File

@@ -174,7 +174,7 @@ KRB5 = {
princ = encoder:encode( name_type ) .. princ
-- not sure about how this works, but apparently it does
princ = bin.pack("H", "A003") .. princ
princ = stdnse.fromhex( "A003") .. princ
princ = self:encodeSequence(encoder,0x30, princ)
return princ
@@ -234,7 +234,7 @@ KRB5 = {
data = '\0' .. data
-- hmm, wonder what this is
data = bin.pack("H", "A0070305") .. data
data = stdnse.fromhex( "A0070305") .. data
data = self:encodeSequence(encoder, 0x30, data)
data = self:encodeSequence(encoder, 0xA4, data)
data = self:encodeSequence(encoder, 0xA2, encoder:encode(KRB5.MessageType['AS-REQ'])) .. data