Open ebouda33 opened 7 years ago
Traceback (most recent call last):
File "/usr/local/bin/acdcli", line 9, in
how you do it to work?
???!!!!
You need a token from the Amazon Drive app. The old acd_cli token won't work.
The procedure for obtaining the token on macOS is essentially the same as Windows, but you will need a different tool to dump the memory of the Amazon Drive process. I just tested this with gcore and it worked well.
Whats the trick? Even after up- and downloading files to acd with the native windows app the token could not be found in the memory dump.
I got it working with the refresh token generated by another whitelisted acd app, not sure if they will be banned soon as well.
@chrisgavin, thanks for putting this together. I'm using the Windows app, and I've synced a folder, and using either HxD or NotePad++ with the hex editor plugin I can't find "Atnr|" anywhere in the dump file. Am I doing something wrong?
It worked pretty reliably for me, but maybe it doesn't load the refresh token until it needs to refresh the access token (after an hour at most). Maybe try leaving it running for an hour before doing the memory dump.
The alternative option if the memory dump option is not working is to use Fiddler to intercept the traffic. You just have to enable HTTPS interception and install the certificate, then wait for a request to /auth/token
. This will contain your refresh token in a header.
Awesome, thanks Chris.
Working perfectly using Fiddler method. :)
It worked great for me on macOS using gcore as mentioned by @chrisgavin as well as Hex Fiend:
ps ax | grep "/Amazon Drive.app/Contents/MacOS/Amazon Drive"
sudo gcore -s -v -o amazondrive.dump <PID>
amazondrive.dump
file in Hex Fiend and do a text search for Atnr|
It is like chris stated - the app needs to run some hours (or exactly until first refresh was made), until the token is retrieved from amazon.
Thx for the fork!
Hi All, Just for reference. I found "refresh token" in request body~~,not in header~
Sorry, but under mac os i don't arrive to take the refresh token i ve you some solution ?
i ll try the old refresh that begin Atzr but doesn t work.