Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TP-Link Archer VR900v #1

Closed
buschhardt opened this issue May 19, 2023 · 6 comments
Closed

TP-Link Archer VR900v #1

buschhardt opened this issue May 19, 2023 · 6 comments

Comments

@buschhardt
Copy link

with a little modify the 'fetchPublicKey.js' I can run your script. Thank You
But You wrote in Readme
"You can login into your router and hook into data encrypt and decrypt methods with the following snippet."
How can I do this?

Greetings Thomas

@hertzg
Copy link
Owner

hertzg commented May 22, 2023

with a little modify the 'fetchPublicKey.js' I can run your script.

What modification did you need to do?

"You can login into your router and hook into data encrypt and decrypt methods with the following snippet."

Login with a browser and copy & paste the code snippet into the console.

@buschhardt
Copy link
Author

Oh cool it works. Here is my small modification:

const [userSettings, eeLine, nnLine, seqLine, ] = js.split("\n").map((s) => s.trim());

and here is my info-Line:

info: {"authTimes":0,"forbidTime":0,"modelName":"Archer VR900v","modelDesc":"AC1900 WLAN Telefon DSL Router","locale_language":"de_DE","hasMobile":"1"}

Thank you - Danke

@hertzg
Copy link
Owner

hertzg commented May 23, 2023

You are welcome - Bitte,

Seems like the output from POST cgi/getParm call differs from TL-MR6400.
Could you share the full output please, masking the values of ee & nn?

  const res = await fetch(new URL("cgi/getParm", baseUrl).href, {
    method: "POST",
    headers: { Referer: new URL("/", baseUrl).href },
  });

  console.log(await res.text());

@buschhardt
Copy link
Author

buschhardt commented May 26, 2023

Of course:

var userSetting=1;
var ee="010XXX";
var nn="A13E598CFXXXEC3FB8D9812C5581F2EDBAA939E8D912F9F75F15779CE0D67CA5479974AA417DC80EE087AA7305C7F512187ADDF41EDC636A6AE0E6XXXXXXXX";
var seq="657450562";
$.ret=0;

@hertzg
Copy link
Owner

hertzg commented May 27, 2023

Should be fixed by #2 , can you install the latest (v0.0.5) and try without your patches?

@hertzg hertzg closed this as completed May 27, 2023
@buschhardt
Copy link
Author

It's running fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants