Coder Social home page Coder Social logo

handle returning 0, modBaseAddr about memoryjs HOT 14 CLOSED

rob-- avatar rob-- commented on May 27, 2024
handle returning 0, modBaseAddr

from memoryjs.

Comments (14)

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

There are a few ways to obtain a handle. One way is to steal a handle from Task Manager (since Task Manager maintains a list of all handles to every process running). There are lots of ways to steal handles and there has been a lot of research into it because it's a way to bypass anti-cheats that hook OpenProcess. Look around on the UC forum in the anti-cheat bypass section and you will find a ton of bypasses. Here's something I just found in a few seconds.

from memoryjs.

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

Is your Node.js version 32 or 64 bit? And is Wow.exe 32 bit or 64 bit?

from memoryjs.

burner03 avatar burner03 commented on May 27, 2024

Is your Node.js version 32 or 64 bit? And is Wow.exe 32 bit or 64 bit?

32 bit, Wow.exe is also 32 bit.

Windows 10, if that matters.

from memoryjs.

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

How does Wow.exe appear when you call memoryjs.getProcesses()?

from memoryjs.

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

What happens when you log the error message inside the callback? It should tell you if it wasn't able to open the process #31.

from memoryjs.

burner03 avatar burner03 commented on May 27, 2024

unable to find process

from memoryjs.

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

Hmm, try verifying the PID of Wow.exe through task manager, and try opening the process by just using the PID? If that doesn't work then it might be that Wow.exe has some sort of anti-cheat that prevents OpenProcess from working?

from memoryjs.

burner03 avatar burner03 commented on May 27, 2024

I guess that must be the case, i'm stumped. Memoryjs returns the correct PID & if I use it as the way to openProcess I get the same error.

from memoryjs.

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

I would suggest creating an empty C++ project and trying to manually OpenProcess and see if you can get a handle that way:

DWORD dwProcessID = 1234;
HANDLE handle = OpenProcess(PROCESS_ALL_ACCESS, FALSE, dwProcessId);

if (handle == NULL) {
  std::cout << "Failed to open handle." << std::endl;
} else {
  std::cout << "Opened handle." << std::endl;
}

This will at least distinguish if it's a problem with the library or a problem with the Wow.exe process specifically.

from memoryjs.

burner03 avatar burner03 commented on May 27, 2024

Yeah, failed to open handle.

from memoryjs.

p410n3 avatar p410n3 commented on May 27, 2024

There are a few ways to obtain a handle. One way is to steal a handle from Task Manager (since Task Manager maintains a list of all handles to every process running). There are lots of ways to steal handles and there has been a lot of research into it because it's a way to bypass anti-cheats that hook OpenProcess. Look around on the UC forum in the anti-cheat bypass section and you will find a ton of bypasses. Here's something I just found in a few seconds.

@wuvluv I would also that this is the problem. Something is stripping / otherwise messing yith your handle. Is it a modded client by any chance? I have seen odd implemetations of anti-temper solutions for modded games.

from memoryjs.

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

Here are some other resources:
hSonic
SilentJack
Handle hijacking with IPC
Handle hijacking via LSASS
hBastard
Finding handles via SVCHOST
Handle hijacking via forced inheritance

A lot of these projects are probably outdated but worth reading about to understand what handle hijacking is and how it works. Essentially the aim of most of these projects are to find handles that were opened by the system and pass them to you.

from memoryjs.

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

No problem, best of luck!

from memoryjs.

sundayz avatar sundayz commented on May 27, 2024

Hey, I know I'm a bit late. Wow's anti-cheat doesn't prevent you from opening handles to the process (at least the old one doesn't). Here's something you should try: https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/debug-privilege

I use it in some code that opens Wow with PROCESS_ALL_ACCESS to inject a dll. But I don't know what version of the client you're trying to use, and I've had problems with memoryjs too.

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.