From c64d8df8fbc36768fc28dff8c68b14c45c7fdfb4 Mon Sep 17 00:00:00 2001 From: Fabrice Desclaux Date: Mon, 12 Jun 2017 11:10:59 +0200 Subject: Example: add ida rpyc server --- example/ida/rpyc_ida.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 example/ida/rpyc_ida.py (limited to 'example') 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() -- cgit 1.4.1