diff options
| author | Camille Mougey <commial@gmail.com> | 2017-06-13 14:34:53 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-06-13 14:34:53 +0200 |
| commit | b974d4da277ca9a87527f4bedfeb55114f365e90 (patch) | |
| tree | cdeaa630b12e78fc77ddf846b9a705ecedb19926 | |
| parent | 443a811aa92a31d3c2ae89937c5abb497bcc30ff (diff) | |
| parent | c64d8df8fbc36768fc28dff8c68b14c45c7fdfb4 (diff) | |
| download | miasm-b974d4da277ca9a87527f4bedfeb55114f365e90.tar.gz miasm-b974d4da277ca9a87527f4bedfeb55114f365e90.zip | |
Merge pull request #568 from serpilliere/ida_rpyc
Example: add ida rpyc server
| -rw-r--r-- | example/ida/rpyc_ida.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/example/ida/rpyc_ida.py b/example/ida/rpyc_ida.py new file mode 100644 index 00000000..21faf43a --- /dev/null +++ b/example/ida/rpyc_ida.py @@ -0,0 +1,25 @@ +"""rpyc IDA server""" + +from rpyc.utils.server import OneShotServer +from rpyc.core import SlaveService + + + +def serve_threaded(hostname="localhost", port=4455): + """This will run a rpyc server in IDA, so a custom script client will be + able to access IDA api. + WARNING: IDA will be locked until the client script terminates. + """ + + print 'Running server' + server = OneShotServer(SlaveService, hostname=hostname, + port=port, reuse_addr=True, ipv6=False, + authenticator=None, + auto_register=False) + server.logger.quiet = False + + return server.start() + + +if __name__ == "__main__": + serve_threaded() |