Update notify_virus.php
This commit is contained in:
@@ -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");
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
Reference in New Issue
Block a user