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

📄 ipops.lua

📁 Ubuntu packages of security software。 相当不错的源码
💻 LUA
字号:
-- See nmaps COPYING for licencemodule(...,package.seeall)-- check to see if ip is part of RFC 1918 address spaceisPrivate = function(ip)	local a, b	a, b = get_parts_as_number(ip)  	if a == 10 then		return true	elseif a == 172 and (b>15 and b<32) then			return true	elseif a == 192 and b == 168 then		return true	end	return falseendtodword = function(ip)	local a, b, c, d	a,b,c,d = get_parts_as_number(ip) 	return (((a*256+b))*256+c)*256+dendget_parts_as_number = function(ip)	local a,b,c,d = string.match(ip, "(%d+)%.(%d+)%.(%d+)%.(%d+)")	a = tonumber(a);	b = tonumber(b);	c = tonumber(c);	d = tonumber(d);	return a,b,c,dend

⌨️ 快捷键说明

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