1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-10 09:49:05 +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,10 +1,8 @@
local bin = require('bin')
local match = require('match')
local nmap = require('nmap')
local shortport = require('shortport')
local sslcert = require('sslcert')
local stdnse = require('stdnse')
local string = require('string')
local table = require('table')
local vulns = require('vulns')
local have_tls, tls = pcall(require,'tls')
@@ -201,7 +199,7 @@ local function test_ccs_injection(host, port, version)
-- change_cipher_spec message
local ccs = tls.record_write(
"change_cipher_spec", version, bin.pack("C", 0x01))
"change_cipher_spec", version, "\x01")
-- Send the first ccs message
status, err = s:send(ccs)