Files
NetBlock-Remote/client.py
2025-10-30 15:24:41 +01:00

21 lines
412 B
Python

import xmlrpc.client, argparse
parser = argparse.ArgumentParser()
parser.add_argument(
"--enable",
action="store_true",
)
parser.add_argument(
"--disable",
action="store_true",
)
args = parser.parse_args()
proxy = xmlrpc.client.ServerProxy("http://localhost:6767/")
if args.enable:
result = proxy.enable()
print(result)
elif args.disable:
result = proxy.disable()
print(result)