亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? upnp-info.nse

?? Ubuntu packages of security software。 相當(dāng)不錯的源碼
?? NSE
字號:
-- UPnP network information script
-- rev 0.2 (1-9-2007)

id = "UPnP"

description = "Attempts to extract system information from UPnP service"

author = "Thomas Buchanan <tbuchanan@thecompassgrp.net>"

license = "See nmaps COPYING for licence"

categories = {"safe"}

require("stdnse")
require("shortport")
require("strbuf")

portrule = shortport.portnumber(1900, "udp", {"open", "open|filtered"})

action = function(host, port)
	
	-- create the socket used for our connection
	local socket = nmap.new_socket()
	
	-- set a reasonable timeout value
	socket:set_timeout(5000)
	
	-- do some exception handling / cleanup
	local catch = function()
		socket:close()
	end
	
	local try = nmap.new_try(catch)
	
	-- connect to the potential UPnP system
	try(socket:connect(host.ip, port.number, "udp"))
	
	local payload = strbuf.new()
	
	-- for details about the UPnP message format, see http://upnp.org/resources/documents.asp
	payload = payload .. "M-SEARCH * HTTP/1.1\r\n"
	payload = payload .. "Host:239.255.255.250:1900\r\n"
	payload = payload .. "ST:upnp:rootdevice\r\n"
	payload = payload .. "Man:\"ssdp:discover\"\r\n"
	payload = payload .. "MX:3\r\n\r\n"
	
	try(socket:send(strbuf.dump(payload)))
	
	local status
	local response
	
	-- read in any response we might get
	status, response = socket:receive_bytes(1)

	if (not status) or (response == "TIMEOUT") then
		socket:close()
		return
	end

	-- since we got something back, the port is definitely open
	nmap.set_port_state(host, port, "open")
	
	-- buffer to hold script output
	local output
	
	if response ~= nil then
		-- We should get a response back that has contains one line for the server, and one line for the xml file location
		-- these match any combination of upper and lower case responses
		local server, location
		server = string.match(response, "[Ss][Ee][Rr][Vv][Ee][Rr]:(.-)\010")
		if server ~= nil then output = server .. "\n" end
		location = string.match(response, "[Ll][Oo][Cc][Aa][Tt][Ii][Oo][Nn]:(.-)\010")
		if location ~= nil then
			output = output .. "Location: " .. location 
			
			local v = nmap.verbosity()
			
			-- the following check can output quite a lot of information, so we require at least one -v flag
			if v > 0 then
				-- split the location into an IP address, port, and path name for the xml file
				local xhost, xport, xfile
				xhost = string.match(location, "http://(.-)/")
				-- check to see if the host portionof the location specifies a port
				-- if not, use port 80 as a standard web server port
				if xhost ~= nil and string.match(xhost, ":") then
					xport = string.match(xhost, ":(.*)")
					xhost = string.match(xhost, "(.*):")
				end

				if xport == nil then
					xport = 80
				end

				-- check if the IP address in the location matches the IP address we're scanning
				-- if not, alert the user, but continue to scan the IP address we're interested in
				if xhost ~= host.ip then 
					output = output .. "\n !! Location did not match target IP address !! "
				--	return output 
					xhost = host.ip
				end

				-- extract the path name from the location field, but strip off the \r that HTTP servers return
				xfile = string.match(location, "http://.-/(.-)\013")
				if xfile ~= nil then
					strbuf.clear(payload)
					-- create an HTTP request for the file, using the host and port we extracted earlier
					payload = payload .. "GET /" .. xfile .. " HTTP/1.1\r\n"
					payload = payload .. "Accept: text/xml, application/xml, text/html\r\n"
					payload = payload .. "User-Agent: Mozilla/4.0 (compatible; NMAP NSE)\r\n"
					payload = payload .. "Host: " .. xhost .. ":" .. xport .. "\r\n"
					payload = payload .. "Connection: Keep-Alive\r\n"
					payload = payload .. "Cache-Control: no-cache\r\n"
					payload = payload .. "Pragma: no-cache\r\n\r\n"

					socket = nmap.new_socket()
					socket:set_timeout(5000)

					try(socket:connect(xhost, xport, "tcp"))
					try(socket:send(strbuf.dump(payload)))
					-- we're expecting an xml file, and for UPnP purposes it should end in </root>
					status, response = socket:receive_buf("</root>", true)

					if (status) and (response ~= "TIMEOUT") then
						if string.match(response, "HTTP/1.%d 200") then
							local webserver
							-- extract information about the webserver that is handling responses for the UPnP system
							webserver = string.match(response, "[Ss][Ee][Rr][Vv][Ee][Rr]:(.-)\010")
							if webserver ~= nil then output = output .. "\nWebserver: " .. webserver end

							-- the schema for UPnP includes a number of <device> entries, which can a number of interesting fields
							for device in string.gmatch(response, "<deviceType>(.-)</UDN>") do
								local fn, mnf, mdl, nm, ver

								fn = string.match(device, "<friendlyName>(.-)</friendlyName>")
								mnf = string.match(device, "<manufacturer>(.-)</manufacturer>")
								mdl = string.match(device, "<modelDescription>(.-)</modelDescription>")
								nm = string.match(device, "<modelName>(.-)</modelName>")
								ver = string.match(device, "<modelNumber>(.-)</modelNumber>")

								if fn ~= nil then output = output .. "\n Name: " .. fn end
								if mnf ~= nil then output = output .. "\n  Manufacturer: " .. mnf end
								if mdl ~= nil then output = output .. "\n  Model Descr: " .. mdl end
								if nm ~= nil then output = output .. "\n  Model Name: " .. nm end
								if ver ~= nil then output = output .. "\n  Model Version: " .. ver end
							end
						end
					end

					socket:close()
				end
			end	
		end
		return output
	end
