An open API service indexing awesome lists of open source software.

https://github.com/4thel00z/upnpctl

Upnp utility for device discovery and scan (+ export as json)
https://github.com/4thel00z/upnpctl

httpu scan scan-tool scanner upnp upnp-listener

Last synced: 11 months ago
JSON representation

Upnp utility for device discovery and scan (+ export as json)

Awesome Lists containing this project

README

          

# upnpctl

Usage:

```
_..._
.-'_..._''. .---.
_________ _...._ _..._ _________ _...._ .' .' '.\ | |
\ |.' '-. .' '. \ |.' '-. / .' | |
\ .'''''. '. . .-. . \ .'''''. '. . ' .| | |
\ | \ \| ' ' | \ | \ \| | .' |_ | |
_ _ | | | || | | | | | | || | .' || |
| ' / | | \ / . | | | | | \ / . . ' '--. .-'| |
.' | .' | | |\''-.-' .' | | | | | |\''-.-' .' \ '. .| | | |
/ | / | | | '-....-'' | | | | | | '-....-'' '. '._____.-'/| | | |
| ''. | .' '. | | | | .' '. '-.______ / | '.''---'
' .'| '/'-----------' | | | |'-----------' ' | /
'-' '--' '--' '--' ''-'

Usage:
upnpctl [flags]
upnpctl [command]

Available Commands:
help Help about any command
monitor Monitor HTTPU packages and print them on stdout
scan Scan the network for possible Devices and persist them

Flags:
-h, --help help for upnpctl

Use "upnpctl [command] --help" for more information about a command.
```

## Example Usages

### Scanning

Save a scan of your local network to a json file:

```
upnpctl scan > /tmp/scan.json
```

#### Usage:

```
Scan the network for possible Devices and persist them

Usage:
upnpctl scan [flags]

Flags:
-h, --help help for scan
-j, --json --json (default true)
-n, --num int --num (default 10)
-w, --wait int --wait (default 30)
```

### Monitor

Monitor the device discovery (or other httpu packages):

```
upnpctl monitor
```

#### Usage:
```
Monitor HTTPU packages and print them on stdout

Usage:
upnpctl monitor [flags]

Flags:
-a, --addr string --addr : (default "239.255.255.250:1900")
-h, --help help for monitor
-i, --iface string --iface
-m, --multicast --multicast (default true)
-p, --print-body --print-body (doesn't really make sense for ssdp discovery)
```