From 209356b8ade1920b50d1d3a1a5e121c6623d167b Mon Sep 17 00:00:00 2001 From: Minteck Date: Fri, 11 Nov 2022 23:47:49 +0100 Subject: Update --- pages/computers.inc | 856 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 856 insertions(+) create mode 100644 pages/computers.inc (limited to 'pages/computers.inc') diff --git a/pages/computers.inc b/pages/computers.inc new file mode 100644 index 0000000..c2d6437 --- /dev/null +++ b/pages/computers.inc @@ -0,0 +1,856 @@ + 2) { + $title = "Remote control · " . $computer["host"] . " · " . $title; + } else { + $title = $computer["host"] . " · " . $title; + } + } else { + header("Location: /-/computers"); + die(); + } +} + +if (isset($parts[2]) && $parts[2] !== "control") { + header("Location: /-/computers/" . $parts[1]); + die(); +} + +require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.inc'; + +$parts = array_values(array_filter($parts, function ($i) { + return $i !== "-"; +})); + +if (count($parts) === 2 || count($parts) === 3) { + array_unshift($parts, null); +} + +?> + +
+
+ +
+

+ + Back +

+ +

Overview

+ +
+
+ .jpg"> +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
Owner:
Luna version:
System:
OS kernel:
Serial: ()
Last seen:,
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + $version): if (trim($version) !== "" && $software !== "systemOpensslLib" && $software !== "openssl" && $software !== "node" && $software !== "v8"): ?> + + + + + + +

Processors and graphics

Main processor: ( GHz)
Processor threading: + processor 1 ? "s" : "" ?>, + core 1 ? "s" : "" ?>, + thread 1 ? "s" : "" ?>
Hardware virtualization:
Level 1 cache: KiB (instruction), KiB (data)
Level 2 cache:
Level 3 cache:
Graphics processor 1 ? "s" : "" ?>: + + ( cores, ) + " : "" ?> + +
Display 1 ? "s" : "" ?>: + + (x, Hz) + " : "" ?> + +

System memory

Physical memory: GiB ( MiB used, MiB free)
Memory usage: MiB active, MiB available, MiB cache
Swap memory: GiB ( MiB used, MiB free)
RAM chips: + + MiB + " : "" ?> + +

Battery

Battery model:
Charge level:% ( V)
Cycles:
Remaining capacity:/ (designed for , % left)
This computer does not contain a battery.

Operating system

System:
CPU architecture:
Kernel version:
Code page:
Build number:
Serial number:
Startup interface:

Software versions

"OS kernel", + "systemOpenssl" => $computer["versions"]["systemOpensslLib"], + "npm" => "NPM", + "yarn" => "Yarn", + "gulp" => "Gulp", + "grunt" => "Grunt", + "git" => "Git", + "tsc" => "TypeScript", + "mysql" => "MySQL", + "redis" => "Redis", + "mongodb" => "MongoDB", + "apache" => "Apache HTTPD", + "php" => "PHP", + "docker" => "Docker", + "postfix" => "Postfix SMTP Server", + "postgresql" => "PostgreSQL", + "perl" => "Perl", + "python" => "Python (legacy)", + "python3" => "Python", + "pip" => "PIP (legacy)", + "pip3" => "PIP", + "java" => "Java", + "gcc" => "C compiler", + "virtualbox" => "VirtualBox", + "bash" => "Bash", + "zsh" => "zsh", + "fish" => "Fish", + "powershell" => "PowerShell", + "dotnet" => ".NET", + default => $software, + } + ?>:
+ +

Screens

+

+ You can remotely control this computer. Open remote control. +

+
+ +
+
+ .jpg"> +
+
+ +
+ +

Windows

+
+ +
+
+
+ .jpg"> +
+
+
+
+ +
+ +

Sessions

+ + + + + + + + + + + + + + + + + + + + + +
TTYCommandUserOpenType
+ +

Filesystems

+ + + + + + + + + + + + + 1024) { + if ($bytes > 1024**2) { + if ($bytes > 1024**3) { + return round($bytes / 1024**3, 1) . " GB"; + } else { + return round($bytes / 1024**2, 1) . " MB"; + } + } else { + return round($bytes / 1024, 1) . " KB"; + } + } else { + return $bytes . " B"; + } + } + + uasort($computer["filesystems"], function ($a, $b) { + return $b["use"] - $a["use"]; + }); + + foreach ($computer["filesystems"] as $fs): ?> + + + + + + + + + + +
DeviceMount pointTypeUsedFreeTotal
(%)
+ +

Audio devices

+ + + + + + + + + + + + + + + + + + + + + +
TypeManufacturerNameDefaultConnection
+ +

Network cards

+ + + + + + + + + + + + + + + 300, + "down" => 200, + default => 100 + }; + $statB = match ($b["operstate"]) { + "up" => 300, + "down" => 200, + default => 100 + }; + + return $statB - $statA; + }); + + foreach ($computer["network"] as $iface): ?> + > + + + + + + + + + + + +
InterfaceStateIP addressesMAC addressTypeInternalVirtualDHCP
+ +

Network connections

+ + + + + + + + + + + + + + + + + + + + + +
StateProtocolSourceDestinationProcess
"Connected", + "LISTEN" => "Listening", + "CLOSING" => "Terminating", + "UNKNOWN" => "?", + "LAST_ACK", "FIN_WAIT2" => "Waiting", + "TIME_WAIT" => "Waiting", + "FIN_WAIT1" => "Closing", + "SYN_RECV" => "Received", + "SYN_SENT" => "Attempting", + default => $connection["state"], + } ?> "TCP over IPv4", + "tcp6" => "TCP over IPv6", + "tcp46" => "TCP over IPv4 and IPv6", + "udp4" => "UDP over IPv4", + "udp6" => "UDP over IPv6", + "udp46" => "UDP over IPv4 and IPv6", + default => $connection["protocol"], + } ?> "<local IPv4>", + "::1" => "<local IPv6>", + default => $connection["localAddress"], + } ?> (port ) "<local IPv4>", + "::1" => "<local IPv6>", + default => $connection["localAddress"], + } ?> () 0) { + echo($f[0]["name"] . " [" . $connection["pid"] . "]"); + } else { + echo($connection["pid"]); + } + + ?>
+ +

Processes

+ + + + + + + + + + + + + + + + + + + + + + + +
PIDNameCPURAMUserStarted
%%
+
+ +
+

+ Remote controlling + Back +

+ +
+ .jpg"> +
+ +
+
+

+                
+            
+
+ +
+
+ + + +
+

Computers

+

Click on a computer to view information about it (open windows, installed apps, ...).

+ + +
+ +
+ + + + -- cgit