Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upnp Pentest Toolkit Device(Error) #114

Open
steppangit opened this issue Jun 3, 2022 · 0 comments
Open

Upnp Pentest Toolkit Device(Error) #114

steppangit opened this issue Jun 3, 2022 · 0 comments

Comments

@steppangit
Copy link

steppangit commented Jun 3, 2022

I'm trying to run rssdp but can't seem to get my devicedescriptiondocument right.
Devices are not showing in Windows Explorer.
Upnp Pentest is able to discover the Device but is throwing errors.
RSSDPs Discovery Service is able to discover the service and retrieve the XML file.
Could that be an IIS issue or just plain xml error?

Upnp Pentest Toolkits log:

[2022.06.03 15:38:07.193] Async discovery starting with - SearchURI:'', ResolveNetworkInterface:'True', AddressFamily:'IPv4'
[2022.06.03 15:38:07.196] Setting address family
[2022.06.03 15:38:07.196] Creating callback
[2022.06.03 15:38:07.197] Search URI not specified using all devices
[2022.06.03 15:38:07.197] Creating find handle
[2022.06.03 15:38:07.200] Starting async find
[2022.06.03 15:38:07.201] Finished async discovery start
[2022.06.03 15:38:07.277] Async discovery device added: 'EinTest' ('UDN:uuid:4b29a349-7b1a-48d3-8656-005b55a7a147')
[2022.06.03 15:38:10.842] Adding services for device: 'EinTest', ServiceType:'(null)' ChildDevices:'False'
[2022.06.03 15:38:10.842] Scanning services
[2022.06.03 15:38:10.853] Finished scanning services
[2022.06.03 15:38:10.853] Finished adding services for device
[2022.06.03 15:38:10.858] Adding services for device: 'childDevice', ServiceType:'(null)' ChildDevices:'False'
[2022.06.03 15:38:10.858] Scanning services
[2022.06.03 15:38:10.884] Error occurred while scanning services: 'System.Runtime.InteropServices.COMException >>>
(0xC00CE556): Ausnahme von HRESULT: 0xC00CE556
[2022.06.03 15:38:10.884] bei System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, >IntPtr errorInfo)
[2022.06.03 15:38:10.884] bei >System.Runtime.InteropServices.CustomMarshalers.EnumeratorViewOfEnumVariant.MoveNext()
[2022.06.03 15:38:10.884] bei ManagedUPnP.Services.AddFrom(IUPnPDevice device, Guid interfaceGuid, String >serviceType, Boolean includingChildDevices)'
[2022.06.03 15:38:10.884] Finished scanning services
[2022.06.03 15:38:10.884] Finished adding services for device
[2022.06.03 15:38:16.257] Async discovery search completed

My Http Server which is IIS Express which is delivering this xml:

<?xml version="1.0" encoding="utf-8"?>
<root xmlns="urn:schemas-upnp-org:device-1-0">
  <specVersion>
    <major>1</major>
    <minor>0</minor>
  </specVersion>
  <URLBase>http://192.168.0.35:44317/</URLBase>
  <device>
    <deviceType>urn:schemas-upnp-org:device:Basic:1</deviceType>
    <friendlyName>EinTest</friendlyName>
    <manufacturer>Me</manufacturer>
    <modelDescription>My Custom something</modelDescription>
    <modelName>MyCustomDevice</modelName>
    <UDN>uuid:4b29a349-7b1a-48d3-8656-005b55a7a147</UDN>
    <deviceList>
      <device>
        <deviceType>urn:schemas-upnp-org:device:MediaRenderer:1</deviceType>
        <friendlyName>childDevice</friendlyName>
        <manufacturer>test</manufacturer>
        <modelName>test2345</modelName>
        <modelNumber>ftggfnbgfnf</modelNumber>
        <serialNumber>fgbfgnbngfn</serialNumber>
        <UDN>uuid:af603c01-ee8b-4c06-b0d5-ca73d75b7493</UDN>
        <serviceList>
          <service>
            <serviceType>urn:schemas-upnp-org:service:urn:schemas-upnp-org:service:RenderingControl:1:1</serviceType>
            <serviceId>urn:upnp-org:serviceId:0358b91a-e156-4ce1-b2d4-fcdc6a6f3787</serviceId>
            <SCPDURL>service.xml</SCPDURL>
            <controlURL>service.xml</controlURL>
            <eventSubURL />
          </service>
        </serviceList>
      </device>
    </deviceList>
  </device>
</root>

Thanks for your attention :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant