Relkci / NightOwl-WifiCamera-Config-wnip2

WIFI configuration and ONVIF information for Nightowl WNIP2 series cameras
7 stars 3 forks source link

ONVIF and WIFI Information NightOwl WNIP2 Camera Series

Background

After searching to find a way to use the WNIP2 Wi-Fi IP Cameras from NightOwl without having to use the packaged WNIP2 NVR (which, is the weakest part of the packaged solution NightOwl sells at discount box stores like Sams Club and Costco) I was looking at trashing the cameras and buying reputable standalone IP cameras that would support ONVIF and BlueIris, etc.

The bundled NVR has some cool features like AI and 2-way audio, but ultimately its just not powerful enough to keep up. If you record 100%, the device doesn't has processing to keep up with recording and displaying realtime video. If you use the object-triggered recording and have an active area with frequent recordings, you will end up with so many videos that it becomes effectively impossble to look at previous captures. The NVR includes a 1TB spinning disk HDD which is fully encrypted. Asking the NVR to play a video while also recording live video is basicaly impossible, as is queriying trigger events more than a few hours old. The only real way to use the NVR to retrieve old data is to take the cameras offline, the NVR offline, and plugin a USB, login to the NVR via a TV and keyboard, and manually backup the recordings. It will take days to decrypt the entire drive and load onto a USB. The NVR hardware is just not powerful enough enoughto monitor and record 8 channels. It does work well for live-video though-- if thats all you need.

Don't e-waste.

To prevent these really decent cameras from becoming e-waste. Do note that this method effectively removes the cameras from any control of NightOwl. You will ultimately loose access to the cameras on the mobile app and desktop software. This method however also makes it possible to access the cameras as though they were a traditional Wireless RSTP ONVIF security camera and can be added to your custom NVR solution like BlueIris or even just VLC.

Specfics:

Specific camera model this is about: WNIP-2LTA-BS. It should apply for any of the WNIP2 series bundled WIFI and NVR systems. The same-series stand-alone cameras support native ONVIF. Only the cameras that came bundled with the NVR are locked-down to the NVR. The below bypasses the lock on the walled-garden.

Here is what I learned:

Its a bundled deal, for better or worse… typically, worse.

The hack.

If you want to use these cameras without the paired NVR, you'll have some work to do to capture network traffic and to design a network that can live without the paired NVR.

Prepare the cameras

Install software.

Generate the config multicast packet

Check the packet capture

The capture will appear similar to below

Client-ID:XXXXXXXXXXXXXXXXXXX
Content-Type:application/json
X-Session-Id:1
X-Content-Checksum:#######REDACTED#####
Content-Length:1019

{
"Ver" : "1.1",
"Nonce" :  "", 
"Device-ID" : "", 
"Device-Model" : "WNVR-WNIP2",
"Device-Type" : "WNVR-WNIP2",
"Esee-ID" : "#######REDACTED#####",
"Software-Version" : "WNVR-WNIP2_#######REDACTED#####", 
"Wired" : [
{
"DHCP" : true,
"Connected" : true,
"IP" : "#######REDACTED#####",
"Netmask" : "255.255.255.0",
"Gateway" : "#######REDACTED#####",
"MAC" : "#######REDACTED#####"
}
],
"Wireless" : [
{
"DHCP" : false,
"Connected" : true,
"IP" : "172.#######REDACTED#####.1",
"Netmask" : "255.255.255.0",
"Gateway" : "#######REDACTED#####",
"MAC" : "#######REDACTED#####",
"Mode" : "accessPoint",
"ApMode" : {
"Channel": 11,
"Essid" : "NOPWNVR-#######REDACTED#####",
"Psk" : "#######REDACTED#####"
}
}
],
"Channel-Info" : [
{"id": 0,"Stream-Cnt": 2},
{"id": 1,"Stream-Cnt": 2},
{"id": 2,"Stream-Cnt": 2},
{"id": 3,"Stream-Cnt": 2},
{"id": 4,"Stream-Cnt": 2},
{"id": 5,"Stream-Cnt": 2},
{"id": 6,"Stream-Cnt": 2},
{"id": 7,"Stream-Cnt": 2},
{"id": 8,"Stream-Cnt": 2},
{"id": 9,"Stream-Cnt": 2}
],
"Channel-Cnt": 10,
"Capabilities" : {
"Http-Port" : 80,
"MaxHardDiskDrivers" : 1,
"MaxTFCards" : 0
}}

The details

The captured packet will show the NVR's configuration and the configuration that the cameras use to connect to the NVR via its dedicated SSID. The SSID and PSK are presented in plaintext in the packet.

Next Steps - Network Design

Alternative configuration

Cameras capability and OnVIF

Camera services

The cameras listen on a handful of ports. There is awkward HTTP front end. Clearly never meant to be seen by consumers.

image

Other services

Discovered open port 554/tcp on 172.###REDACTED
Discovered open port 443/tcp on 172.###REDACTED
Discovered open port 843/tcp on 172.###REDACTED
Discovered open port 1300/tcp on 172.###REDACTED
Discovered open port 6060/tcp on 172.###REDACTED
Discovered open port 7000/tcp on 172.###REDACTED
Discovered open port 8089/tcp on 172.###REDACTED
Discovered open port 8699/tcp on 172.###REDACTED
You can use ONVIF Device Manager to further inspect the cameras. image

Just works.

As far as I can tell, only the WinNVR device ever reached out to the internet for "zero-config" configuration and punching holes in your firewall. Once the cameras are configured, the configuration will survive reboots, even when the WinNVR device is not plugged in.

Future work.

Ideally I'd rather have taken the original configuration broadcast packet and manipulated it to be a sane configuration that we would select to match our network preference. Having a hidden SSID is fine, but it still leaks the name and will self-identify that its a nightowl camera network. Eventually I might get around to building a configuration tool that will natively work with the cameras. But... I've got the cameras working now without the nonsense. Today is not that day.

Could Night Owl have done better?

Anyway, now you all know. One of the BlueIris forums will likely pick up on this and take it from where I left off. Sad to see that these cameras are going to end up in dumpsters because the developer made them so difficult to use outside of their walled-garden.

TOS?

Night owl has a rediculous TOS. They try to make you think you don't own the device you bought. Anyway, I'm not saying I did any of this. This is all heresy.