end

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久久www免费人成精品| 国产丝袜欧美中文另类| 色香蕉久久蜜桃| 91丨九色丨国产丨porny| 欧美日韩精品欧美日韩精品一综合| 日韩国产在线观看一区| 国产一区二区在线视频| 国产成a人亚洲精| av电影天堂一区二区在线观看| 91丨国产丨九色丨pron| 久久久久久久一区| 成人久久视频在线观看| 亚洲天堂成人在线观看| 欧美亚洲一区二区三区四区| 欧美aaaaa成人免费观看视频| 日韩欧美中文字幕公布| 国产精品中文欧美| 玉足女爽爽91| 日韩三级在线观看| 99久久免费国产| 午夜视频在线观看一区二区| 亚洲精品一区二区在线观看| a在线欧美一区| 天天操天天综合网| 久久久久国产一区二区三区四区 | 精品日产卡一卡二卡麻豆| 久久99精品久久久久| 国产精品久久久久一区二区三区 | 国产婷婷精品av在线| 色中色一区二区| 久久er精品视频| 一区二区三区精品在线| 337p日本欧洲亚洲大胆精品| 99v久久综合狠狠综合久久| 日韩影视精彩在线| 中文字幕在线不卡一区| 日韩视频一区二区三区在线播放| 成人污视频在线观看| 日韩av一二三| 亚洲精品国产视频| 国产网站一区二区三区| 欧美肥大bbwbbw高潮| 成人毛片视频在线观看| 欧美日韩精品一区二区天天拍小说 | 91精品国产一区二区| 国产精品进线69影院| 国产精品中文字幕欧美| 精品国产乱码久久久久久1区2区| 美洲天堂一区二卡三卡四卡视频| 精品无人码麻豆乱码1区2区 | 一本在线高清不卡dvd| 精品一区二区在线播放| 亚洲国产日韩a在线播放| 国产精品污污网站在线观看| 欧美一区二区三区婷婷月色| 欧美最猛性xxxxx直播| 丁香啪啪综合成人亚洲小说| 老司机精品视频在线| 亚洲午夜av在线| 亚洲黄色小说网站| 国产精品动漫网站| 亚洲国产精品二十页| www国产精品av| 91精品国产综合久久精品app| 在线观看免费成人| 色吧成人激情小说| 色综合久久综合| 99精品国产99久久久久久白柏| 国产精品一二三在| 国产精品一区二区免费不卡| 久久99精品久久久久婷婷| 免费不卡在线视频| 蜜臀av在线播放一区二区三区 | 国产精品久久福利| 中文乱码免费一区二区| 国产欧美日韩精品一区| 国产亚洲成aⅴ人片在线观看| 欧美精品一区二| 久久久久国产精品人| 久久久国产精品午夜一区ai换脸| 欧美sm美女调教| 久久婷婷久久一区二区三区| 久久麻豆一区二区| 亚洲国产精品ⅴa在线观看| 国产精品乱人伦一区二区| 国产精品久久久久影视| 椎名由奈av一区二区三区| 亚洲视频一区二区在线| 一区二区久久久久久| 亚洲成av人片在线观看无码| 日韩精品亚洲一区二区三区免费| 日产欧产美韩系列久久99| 免费高清成人在线| 欧美老肥妇做.爰bbww| 欧美性三三影院| 欧美一卡二卡三卡| 久久天堂av综合合色蜜桃网| 日本一区二区动态图| 亚洲免费在线电影| 日韩精品一二三区| 国产一区二区中文字幕| 99久久99久久精品免费观看| 欧美最猛黑人xxxxx猛交| 欧美一区日韩一区| 欧美激情在线观看视频免费| 亚洲精品伦理在线| 美国精品在线观看| 成人黄色777网| 欧美另类一区二区三区| 国产亚洲精品bt天堂精选| 亚洲视频一二区| 日本中文字幕一区二区视频| 国产999精品久久| 欧美日韩一区不卡| 国产日韩欧美电影| 亚洲成人久久影院| 顶级嫩模精品视频在线看| 欧美私人免费视频| 国产清纯白嫩初高生在线观看91 | 日韩亚洲欧美中文三级| 国产精品视频九色porn| 天天射综合影视| 成人免费高清视频| 欧美一级生活片| 国产精品福利影院| 久久精品久久久精品美女| 91理论电影在线观看| www国产成人| 日本视频免费一区| 99久精品国产| 国产天堂亚洲国产碰碰| 首页亚洲欧美制服丝腿| 成人av午夜电影| 久久日一线二线三线suv| 亚洲一区二区黄色| 99v久久综合狠狠综合久久| 欧美tickling网站挠脚心| 亚洲成人免费av| 91麻豆精东视频| 中文字幕欧美区| 久久成人18免费观看| 国产精品久久久久久久久果冻传媒 | 国产伦精品一区二区三区免费迷| 欧美亚洲国产一区在线观看网站| 中文幕一区二区三区久久蜜桃| 美国十次了思思久久精品导航| 欧美亚洲一区三区| 亚洲精品中文字幕乱码三区| 国产传媒久久文化传媒| 欧美成人vr18sexvr| 日本一区中文字幕 | 亚洲成a人在线观看| 91免费国产在线| 国产精品国产精品国产专区不蜜| 国产在线观看免费一区| 精品毛片乱码1区2区3区| 丝袜亚洲另类欧美综合| 欧美日韩一区二区欧美激情 | 亚洲国产精品一区二区www| av资源站一区| 中文字幕在线观看不卡| 成人a区在线观看| 国产精品成人网| www.在线欧美| 亚洲欧美视频一区| 一本久久a久久免费精品不卡| 国产精品久久久久久亚洲毛片| 成人激情免费网站| 国产精品免费av| 91一区二区三区在线播放| 1区2区3区精品视频| 色婷婷久久久综合中文字幕| 亚洲欧美日韩在线不卡| 91精品91久久久中77777| 一区二区三区欧美日| 欧美性大战久久久久久久| 亚洲第一福利一区| 亚洲少妇最新在线视频| 91福利视频网站| 日本亚洲欧美天堂免费| 精品国产乱码久久| 高清在线不卡av| 亚洲色图欧洲色图| 欧美三级电影网站| 免费看欧美美女黄的网站| 精品区一区二区| 不卡一区在线观看| 亚洲一区二区三区四区中文字幕| 欧美精品第1页| 国产一区二区福利| 综合分类小说区另类春色亚洲小说欧美| 91一区二区在线观看| 亚洲午夜视频在线| 精品剧情在线观看| 99久久99久久久精品齐齐| 视频一区国产视频| 国产日产欧产精品推荐色| 色网站国产精品| 六月丁香婷婷色狠狠久久| 国产精品网友自拍|