Coder Social home page Coder Social logo

Invalid data from readMemory about memoryjs HOT 9 CLOSED

rob-- avatar rob-- commented on May 27, 2024
Invalid data from readMemory

from memoryjs.

Comments (9)

Rob-- avatar Rob-- commented on May 27, 2024 3

Hey guys, I am interested on improving this library and adding a few features. After my exams are over I've got a busy summer so I can't promise anything, but I will try to find time to address some issues and also review the current PRs.

from memoryjs.

AxDSan avatar AxDSan commented on May 27, 2024 1

I have the same issue, I try to read from an address and sometimes I get random values, or I get 3, I think it's gotta be with the library, I have tried getting in contact with the author or the library #16 and I also have issues reading from memory, I'm pretty sure it's got to be with the library.

from memoryjs.

Chank1e avatar Chank1e commented on May 27, 2024 1

Oh, that's pretty cool.
I'm just learning C++ in university, so my knowledge is like "How to read file of numbers and do quicksort of them". But, as for me, possibility of reading memory in js is really cool.

Would be great if community will help Robert to do that work)

from memoryjs.

idkRage avatar idkRage commented on May 27, 2024 1

You will also get wrong memory value if u forget to add ".exe" to process name

from memoryjs.

AxDSan avatar AxDSan commented on May 27, 2024

Digging up a little further, I think that 3 that we get it's just an error code...

const processObject = memoryjs.openProcess(processName);
console.log(JSON.stringify(processObject, null, 3));

var addr = 0x7ff662ff8ff2;

/// <summary> Getting ready to read the memory.
/// <err> error message (empty if there were no errors). </err>
/// <value> the value stored at the given address in memory. </value>
/// <see>Documentation at: https://github.com/Rob--/memoryjs#readmemoryaddress-datatype-callback</see>
/// </summary>
memoryjs.readMemory(addr, 'int', (err, value)=> {
  if (err === "") {
    console.log(value);
  }else{
    console.log("ERROR:", err);
  }
});

So when error message is empty it means that everything was OK, but if error is NOT empty, then it means something went wrong.

from memoryjs.

Chank1e avatar Chank1e commented on May 27, 2024

Ye, but why sometimes it's invalid value?
I tried to find error in C++ code, but didn't find.

Do you think that we only need ptr function to get valid data?

P.S. I think, that author will never continue memoryjs. Need to fork and try to find an error.

from memoryjs.

AxDSan avatar AxDSan commented on May 27, 2024

Don't really know, but as recently as yesterday he commented on my issue, and he mentioned he could add a helper function to make the pointers addresses part to work, so that gets me to think that probably he is motivated to work on the issues, he also have expressed he is not a really well experienced C++ developer, and to be honest, me neither, in fact I was having a little bit of trouble regarding on how to properly read and general usage of the library.

from memoryjs.

AxDSan avatar AxDSan commented on May 27, 2024

Hey guys, I am interested on improving this library and adding a few features. After my exams are over I've got a busy summer so I can't promise anything, but I will try to find time to address some issues and also review the current PRs.

Awesome! 💃

from memoryjs.

p410n3 avatar p410n3 commented on May 27, 2024

You will also get wrong memory value if u forget to add ".exe" to process name

Well of course, you can attach to other modules as well. Technically

from memoryjs.

Related Issues (20)

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.