1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-15 04:09:01 +00:00

Replace some string.char and bin.pack calls with literals

This commit is contained in:
dmiller
2015-02-27 19:42:56 +00:00
parent 204d37e4d7
commit 0e74dd7a35
37 changed files with 85 additions and 97 deletions

View File

@@ -1,4 +1,3 @@
local bin = require "bin"
local datafiles = require "datafiles"
local math = require "math"
local nmap = require "nmap"
@@ -94,7 +93,7 @@ end
local create_tftp_file_request = function(filename)
return bin.pack('CC', 0x00, 0x01) .. filename .. bin.pack('C', 0x00) .. 'octet' .. bin.pack('C', 0x00)
return "\0\x01" .. filename .. "\0octet\0"
end
local check_file_present = function(host, port, filename)