Update notify_virus.php

This commit is contained in:
jakani24
2024-05-10 15:44:46 +02:00
parent 7cf31148c2
commit 8a9f31623a

View File

@@ -29,8 +29,17 @@ else{
echo("wrt_err"); echo("wrt_err");
else else
echo("wrt_ok"); echo("wrt_ok");
$sql="SELECT machine_location FROM machines WHERE machine_name = ?";
$stmt = $conn->prepare($sql);
$stmt->bind_param("s", $machine_id);
$stmt->execute();
$result = $stmt->get_result();
$row = $result->fetch_assoc();
$location = $row["machine_location"];
$stmt->close(); $stmt->close();
$conn->close(); $conn->close();
send("[VIRUS WARNING!]\nhash: $hash\npath: $path\nmachine_id: $machine_id\naction: $action\n"); send("[VIRUS WARNING!]\nhash: $hash\npath: $path\nmachine_id: $machine_id\nmachine_location: $location\naction: $action\n");
} }
?> ?>