qb-0 / PyMeow-

Python Game Hacking Library
MIT License
158 stars 21 forks source link

I got error when try to open process #8

Closed Furkan125 closed 3 years ago

Furkan125 commented 3 years ago

Hi, i got this error when i try to open process with Pid: Unable to open Process My error code: 5 I also try running cmd as administrator and running this command: python test.py but its still don't work.

qb-0 commented 3 years ago

Hey,

Please post the code you're using and a detailed error output

Furkan125 commented 3 years ago

Hey,

Please post the code you're using and a detailed error output

Hello, sorry for late respond. Also, here is my code:

import pymeow

pymeow.process_by_pid(10504)

(The code is just this, because I haven't been able to solve the error yet, I also checked the PID and it's spelled correctly but I'm getting an error.)

and this is the error that i got: nimpy.Exception: Unable to open Process [Pid: 10504] [Error code: 5]

qb-0 commented 3 years ago

Error Code 5 means ERROR_ACCESS_DENIED (error codes). Since a handle is required to read / write external it could be that your process is protected in some way? Do you got that issue for all processes?

Furkan125 commented 3 years ago

No, I got that error in only 1 process . I tried it in other processes and there was no problem. It also works when I try to open same process with Cheat Engine and it also works when I try with Memory.dll (a C# library) https://github.com/erfg12/memory.dll/wiki/Administrative-Privileges

qb-0 commented 3 years ago

Could you check if that fixes the issue? If you aren't able to compile it for any reason let me know and I'll leave you a download for the compiled version.

qb-0 commented 3 years ago

Please try https://github.com/qb-0/PyMeow/releases/tag/1.4

Furkan125 commented 3 years ago

I try 2 times but its still don't work. Maybe i should continue with C#. Also why did google chrome and virus total says PyMeow is a virus ?

qb-0 commented 3 years ago

I try 2 times but its still don't work. Maybe i should continue with C#.

Okay. PyMeow uses the same OpenProcess priviledges as the C# library. So it could be a general rights issue by python for you.

Also why did google chrome and virus total says PyMeow is a virus ?

Virus Scan No issues here. Just one (unknown) virus software which flags it.

Furkan125 commented 3 years ago

So it could be a general rights issue by python for you.

Could it be a problem to use the script without compiling or maybe problem is Python version I am using? What version does PyMeow run on?

qb-0 commented 3 years ago

Pymeow should run on all python 3 versions. But I guess switching to another version won't make a difference. If you want to contact me on discord and let me know which process causes that issues so I can test it out myself.

Furkan125 commented 3 years ago

If you want to test process yourself: Download Growtopia (www.growtopiagame.com)