Hacker News new | ask | show | jobs
by saidinesh5 16 days ago
Yesterday night, i reverse engineered the cloud connection plugin to my cctv camera in about 2 hours with Gemini.

Started off with me searching for what Chinese OEM made the product. Then tried out existing GitHub projects to see if it works but they were failing.

Spent 15 minutes to write a script that started their desktop software on a different network namespace and ran tcpdump in it. Captured exactly only the things i needed without any noise. Turned out it was using a different server url and credentials than the GitHub projects. Opened Ghidra to inspect the dlls that matched the strings i was looking for.

After that, I got lazy and handed over the task to Gemini to find the username and key they use to authenticate with the servers. It took about 30 minutes or an hour. A lot of it was me changing models because the llm servers were busy. It simply wrote a little script that ran through various strings it fetched from the binary to see if it can generate the authentication credentials.

Now my Home Assistant will be detecting if my car is parked in the parking lot or not. Life is good.

1 comments

How did you manage to coax Gemini to cough up the creds? Whenever I touch anything that requires reversing auth I get stone walled. Close to useless for me.
Last time I ran into quota limits very quickly when debloating my tv... I think it's just luck this time though. Debloating my TV took slightly longer and i ran out of tokens.

This time I manually filtered all that data it needs to search through.. like instead of going through the full tcpdump logs, i had a 50 line file with only the data it needs, stripped out of all headers. I specifically told it to only read these two dlls. And to understand the login protocol "only read through these 2 source files".

Plus half the research i did , i was just using the free search in Google instead of antigravity this time..