From d1eeba67fc1f14012e8ccf15a42ac700b7ef40a8 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Sat, 7 Feb 2026 18:42:53 -0500 Subject: [PATCH] Add bulk Fav / unfav creds and added fav creds to the client overview page --- agent/client_overview.php | 76 +++++++++++++++++++++++++++++++++++++++ agent/credentials.php | 11 ++++++ agent/post/credential.php | 72 +++++++++++++++++++++++++++++++++++++ 3 files changed, 159 insertions(+) diff --git a/agent/client_overview.php b/agent/client_overview.php index 1851ebeb..ed1bfa64 100644 --- a/agent/client_overview.php +++ b/agent/client_overview.php @@ -32,6 +32,15 @@ $sql_favorite_assets = mysqli_query( ORDER BY asset_type ASC, asset_name ASC" ); +$sql_favorite_credentials = mysqli_query( + $mysqli, + "SELECT * FROM credentials + WHERE credential_client_id = $client_id + AND credential_favorite = 1 + AND credential_archived_at IS NULL + ORDER BY credential_name ASC" +); + $sql_recent_tickets = mysqli_query( $mysqli, "SELECT * FROM tickets @@ -338,6 +347,70 @@ $sql_asset_retired = mysqli_query( + 0) { ?> + +
+ +
+
+
Favorite Credentials
+
+
+ + " . truncate($credential_uri,40) . ""; + } + $credential_uri_2 = sanitize_url($row['credential_uri_2']); + $credential_username = nullable_htmlentities(decryptCredentialEntry($row['credential_username'])); + if (empty($credential_username)) { + $credential_username_display = "-"; + } else { + $credential_username_display = "$credential_username"; + } + $credential_password = nullable_htmlentities(decryptCredentialEntry($row['credential_password'])); + $credential_otp_secret = nullable_htmlentities($row['credential_otp_secret']); + $credential_id_with_secret = '"' . $row['credential_id'] . '","' . $row['credential_otp_secret'] . '"'; + if (empty($credential_otp_secret)) { + $otp_display = "-"; + } else { + $otp_display = " Hover.."; + } + + ?> + + + + + + + + +
+ + + + + +
+
+
+ +
+ + + 0) { ?>
@@ -731,6 +804,9 @@ $sql_asset_retired = mysqli_query(
+ + +