The basic functionality of the application is as follows:
- Application sends out a UDP broadcast on port 5978
- Camera sees the broadcast on port 5978 and inspects the payload – if it sees that the initial part of the payload contains "FF FF FF FF FF FF" it responds (UDP broadcast port 5978) with an encoded payload with its own MAC address
- Application retrieves the camera's response and creates another UDP broadcast but this time it sets the payload to contain the target camera's MAC address, this encoded value contains the command to send over the password
- Camera sees the broadcast on port 5978 and checks that it is meant for it by inspecting the MAC address that has been specified in the payload, it responds with an encoded payload that contains its password (base64 encoded)
After spending some time with the application in a debugger I found what looked like it was responsible for the decoding of the encoded values that are passed:
super exciting screen shot. |
Translated into english: the application first uses a lookup table to translate every byte in the input string, to do this it uses the value of the current byte as an offset into the table. After it is done with "stage1" it traverses the translated input buffer a dword at a time and does some bit shifting and addition to fully decode the value. The following roughly shows the "stage2" routine:
(Dword[0] << 2) + (Dword[1] >> 4) = unencoded byte 1
(Dword[1] << 4) + (Dword[2] >> 2) = unencoded byte 2
(Dword[2] << 6) + Dword[3] = unencoded byte 3
I then confirmed that this routine worked on an "encoded" value that went over the wire from the application to the camera. After confirming the encoding scheme worked, I recreated the network transaction the application does with the camera to create a stand alone script that will retrieve the password from a camera that is on the same lan as the "attacker". The script can be found here, thanks to Jason Doyle for the original finding (@jasond0yle ).
More info
- Hack And Tools
- Hacking Tools For Windows 7
- Hack Tools
- Pentest Tools Port Scanner
- Hack Tools For Pc
- Hacker Tools For Mac
- Hacking Tools Hardware
- Hacking Tools For Games
- Kik Hack Tools
- Underground Hacker Sites
- Pentest Tools Linux
- Pentest Tools Apk
- Tools For Hacker
- Best Hacking Tools 2020
- Easy Hack Tools
- Pentest Tools Online
- Hackers Toolbox
- Hacking Tools For Windows Free Download
- Hacker Tools 2020
- Hacker Security Tools
- Best Pentesting Tools 2018
- Best Pentesting Tools 2018
- Hacker Tools Github
- Pentest Tools Android
- New Hacker Tools
- Nsa Hack Tools
- Hacking Tools Kit
- Pentest Tools For Mac
- Hackers Toolbox
- Tools 4 Hack
- Physical Pentest Tools
- Hack Website Online Tool
- Pentest Tools For Windows
- Hacking Tools For Mac
- Pentest Tools Review
- Hack Tools Pc
- Black Hat Hacker Tools
- Hacking Apps
- Pentest Tools Subdomain
- Hackers Toolbox
- World No 1 Hacker Software
- Pentest Tools Online
- Hacker Tools List
- Black Hat Hacker Tools
- How To Hack
- Pentest Tools Alternative
- Pentest Tools Linux
- Hack Tools
- Hacker Tools Mac
- Hack Tools
- Hacker Tools For Ios
- Android Hack Tools Github
- Hacking Tools Usb
- Pentest Tools Alternative
- Pentest Tools Windows
- Hacking App
- Best Pentesting Tools 2018
- Best Hacking Tools 2019
- Hack Tools For Pc
- Tools 4 Hack
- Pentest Tools For Android
- Termux Hacking Tools 2019
- Pentest Tools Free
- World No 1 Hacker Software
- World No 1 Hacker Software
- Pentest Tools Nmap
- Hacker Tools Software
- Hak5 Tools
- Pentest Tools For Mac
- Pentest Tools
- New Hack Tools
- Pentest Box Tools Download
- Tools For Hacker
- Hack Tools
- Hacker Tools Github
- Hacking Tools For Windows 7
- Pentest Tools Website
- Black Hat Hacker Tools
- Hacking Tools Free Download
- Hacking Tools And Software
- Hack Tools Mac
- Beginner Hacker Tools
- Hacker Tools Mac
- Hackers Toolbox
- Physical Pentest Tools
- Tools 4 Hack
- Nsa Hacker Tools
- Hacker Tools Software
- Hacking Tools Pc
- Usb Pentest Tools
- Hacker Tools Free
- Hacker Tools Hardware
- Pentest Tools Windows
- Hacker Tools List
- New Hacker Tools
- Pentest Tools Github
- Pentest Tools Website Vulnerability
- Hacker Tools Online
- Pentest Tools Bluekeep
- Pentest Tools Bluekeep
- Hack Tools 2019
- Hack Tools For Mac
- Hacker Tools Hardware
- Hacking Tools 2019
- Hacking Tools Hardware
- Pentest Tools For Ubuntu
- Hack Tools Mac
- Physical Pentest Tools
- Best Hacking Tools 2020
- Hacking App
- Hackers Toolbox
- Pentest Tools Alternative
- How To Install Pentest Tools In Ubuntu
- Hack Tools For Ubuntu
- Pentest Tools Port Scanner
- Hacker Tools List
- Github Hacking Tools
- Hack Tools Online
- Pentest Tools Github
- Hak5 Tools
- Hacker Security Tools
- Hackers Toolbox
- Hacking Tools Github
- Hacker Tools Hardware
- Hacking Tools Github
- Hack Tools Pc
- Hacking Tools 2019
- Hack Tools For Pc
- Pentest Reporting Tools
- Hack Tools For Games
- Pentest Box Tools Download
- Hackrf Tools
- Hacker Tools Hardware
- Hacking Tools Software
- Hacker Tool Kit
- Easy Hack Tools
No comments:
Post a Comment