mirror of
https://github.com/boku7/Loki
synced 2026-06-06 15:24:27 +00:00
183 lines
4.3 KiB
HTML
183 lines
4.3 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Agent Terminal</title>
|
|
<link href="https://fonts.googleapis.com/css2?family=Fira+Code:wght@400&display=swap" rel="stylesheet">
|
|
<style>
|
|
body {
|
|
font-family: 'Fira Code', monospace;
|
|
margin: 0;
|
|
padding: 20px;
|
|
background-color: #1e1e1e;
|
|
color: #c5c5c5;
|
|
height: calc(100vh - 40px); /* Adjust height to add bottom margin */
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden; /* Prevent body from scrolling */
|
|
}
|
|
h1 {
|
|
font-size: 24px;
|
|
color: #06883e;
|
|
margin: 0 0 20px 0;
|
|
}
|
|
.console {
|
|
background-image: url('./assets/images/agent.png');
|
|
background-size: contain; /* Fit the image within the element */
|
|
background-repeat: no-repeat; /* Prevent repeating */
|
|
background-position: center; /* Center the image */
|
|
height: 100vh; /* Full viewport height */
|
|
width: 100%;
|
|
background-color: #191919;
|
|
color: #ffffff;
|
|
padding: 10px;
|
|
flex-grow: 1;
|
|
overflow: auto;
|
|
border-radius: 4px;
|
|
display: flex;
|
|
font-family: 'Fira Code', monospace;
|
|
flex-direction: column;
|
|
position: relative;
|
|
white-space: pre-wrap;
|
|
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
|
|
}
|
|
.input {
|
|
display: flex;
|
|
flex-direction: column;
|
|
position: relative;
|
|
margin: 10px 0px 0px 0px;
|
|
}
|
|
.input-line {
|
|
display: flex;
|
|
width: 100%;
|
|
}
|
|
.input-line span {
|
|
color: #ffffff;
|
|
}
|
|
#consoleInput {
|
|
background-color: #2e2e2e;
|
|
color: #c5c5c5;
|
|
display: flex;
|
|
border: 1px solid #555;
|
|
font-size: 16px;
|
|
width: 100%;
|
|
outline: none;
|
|
padding: 10px;
|
|
border-radius: 4px;
|
|
font-family: 'Fira Code', monospace;
|
|
}
|
|
#commandDropdown {
|
|
position: absolute;
|
|
background-color: #333;
|
|
color: #c5c5c5;
|
|
border: 1px solid #555;
|
|
border-radius: 4px;
|
|
z-index: 1000;
|
|
max-height: 150px;
|
|
overflow-y: auto;
|
|
font-size: 16px;
|
|
white-space: nowrap; /* Prevent wrapping */
|
|
}
|
|
#commandDropdown div {
|
|
padding: 5px;
|
|
cursor: pointer;
|
|
}
|
|
#commandDropdown div:hover {
|
|
background-color: #555;
|
|
color: #ffffff;
|
|
}
|
|
table.vampire-matrix {
|
|
width: 100%; /* Make the table consume the entire window width */
|
|
border-collapse: collapse;
|
|
background-color: #1c1c1c;
|
|
box-shadow: 0 0 10px rgba(0, 255, 64, 0.5);
|
|
}
|
|
|
|
table.vampire-matrix th,
|
|
table.vampire-matrix td {
|
|
border: 1px solid #333;
|
|
padding: 10px 15px;
|
|
text-align: left;
|
|
vertical-align: middle;
|
|
word-wrap: break-word; /* Ensure content wraps within the cell */
|
|
}
|
|
|
|
table.vampire-matrix thead th {
|
|
background-color: #333;
|
|
color: #fff;
|
|
font-size: 1.1em;
|
|
}
|
|
|
|
table.vampire-matrix tbody tr {
|
|
transition: background-color 0.3s;
|
|
}
|
|
|
|
table.vampire-matrix tbody tr:hover {
|
|
background-color: #2a2a2a;
|
|
}
|
|
|
|
table.vampire-matrix tbody tr:nth-child(even) {
|
|
background-color: #232323;
|
|
}
|
|
|
|
table.vampire-matrix tbody tr:nth-child(odd) {
|
|
background-color: #1a1a1a;
|
|
}
|
|
|
|
table.vampire-matrix td {
|
|
color: #fff; /* Change text color to white */
|
|
}
|
|
|
|
table.vampire-matrix th {
|
|
border-bottom: 2px solid #444;
|
|
}
|
|
|
|
table.vampire-matrix tbody td:first-child {
|
|
border-left: 2px solid #444;
|
|
}
|
|
|
|
table.vampire-matrix tbody td:last-child {
|
|
border-right: 2px solid #444;
|
|
}
|
|
|
|
tr {
|
|
height: 20px;
|
|
max-height: 20px; /* Set your desired max-height here */
|
|
overflow: hidden;
|
|
}
|
|
tr > td {
|
|
max-height: inherit; /* Apply max height to each cell */
|
|
overflow: hidden; /* Ensure content overflow is hidden in each cell */
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<!-- <h1>Agent Terminal</h1> -->
|
|
<div class="agentstatus" id="agentstatus">
|
|
<table id="agentTable" class="vampire-matrix" height="20px">
|
|
<tbody>
|
|
<tr>
|
|
<td>Agent ID</td>
|
|
<td>Hostname</td>
|
|
<td>Username</td>
|
|
<td>Process</td>
|
|
<td>PID</td>
|
|
<td>IP</td>
|
|
<td>Arch</td>
|
|
<td>Platform</td>
|
|
<td>Checkin</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="console" id="consoleOutput"></div>
|
|
<div class="input">
|
|
<div class="input-line">
|
|
<input type="text" id="consoleInput" autocomplete="off" />
|
|
</div>
|
|
<div id="commandDropdown"></div>
|
|
</div>
|
|
<script src="agent.js"></script>
|
|
</body>
|
|
</html>
|