Coder Social home page Coder Social logo

freeze value about memoryjs HOT 5 OPEN

rob-- avatar rob-- commented on May 28, 2024
freeze value

from memoryjs.

Comments (5)

Rob-- avatar Rob-- commented on May 28, 2024

It doesn't seem like there is any Windows API that allows you to freeze a specific address, the only way seems to be infinite looping and writing a custom value to pseudo-freeze.

After taking a quick look at Cheat Engine's source code it seems they are applying a similar technique. So I believe this is the only way.

from memoryjs.

xetrics avatar xetrics commented on May 28, 2024

You could try setting it to PAGE_WRITECOPY with VirtualProtect, but that depends on how your target process will handle the access error it will throw when it tries to write it. Maybe hook their SEH handler?

from memoryjs.

Rob-- avatar Rob-- commented on May 28, 2024

@xetrics That seems pretty hacky which might be why it seems Cheat Engine just takes the infinite loop approach? When you think of why someone would want to freeze a value, I don't think just infinitely overwriting the value would ever not be sufficient. Would disabling write access even lead to any violations or errors thrown though? The documentation for PAGE_WRITECOPY says An attempt to write to a committed copy-on-write page results in a private copy of the page being made for the process.. I'm not sure what this means in practicality though without just testing it, so a process just keeps writing to a write protected area and copies of the page just keep being created...?

from memoryjs.

xetrics avatar xetrics commented on May 28, 2024

@Rob-- sorry, I meant PAGE_READONLY. I only suggested this hack as OP stated he got 'detected" doing it through an infinite loop. This method will circumvent any WPM hooks the process has, which is one of the most common anticheat techniques. 50% of game hacking is finding a hacky and obscure way to do things, you know, the whole cat and mouse thing.

from memoryjs.

Rob-- avatar Rob-- commented on May 28, 2024

@xetrics ah good point I should’ve read the main issue again. We could offer 2 new functions: one that freezes via a loop (just because it’s handy) and one that freezes via page protection and handles exceptions raised (if we can figure that out)

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.