Merge pull request #1186 from geeknik/patch-49

Create upnp-device.yaml
patch-1
PD-Team 2021-04-02 17:56:40 +05:30 committed by GitHub
commit 2839e39582
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 33 additions and 0 deletions

33
iot/upnp-device.yaml Normal file
View File

@ -0,0 +1,33 @@
id: upnp-device-detect
info:
name: Detect Basic uPNP Device
author: geeknik
reference: https://www.upnp.org/specs/basic/UPnP-basic-Basic-v1-Device.pdf
severity: info
tags: upnp,iot
requests:
- method: GET
path:
- "{{BaseURL}}"
matchers-condition: and
matchers:
- type: status
status:
- 200
- type: word
words:
- "urn:schemas-upnp-org:device-1-0"
- "<deviceType>"
- "<modelName>"
part: body
condition: and
extractors:
- type: regex
name: model
regex:
- <modelName>.*</modelName>
- <modelNumber>.*</modelNumber>