⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dns-test-open-recursion.nse

📁 Overview是Linux,FreeBSD,UNIX,Windows下的网络扫描和嗅探工 具包,其基本功能有三个,一是探测一组主机是否在线 其次是扫描 主机端口,嗅探所提供的网络服务 还可以推断主机
💻 NSE
字号:
id = "Nameserver open recursive querys (CVE-1999-0024) (BID 136, 678)"description = "Checks whether a Nameserver on udp/53 allows querys for third-party names. If is expected that recursion will be enabled on your own internal nameserver."author = "Felix Groebert <felix@groebert.org>"license = "See nmaps COPYING for licence"categories = {"intrusive"}require "bit"require "shortport"portrule = shortport.portnumber(53, "udp")action = function(host, port)    -- generate dns query, Transaction-ID 0xdead, isc.sans.org (type A, class IN)	local request = string.char(0xde, 0xad, 0x01, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03) ..  "isc" .. string.char(0x04) .. "sans" .. string.char(0x03) ..  "org" .. string.char(0x00, 0x00, 0x01, 0x00, 0x01)	local socket = nmap.new_socket()	socket:connect(host.ip, port.number, "udp")	socket:send(request)	local status, result = socket:receive();	socket:close()    -- parse response for dns flags    if (bit.band(string.byte(result,3), 0x80) == 0x80    and bit.band(string.byte(result,4), 0x85) == 0x80)    then		return "Recursion seems enabled"    else		return "Recursion not enabled"	end	returnend

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -