Coder Social home page Coder Social logo

How to use? about pyinjector HOT 11 CLOSED

kmaork avatar kmaork commented on May 28, 2024
How to use?

from pyinjector.

Comments (11)

kmaork avatar kmaork commented on May 28, 2024

The pid is the process id, it is a number used as a unique identifier for your process. To find that number you can use various tools depending on your context, for example the ps command.

from pyinjector.

NKITANAS avatar NKITANAS commented on May 28, 2024

Still doesn't work. Says syntax error. I'm using python 3, is that the problem?

from pyinjector.

kmaork avatar kmaork commented on May 28, 2024

from pyinjector.

NKITANAS avatar NKITANAS commented on May 28, 2024

from pyinjector import inject inject(223144, "dllpath")
./main.py line 2: syntax error near unexpected token '223144'
./main.py line 2: inject(223144, "dllpath")
(dllpath is the path for the dll(It's in the same folder as the script))

from pyinjector.

NKITANAS avatar NKITANAS commented on May 28, 2024

Update: When I debug the script, it says exception has occurred: InjectorPermissionError

from pyinjector.

kmaork avatar kmaork commented on May 28, 2024

Sounds like you fixed the syntax error, now you can use the error message in the permission error to fix it.

from pyinjector.

NKITANAS avatar NKITANAS commented on May 28, 2024

After I followed the instructions, it says InjectorError
injector_inject returned -5: dlopen failed

from pyinjector.

kmaork avatar kmaork commented on May 28, 2024

Are you giving it the correct path?

from pyinjector.

NKITANAS avatar NKITANAS commented on May 28, 2024

Yes, I tried to give it an invalid path, and it said invalid path in the debugger. In the terminal, however, it always said invalid path so I'm not sure.

from pyinjector.

NKITANAS avatar NKITANAS commented on May 28, 2024

I get it now. It sees the library but fails to open it. Any idea why?

from pyinjector.

kmaork avatar kmaork commented on May 28, 2024

You could try to load the so directly to see if it is valid. It might be compiled for a different architecture from the target process (e.g. 32/64 bit)

from pyinjector.

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.