Skip to content

Commit

Permalink
Add /, /x search commands
Browse files Browse the repository at this point in the history
- agent can run r2 commands on running main RCore instance
- search parameters (from, to, flags, prefix, count, kwidx) are honored
- search results are set as flags (if enabled by config)
- add inner "search.in" config variable, with its help
  • Loading branch information
mrmacete authored and trufae committed Feb 28, 2017
1 parent d242dd4 commit 1e431b1
Show file tree
Hide file tree
Showing 6 changed files with 714 additions and 258 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ CFLAGS+=-fPIC
LDFLAGS+=-shared -fPIC

# R2
CFLAGS+=$(shell pkg-config --cflags r_io)
LDFLAGS+=$(shell pkg-config --libs r_io)
CFLAGS+=$(shell pkg-config --cflags r_core)
LDFLAGS+=$(shell pkg-config --libs r_core)
R2_PLUGDIR=$(shell r2 -hh | grep '^ 'RHOMEDIR | awk '{print $$2}')/plugins

CXXFLAGS+=$(CFLAGS)
Expand Down
32 changes: 32 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
]
},
"scripts": {
"lint": "semistandard src/agent/*.js",
"prepublish": "npm run build",
"build": "frida-compile src/agent -o src/_agent.js",
"watch": "frida-compile src/agent -o src/_agent.js -w"
Expand All @@ -36,5 +37,36 @@
"babel-runtime": "^6.22.0",
"frida-compile": "5.0.1",
"mjolner": "^1.0.6"
},
"devDependencies": {
"semistandard": "*"
},
"semistandard": {
"globals": [
"DebugSymbol",
"File",
"Frida",
"hexdump",
"Instruction",
"Interceptor",
"Java",
"Memory",
"Module",
"NativeCallback",
"NativeFunction",
"NativePointer",
"NULL",
"ObjC",
"Process",
"recv",
"Script",
"Socket",
"Stalker",
"Thread",
"ptr",
"rpc",
"send",
"uint64"
]
}
}
Loading

0 comments on commit 1e431b1

Please sign in to comment.