From 2db9368731e9d98b9de2b5ff9d5fadc7209145eb Mon Sep 17 00:00:00 2001 From: snare Date: Thu, 31 Dec 2015 15:23:09 +1100 Subject: [PATCH] Update example client for API rewrite --- examples/client.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/client.py b/examples/client.py index 76f2251..1f8d1a6 100644 --- a/examples/client.py +++ b/examples/client.py @@ -43,12 +43,11 @@ from voltron.core import Client def main(): # Create a client and connect to the server client = Client() - client.connect() # Main event loop while True: # Wait for the debugger to stop again - res = client.perform_request('wait') + res = client.perform_request('version', block=True) if res.is_success: # If nothing went wrong, get the instruction pointer and print it res = client.perform_request('registers', registers=['rip']) @@ -62,4 +61,4 @@ def main(): if __name__ == "__main__": - main() \ No newline at end of file + main()