Script coap-resources

Script types: portrule
Categories: safe, discovery
Download: https://svn.nmap.org/nmap/scripts/coap-resources.nse

Script Summary

Dumps list of available resources from CoAP endpoints.

This script establishes a connection to a CoAP endpoint and performs a GET request on a resource. The default resource for our request is <code>/.well-known/core</core>, which should contain a list of resources provided by the endpoint.

For additional information:

Script Arguments

coap-resources.uri

URI to request via the GET method, /.well-known/core by default.

Example Usage

nmap -p U:5683 -sU --script coap-resources <target>

Script Output

PORT     STATE SERVICE REASON
5683/udp open  coap    udp-response ttl 36
| coap-resources:
|   /large:
|     rt: block
|     sz: 1280
|     title: Large resource
|   /large-update:
|     ct: 0
|     rt: block
|     sz: 55
|     title: Large resource that can be updated using PUT method
|   /link1:
|     if: If1
|     rt: Type1 Type2
|_    title: Link test resource

Requires


Author:

  • Mak Kolybabi <mak@kolybabi.com>

License: Same as Nmap--See https://nmap.org/book/man-legal.html