Skip to content

Commit 04df4d5

Browse files
committed
[WIP] add automatic multiple gui-less idb upload
Signed-off-by: Nir Izraeli <nirizr@gmail.com>
1 parent 3f891ef commit 04df4d5

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

idaplugin/rematch/autoupload.py

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
import idc
2+
import idaapi
3+
4+
from . import network
5+
from . import actions
6+
7+
8+
class AddFileSilentUI(actions.base.Action):
9+
pass
10+
11+
12+
class MatchSilentUI(actions.base.Action):
13+
pass
14+
15+
16+
def main():
17+
# add file
18+
actions.project.AddFileAction(AddFileSilentUI)
19+
description = "Automatically collected / uploaded by autoupload.py"
20+
##############
21+
22+
# upload data
23+
actions.match.MatchAction(MatchSilentUI)
24+
25+
26+
if __name__ == "__main__":
27+
# action = str(idc.ARGV[1])
28+
# task_id = int(idc.ARGV[2])
29+
# owner_id = int(idc.ARGV[3])
30+
31+
# wait until autoanalysis is done, if needed
32+
idaapi.autoWait()
33+
34+
main()
35+
36+
# and exit the IDA instance
37+
idaapi.qexit(0)

tests/idaplugin/test_autoupload.py

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import idaplugin
2+
3+
4+
def test_main(idapro_app):
5+
del idapro_app
6+
7+
idaplugin.rematch.autoupload.main()

0 commit comments

Comments
 (0)