1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-02 21:09:00 +00:00

Remove bin.lua packing from more scripts

This commit is contained in:
dmiller
2018-09-05 21:57:41 +00:00
parent c47e3961b6
commit 0b9bcba19b
14 changed files with 42 additions and 52 deletions

View File

@@ -1,4 +1,3 @@
local bin = require "bin"
local msrpc = require "msrpc"
local smb = require "smb"
local string = require "string"
@@ -110,9 +109,9 @@ from an anonymous connection.
end
-- create malicious packet, same as in the PoC
local data = bin.pack("<I",4096) -- num_sids
local data = string.pack("<I4",4096) -- num_sids
.. "abcd"
..bin.pack("<III",100
..string.pack("<I4I4I4",100
,0
,100)
..string.rep("a",1000)