4 ms·
Hacking Reolink cameras for fun and profit (2020)
- moritonal 4y agoLove these blogs where someone casually demonstrates skills in roughly 11 different areas (from Soldering, C++ plugin writing to clear blog writing) all coming together to accomplish something.
- Mwisho 4y agoYes indeed, it's very interesting to read, but he also has a great sense of humor that makes it even better to read.
- abolaji999 4y agoCool
- Frotag 4y agoONVIF support is surprisingly spotty on low-end (<$100) IP cameras, especially wifi ones. Even if a camera claims to be ONVIF compatible, you should really check for a certification at [0]. Even for RTSP, there's often something stupid like the camera implementing 90% of the protocol except it never responds to OPTIONS requests. And fun fact, VLC no longer supports RTSP on Debian-based distros due to licensing issues [1]. [0] - https://www.onvif.org/conformant-products https://www.onvif.org/conformant-products [1] - https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=981439 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=981439
- sschueller 4y agoRTSP completely lacking on battery powered devices which they don't clearly state anywhere. In fact the battery/solar powered units are practically useless as there is a huge delay in footage after detection so you will miss people/events.
- brk 4y agoStreaming video is fairly power intensive, the typical battery powered camera could not sustain more than a few hours of streaming without resorting to a prohibitively large battery pack.
- thrtythreeforty 4y agoAuthor here! Some very smart contributors have helped decode another layer of the Baichuan protocol - I actually missed the "media wrapper" because it happened to work without removing those headers from the video stream - as well as the UDP protocol variant, so it is technically possible to stream from battery cams. It does drain the battery unless they're externally powered.
- kotaKat 4y agoThere was an ONVIF/RTSP battery camera I wanted, but nobody seems to have on the second-hand market... Netgear actually sold a rebranded/reflashed Arlo system as the FlexPower line with a special base station and reflashed Arlo cameras. The base did the magic that let the connected wireless Arlos act as ONVIF cameras in a DVR.
- franga2000 4y agoOne of the worst cases of this that I've seen recently is TP-Link's Tapo, which does seem to support ONVIF to a usable extent, but it is impossible to set up the camera or move it to a different wifi network without using their stupid mobile app that requires a cloud account. It works fine offline after that.
- moffkalast 4y agoHacking Reolink cameras, or Charlie and the scramble factory
- Tijdreiziger 4y agoFor those not familiar with Reolink: they're a Chinese manufacturer of relatively affordable IP cameras. They're often recommended on the internet for SMB's who need decent camera's but don't want to shell out for Hikvision or Axis. Example: https://youtu.be/wAkV_fWOMFU https://youtu.be/wAkV_fWOMFU
- trollied 4y agoI have one. They’re decent quality. The iOS app is ok, but the web app is terrible. Hooks up over PoE (I have a Ubiquiti PoE setup), records to local SD card. You can also buy a box to record to as a secondary, or roll your own with various open source options.
- brk 4y ago"Shell out for Hikvision"? Hikvision has generally been low cost equipment with decent performance. The main issue with Hikvision is that they are funded and controlled by the Chinese government, and have had countless major vulnerabilities over the years. Then there is Dahua, which is basically Hikvision Junior. Reolink is somewhat in the middle, in the past they have OEM'd products from Dahua, and others. It can be difficult to know who actually manufactures a lot of the Chinese surveillance cameras, as the companies often go to great lengths to obscure the details.
- pablodavila 4y agoIs there a manufacturer you prefer over others in the budget segment?
- brk 4y agoHanwha A Series cameras. They are relatively new may be hard to find online yet.
- Tijdreiziger 4y agoDidn't know about Hanwha, thanks. Looks like the A series isn't even on their European website yet though :(
- caust1c 4y agoIf you like this article, then you will also enjoy this DEFCON talk on the same topic: Abusing P2P to Hack 3 Million Cameras. https://www.youtube.com/watch?v=Z_gKEF76oMM https://www.youtube.com/watch?v=Z_gKEF76oMM
- z3t4 4y agoReolink is one of few brands that don't force you to use "the cloud". They allow you to store the data/stream where ever you want. Yet they have all the advantages of the other brands, for example a free Android app, and most importantly Relink has a web interface aswell - built into the camera.
- joshstrange 4y agoThis is why I moved to a Reolink NVR after years on ZoneMinder. I didn't want or need the cloud and I wanted constant recording. My Reolink NVR has been great so far paired with PoE cameras. Also I'm able to get a rtsp feed and still image for each camera from the NVR itself to do more processing on if I want to (ie. Frigate).
- giobox 4y agoIf the crap security on these cheap cams is a concern, one thing that is pretty easy to do if you buy a "managed switch" or similar is put the crappy cheap IP cams on their own private VLAN with no internet access, firewalled from all the other VLANs on your home LAN, perhaps with a few exceptions for NVRs or devices who view the feed locally at home. I just assume these devices are broken and compromised from moment I plug them in, because inevitably they always are. Cameras can't be accessed from your LAN, cameras can't access your LAN and they can't phone home easily. They just sit and feed the NVR with video content, offline. I don't even connect them to the internet for firmware updates unless there is some show stopper bug preventing them working as plain ole cams - they are just dumb RTSP endpoints.
- Havoc 4y agoNeat writeup! Vaguely related - recently discovered that old iphones can be repurposed to serve rtsp with app heriscope hd. Works in a pretty idiot proof manner, though amount of heat generated is concerning. Still interesting though given camera quality on old ifruits is pretty good still
- bitwrangler 4y agoI really enjoyed reading this, especially the little branches off into other useful topics and tools. Here are my notes as a summary: Good blog write up about reversing Reolink B800 IP camera end result: https://github.com/thirtythreeforty/neolink https://github.com/thirtythreeforty/neolink tools used: * wireshark & dissector in Lua https://mika-s.github.io/wireshark/lua/dissector/2017/11/04/creating-a-wireshark-dissector-in-lua-1.html https://mika-s.github.io/wireshark/lua/dissector/2017/11/04/... * binwalk * visualize the BIN for blank space, code, etc. https://binvis.io/#/ https://binvis.io/#/ * buildroot to make custom: gdbserver, busybox with all the fixin’s, and strace * disassemble / decompile MIPS with https://ghidra-sre.org/ https://ghidra-sre.org/ * using tcpsvd as tcp wrapper for FTPD in custom image * quick setup env with "expect" script: https://www.thirtythreeforty.net/posts/2020/05/hacking-reolink-cameras-for-fun-and-profit/start-debug.exp https://www.thirtythreeforty.net/posts/2020/05/hacking-reoli... * using gdb Dynamic Print commands to target certain functions. The dynamic printf command dprintf combines a breakpoint with formatted printing of your program’s data to give you the effect of inserting printf calls into your program on-the-fly, without having to recompile it. https://doc.ecoscentric.com/gnutools/doc/gdb/Dynamic-Printf.html https://doc.ecoscentric.com/gnutools/doc/gdb/Dynamic-Printf.... * busybox has a watchdog minder, used like: watchdog /dev/watchdog * background info on Baichuan protocol * wrote new client software in Rust. https://github.com/thirtythreeforty/neolink/blob/master/src/main.rs https://github.com/thirtythreeforty/neolink/blob/master/src/... * Gstreamer with RTSP server (in Rust!) * using it with Blue Iris nvr software
- reiichiroh 4y agoAnyone know how the Verkada stuff compares? They advertise on Facebook heavily
- 1MachineElf 4y agoI'm happy for Neolink. Discovered it on the Reolink subreddit. Like OP, I wound up with one of these neutered Reolink cameras. I had purchased a bunch of normal ONVIF/RTSP ones, but one box contained a D800. It also had a slightly damaged mounting plate with dried silicon caulk residue on it. Seems I was a victim of Amazon return fraud, where someone sent them back the D800 instead of an RLC-822A. I was already past the return window and some couldn't even raise an issue about it. Now I'm thinking I could have saved a lot of money by simply buying their cheaper "dumb" cameras.
- stevenhubertron 4y agoI have been using Neolink on my PI4 to send 4 camera streams to Frigate. It works great. Thank you so much for all the work here to reverse engineer this for people like me..