mirror of
https://github.com/nmap/nmap.git
synced 2025-12-25 17:09:02 +00:00
Update default-category scripts to use bitwise operators instead of bit.lua
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
local bit = require "bit"
|
||||
local mysql = require "mysql"
|
||||
local nmap = require "nmap"
|
||||
local stdnse = require "stdnse"
|
||||
@@ -53,7 +52,7 @@ local bitset = function(num, lookup)
|
||||
local caps = {}
|
||||
|
||||
for k, v in pairs(lookup) do
|
||||
if bit.band(num, v) > 0 then
|
||||
if num & v > 0 then
|
||||
caps[#caps+1] = k
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user