From 724f4a01cf47dd01f7404656f4ce29ed12e7e092 Mon Sep 17 00:00:00 2001 From: jakani24 Date: Thu, 22 Feb 2024 15:00:25 +0100 Subject: [PATCH] Update notify_virus.php --- src/server/cyberhex-code/api/php/virus/notify_virus.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/cyberhex-code/api/php/virus/notify_virus.php b/src/server/cyberhex-code/api/php/virus/notify_virus.php index 3f26932..8b412a4 100644 --- a/src/server/cyberhex-code/api/php/virus/notify_virus.php +++ b/src/server/cyberhex-code/api/php/virus/notify_virus.php @@ -8,11 +8,11 @@ if(check_apikey()!==true){ //add the entry to the log db //this page has no gui, it may return ok or error -if(!isset($_GET["machine_id"]) or !isset($_GET["hash"]) or !isset($_GET["path"]) or !isset($_GET["action"])) +if(!isset($_GET["machine_id"]) or !isset($_GET["hash"]) or !isset($_GET["file"]) or !isset($_GET["action"])) echo("syn_err"); else{ $hash=htmlspecialchars($_GET["hash"]); - $path=htmlspecialchars($_GET["path"]); + $path=htmlspecialchars($_GET["file"]); $machine_id=htmlspecialchars($_GET["machine_id"]); $action=htmlspecialchars($_GET["action"]); //include db pw