Miranda can discover UPnP hosts either passively or actively, and all of a host’s reported devices types, services, actions and variables can be enumerated with a single command. Service state variables are automatically correlated with their associated actions, and identified as either input or output variables for each action. Miranda stores all host information for all hosts in a single data structure, and allows you to directly traverse that data structure and view all of its contents. You should also know about UPNP.


Universal Plug and Play (UPnP) is a set of networking protocols that permits networked devices, such as personal computers, printers, Internet gateways, Wi-Fi access points and mobile devices to seamlessly discover each other’s presence on the network and establish functional network services for data sharing, communications, and entertainment. UPnP is intended primarily for residential networks without enterprise class devices.


open terminal type Miranda and hit enter

cyborg@cyborg:~$ sudo miranda
[sudo] password for cyborg: 

1. msearch – This command is used to actively locate UPNP hosts.

upnp> msearch

Entering discovery mode for 'upnp:rootdevice', Ctl+C to stop...

SSDP reply message from
XML file is located at
Device is running Unknown/0.0 UPnP/1.0 Conexant-EmWeb/R6_1_0

^CDiscover mode halted...

2. host list -This command is used to shows a list of all discovered UPnP hosts and each host’s index number.

upnp> host list


3. host get 0 – this command is used to  get all of the UPnP information advertised by the host with the index number of 0.

upnp> host get 0

Requesting device and service info for (this could take a few seconds)...

Host data enumeration complete!


4. host info 0 – This command allows us to traverse Miranda’s internal host data structure and view all of the information that it stores.

upnp> host info 0

xmlFile :
name :
proto : http://
serverType : Unknown/0.0 UPnP/1.0 Conexant-EmWeb/R6_1_0
upnpServer : Unknown/0.0 UPnP/1.0 Conexant-EmWeb/R6_1_0
dataComplete : True
deviceList : {}

5.host info 0 deviceList – This command is used to show the device name which is found on host.

upnp> host info 0 devicelist
Sparkdevice : {}

6. host summary 0 – There can be a lot of data in this structure, so if you just want to see a summary of the data for a particular host, run the ‘host summary’ command.

upnp> host summary 0

XML File:

7.save info 0 – This command is used to save it to file and view it in a text editor instead, this can be done with the ‘save info 0′ command.

we can also save all of the data that Miranda has stored about all of the hosts that have been discovered so that we can later load it back into Miranda during a new session.


upnp> save info 0 filename

Cannot show all host info because we don't have it all yet. Try running 'host info 0' first...

Host info for '' saved to 'info_filename.mir'

upnp> exit


Leave a reply


We're are building as a community and a team. Be a part of it.


©2017 Ztrela Knowledge Solutions Pvt. Ltd

Log in with your credentials

Forgot your details?