Skip to content

Commit

Permalink
Accept gzip encoding from vulners
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilya Govorkov committed Jul 29, 2021
1 parent be17f12 commit 804a692
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions vulners.nse
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ local table = require "table"
local nmap = require "nmap"
local stdnse = require "stdnse"

local api_version="1.6"
local api_version="1.7"
local mincvss=stdnse.get_script_args("vulners.mincvss")
mincvss = tonumber(mincvss) or 0.0

Expand Down Expand Up @@ -131,7 +131,8 @@ function get_results(what, vers, type)
local attempt_n=0
local option={
header={
['User-Agent'] = string.format('Vulners NMAP Plugin %s', api_version)
['User-Agent'] = string.format('Vulners NMAP Plugin %s', api_version),
['Accept-Encoding'] = "gzip, deflate"
},
any_af = true,
}
Expand Down

0 comments on commit 804a692

Please sign in to comment.