Code Monkey home page Code Monkey logo

Comments (6)

buschhardt avatar buschhardt commented on August 27, 2024 1

It's running fine.

from node-tplink-api.

hertzg avatar hertzg commented on August 27, 2024

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.

from node-tplink-api.

buschhardt avatar buschhardt commented on August 27, 2024

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

from node-tplink-api.

hertzg avatar hertzg commented on August 27, 2024

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());

from node-tplink-api.

buschhardt avatar buschhardt commented on August 27, 2024

Of course:

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

from node-tplink-api.

hertzg avatar hertzg commented on August 27, 2024

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

from node-tplink-api.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.