Add Rustdesk to external tools for WAPT

This commit is contained in:
pcosson
2024-03-04 16:15:41 +01:00
parent 7eaa6c06b2
commit 08178a1fa5

View File

@@ -25,6 +25,8 @@ def uninstall():
def audit(): def audit():
## Pour ajouter dans les outils externe wapt : nom :Rustdesk, Executable : C:\Program Files\RustDesk\rustdesk.exe , --connect {{host_audit/RustDesk/id/value}}
def get_rustdesk_id(): def get_rustdesk_id():
# Run the command and capture its output # Run the command and capture its output
result = subprocess.run(["C:\\Program Files\\RustDesk\\rustdesk.exe", "--get-id"], stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True) result = subprocess.run(["C:\\Program Files\\RustDesk\\rustdesk.exe", "--get-id"], stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)