Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
FrenchYeti committed Feb 25, 2022
2 parents 970cdbc + 54afe96 commit e7b5d10
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ frida-compile examples/simple_strace.js -o trace.js && frida -U -f <PACKAGE> -l
### 2.A Simple tracing
Simple tracing without hook from attach moment, with excluded module and syscall (by name)
```
var Interruptor = require('./android-arm64-strace.min.js').default.LinuxArm64();
var Interruptor = require('./android-arm64-strace.min.js').target.LinuxArm64();
// better results, when app is loaded
Java.perform(()=>{
Expand Down Expand Up @@ -187,7 +187,7 @@ https://marcin.juszkiewicz.com.pl/download/tables/syscalls.html
First, you need to get the tracer factory adapted to your OS/Architecture :
For now only "LinuxArm64()" is available.
```
var Interruptor = require('../dist/index.js').default.LinuxArm64();
var Interruptor = require('../dist/index.js').target.LinuxArm64();
```

Next step is to intanciante a tracer with a specific options.
Expand All @@ -201,21 +201,21 @@ A full list of options can be found into the next section.
Final step, choose when you want to start to trace :
* A. When frida script is executed
```
var Interruptor = require('../dist/index.js').default.LinuxArm64();
var Interruptor = require('../dist/index.js').target.LinuxArm64();
Interruptor.newAgentTracer( /* opts */).start();
```

* B. The first time a module is opened by the linker
```
var Interruptor = require('../dist/index.js').default.LinuxArm64();
var Interruptor = require('../dist/index.js').target.LinuxArm64();
Interruptor.newAgentTracer( /* opts */).startOnLoad(/my_lib\.so$/g);
```

* C. From your hooks
```
var Interruptor = require('../dist/index.js').default.LinuxArm64();
var Interruptor = require('../dist/index.js').target.LinuxArm64();
Interceptor.attach( /* ... */,{
onEnter: function(){
Expand Down

0 comments on commit e7b5d10

Please sign in to comment.