Closed easrng closed 2 years ago
I never figured out the API key, you should just skip all the checks (used to be 3, now there are 4 i think) using a NOP sled or similar. And don't forget to init the variable that will hold the result of the checks to true
instead of false
.
Alright, got it working!!! NOPing out the checks was enough, you don't need to change a variable anymore. Also, wow ghidra is slowwwwwww.
Okay, you only need to set the variable if you don't have the API key.
@easrng could you please share how you managed to get the API key?
There is a function google_apis::GetSodaAPIKey()
included from google_apis/google_api_keys.h
on which you could set a breakpoint if you run chrome in a debugger, for starters. @brookhong If you need this to get soda working I would highly recommend the patch-the-lib route though, since there are other checks besides this one in place. Omitting the other checks basically gives you the omit api key solution for free.
@easrng could you please share how you managed to get the API key?
debugged chrome and put a breakpoint where it was setting up libsoda
I managed to get the API key by debugging Chrome and putting a breakpoint on the soda creation call (it starts with ce04 and ends with b6cb, right?), are there other binary modifications needed?
Here's the output I get from running
ecasound -f:16,1,16000 -i alsa -o:stdout 2>/dev/null | ./gasr.py
: