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 Apr 23, 2017
1 parent 3f891ef commit ce419da
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
37 changes: 37 additions & 0 deletions idaplugin/rematch/autoupload.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import idc
import idaapi

from . import network
from . import actions


class AddFileSilentUI(actions.base.Action):
pass


class MatchSilentUI(actions.base.Action):
pass


def main():
# add file
actions.project.AddFileAction(AddFileSilentUI)
description = "Automatically collected / uploaded by autoupload.py"
##############

# upload data
actions.match.MatchAction(MatchSilentUI)


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)
5 changes: 5 additions & 0 deletions tests/idaplugin/test_autoupload.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import idaplugin


def test_main(idapro_app):
idaplugin.rematch.autoupload.main()

0 comments on commit ce419da

Please sign in to comment.