Comments (6)
Interesting. Does it work with any other applications? Did you try this use-case with the python binding by any chance? (I'm curious if it's a frida-node bug or deeper in the stack.)
from frida-node.
I've tried with cat
, echo
, just java.exe
(without arguments) and it works. But, it seems something odd happens when arguments are passed to java.exe.
I didn't try with python. I'll try it later.
from frida-node.
Ok! I wonder if there's something wrong with how we construct the argument list.
from frida-node.
it has the same issue with python:
import frida
import os
# NB python 3.3+ already has a shutil.which function. we somewhat emulate it here.
def which(binary):
extensions = os.getenv("PATHEXT", "").split(os.pathsep)
for p in os.environ["PATH"].split(os.pathsep):
path = os.path.join(p, binary)
for extension in extensions:
p = os.path.abspath(path + extension)
if os.path.isfile(p) and os.access(p, os.X_OK):
return p
return None
JAVA_PATH = which("java")
args = [JAVA_PATH, "-jar", "Program.jar"]
# this works fine:
#os.spawnv(os.P_WAIT, JAVA_PATH, args)
pid = frida.spawn(args)
frida.resume(pid)
EDIT I've added the os.spawnv
call.
from frida-node.
Aha, nice. Clearly a bug in frida-core then. I'll have a look at it before the upcoming release. Thanks!
from frida-node.
Fixed by frida/frida-core@2ff867f. Thanks for reporting!
from frida-node.
Related Issues (20)
- TlsSetValue equivalent HOT 1
- What is the function of require('frida-load'); HOT 1
- Rebuilding frida bindings HOT 5
- npm ERR! gyp: binding.gyp not found while trying to load binding.gyp HOT 2
- Attaching script when spawning Android application HOT 1
- Is there a way to get the return address when replacing a function using the Interceptor.
- Question: how to know when spawned process exited? HOT 4
- Requesting linux-musl build
- npm install frida failed HOT 3
- RPC function never resolved in jest HOT 2
- How to start frida tools in node environment without using python
- I hope frida node can publish the api document
- issue building
- After the electric project imports the frida node module, devtools cannot be opened
- node v19.8.1 install Error HOT 5
- mac os error????? HOT 1
- a unknown question
- macOS spawngating - frida-helper crash/not functional with Node bindings
- Frida and pkg
- Tiny guide for NPM and VSC?
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 frida-node.