Comments (11)
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.
Still doesn't work. Says syntax error. I'm using python 3, is that the problem?
from pyinjector.
from pyinjector.
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.
Update: When I debug the script, it says exception has occurred: InjectorPermissionError
from pyinjector.
Sounds like you fixed the syntax error, now you can use the error message in the permission error to fix it.
from pyinjector.
After I followed the instructions, it says InjectorError
injector_inject returned -5: dlopen failed
from pyinjector.
Are you giving it the correct path?
from pyinjector.
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.
I get it now. It sees the library but fails to open it. Any idea why?
from pyinjector.
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)
- [Linux] Failure to inject. HOT 1
- undefined symbol: injector_attach HOT 1
- Could not find libc HOT 10
- Verify injector ABI in tests or compile directly using Python-C API HOT 1
- Use the new uninject API in kubo/injector
- Add windows-2022 to CI when issues with pip not finding msvc are solved
- Impossible to compile with PyInstaller or Py2Exe HOT 10
- Return DLL Handle HOT 4
- Have appropriate exceptions for different return values from `injector_attach`
- add support on > 3.10 HOT 1
- Help please HOT 1
- Failure to inject on Mac HOT 8
- Build wheels for Mac
- Cannot install on win10 via pip HOT 1
- [Enhancement/Question] inject into Wine processes on Linux HOT 1
- Question! HOT 1
- Add support for windows HOT 6
- pyinstaller problem HOT 1
- How do you use this HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyinjector.