1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-28 02:19:04 +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

@@ -1102,7 +1102,7 @@ local function service_file_is_xor_encoded(filename)
return nil, "Can't read from service file"
end
-- This is the XOR-inverse of "MZ".
return bytes == string.char(0xb2, 0xa5)
return bytes == "\xb2\xa5"
end
---Upload all of the uploadable files to the remote system.