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 29, 2017
1 parent 5839908 commit 43b6a70
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions idaplugin/rematch/autoupload.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import idc
import idaapi

from . import network
from . import actions


class AddFileSilentUI:
pass


def main():
# add file
actions.project.AddFileAction(AddFileSilentUI)
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 43b6a70

Please sign in to comment.