From 2529ba478f7173ae95b826f838af21660c21e9e1 Mon Sep 17 00:00:00 2001 From: jakani24 Date: Sat, 17 Feb 2024 10:29:21 +0100 Subject: [PATCH] Update add_client.php --- .../system/secure_zone/php/add_client.php | 21 ++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/src/server/cyberhex-code/system/secure_zone/php/add_client.php b/src/server/cyberhex-code/system/secure_zone/php/add_client.php index 43566c7..712deb9 100644 --- a/src/server/cyberhex-code/system/secure_zone/php/add_client.php +++ b/src/server/cyberhex-code/system/secure_zone/php/add_client.php @@ -25,7 +25,7 @@ if($perms[7]!=="1"){ - Change Password + Add Machine @@ -41,6 +41,25 @@ if($perms[7]!=="1"){ + machineid,cert,apikey + * setup_script => server location, to download settings, databases etc + * add installer.exe to download list => downloads the app and all the files + */ + //create machineid: + $random_bytes = random_bytes(6); + + // Convert the random bytes to hexadecimal + $hex_code = bin2hex($random_bytes); + + // Output the hexadecimal code + echo $hex_code; // This will output a 12-digit hexadecimal code + } + ?>