Skip to content

Commit 0dd1d17

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

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

idaplugin/rematch/autoupload.py

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import idc
2+
import idaapi
3+
4+
import network
5+
6+
7+
def main():
8+
# add file
9+
description = "Automatically collected / uploaded by autoupload.py"
10+
data = {'project': None, 'name': idc.GetInputFile(),
11+
'md5hash': idc.GetInputMD5(), 'description': description,
12+
'instances': []}
13+
14+
response = network.query("POST", "collab/files/", params=data, json=True)
15+
# TODO: validate response
16+
17+
# upload data
18+
19+
20+
if __name__ == "__main__":
21+
# action = str(idc.ARGV[1])
22+
# task_id = int(idc.ARGV[2])
23+
# owner_id = int(idc.ARGV[3])
24+
25+
# wait until autoanalysis is done, if needed
26+
idaapi.autoWait()
27+
28+
main()
29+
30+
# and exit the IDA instance
31+
idaapi.qexit(0)

0 commit comments

Comments
 (0)