Skip to content

Commit

Permalink
[WIP] add automatic multiple gui-less idb upload
Browse files Browse the repository at this point in the history
Signed-off-by: Nir Izraeli <[email protected]>
  • Loading branch information
nirizr committed Mar 21, 2017
1 parent d99978a commit d3b7d10
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions idaplugin/rematch/autoupload.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import idc
import idaapi

import network


def main():
# add file
description = "Automatically collected / uploaded by autoupload.py"
data = {'project': None, 'name': idc.GetInputFile(),
'md5hash': idc.GetInputMD5(), 'description': description,
'instances': []}

response = network.query("POST", "collab/files/", params=data, json=True)
# TODO: validate response

# upload data


if __name__ == "__main__":
# action = str(idc.ARGV[1])
# task_id = int(idc.ARGV[2])
# owner_id = int(idc.ARGV[3])

# wait until autoanalysis is done, if needed
idaapi.autoWait()

main()

# and exit the IDA instance
idaapi.qexit(0)

0 comments on commit d3b7d10

Please sign in to comment.