mirror of https://github.com/snare/voltron.git
Update example client for API rewrite
This commit is contained in:
parent
1128cdc30d
commit
2db9368731
|
@ -43,12 +43,11 @@ from voltron.core import Client
|
||||||
def main():
|
def main():
|
||||||
# Create a client and connect to the server
|
# Create a client and connect to the server
|
||||||
client = Client()
|
client = Client()
|
||||||
client.connect()
|
|
||||||
|
|
||||||
# Main event loop
|
# Main event loop
|
||||||
while True:
|
while True:
|
||||||
# Wait for the debugger to stop again
|
# Wait for the debugger to stop again
|
||||||
res = client.perform_request('wait')
|
res = client.perform_request('version', block=True)
|
||||||
if res.is_success:
|
if res.is_success:
|
||||||
# If nothing went wrong, get the instruction pointer and print it
|
# If nothing went wrong, get the instruction pointer and print it
|
||||||
res = client.perform_request('registers', registers=['rip'])
|
res = client.perform_request('registers', registers=['rip'])
|
||||||
|
@ -62,4 +61,4 @@ def main():
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
main()
|
main()
|
||||||
|
|
Loading…
Reference in New Issue