Upnp

来自Jack's Lab
2017年2月8日 (三) 17:54Comcat (讨论 | 贡献)的版本

跳转到: 导航, 搜索

1 Overview

The main goal of UPnP is to make adding network devices and networked programs to a network as easy as it is to plug in a piece of hardware into a PC (or even easier, as that is often error prone). The devices and programs find out about the network setup and other networked devices and programs through discovery and advertisements of services and configure themselves accordingly. In short: UPnP is a framework to build networked applications.



2 Hacking

$ sudo tcpdump -vv -A -s 0 -i wlan0 udp port 1900 and host 239.255.255.250
tcpdump: listening on wlan0, link-type EN10MB (Ethernet), capture size 262144 bytes
17:50:46.507671 IP (tos 0x0, ttl 1, id 18834, offset 0, flags [none], proto UDP (17), length 201)
    localhost.57277 > 239.255.255.250.1900: [udp sum ok] UDP, length 173
E...I..........;.......l..&1M-SEARCH * HTTP/1.1
HOST: 239.255.255.250:1900
MAN: "ssdp:discover"
MX: 1
ST: urn:dial-multiscreen-org:service:dial:1
USER-AGENT: Google Chrome/56.0.2924.87 Windows


17:50:58.181673 IP (tos 0x0, ttl 1, id 22084, offset 0, flags [none], proto UDP (17), length 202)
    localhost.52827 > 239.255.255.250.1900: [udp sum ok] UDP, length 174
E...VD.........A.....[.l....M-SEARCH * HTTP/1.1
HOST: 239.255.255.250:1900
MAN: "ssdp:discover"
MX: 1
ST: urn:dial-multiscreen-org:service:dial:1
USER-AGENT: Google Chrome/55.0.2883.95 Mac OS X

17:49:42.200862 IP (tos 0x0, ttl 4, id 64314, offset 0, flags [DF], proto UDP (17), length 150)
    localhost.50000 > 239.255.255.250.1900: [udp sum ok] UDP, length 122
E....:@....<...=.....P.l..b:M-SEARCH * HTTP/1.1
HOST: 239.255.255.250:1900
MAN: "ssdp:discover"
MX: 15
ST: urn:schemas-upnp-org:device:basic:1


17:49:42.414950 IP (tos 0x0, ttl 4, id 64325, offset 0, flags [DF], proto UDP (17), length 135)
    localhost.50000 > 239.255.255.250.1900: [udp sum ok] UDP, length 107
E....E@....@...=.....P.l.s..M-SEARCH * HTTP/1.1
HOST: 239.255.255.250:1900
MAN: "ssdp:discover"
MX: 15
ST: urn:Belkin:device:**



3 Reference

















个人工具
名字空间

变换
操作
导航
工具箱