Skip to content

Admin Function Mode

JohnClarke edited this page Jul 31, 2025 · 5 revisions

🛠️ Admin Script Console — .jar Execution Guide

🚀 Launch Instructions

To start the admin console and enable script upload capabilities:

java -DaccessFlag=false -jar slp-0.0.1-SNAPSHOT.jar

Once launched, this opens a secure admin interfaces at:

This URL allows the user to upload scripts for scheduled task on Linux and Windows

http://localhost/loggedIn/ostask.ftl

This URL allows the user to upload,activate/deactivate and run admin functions

http://localhost/loggedIn/adminFunctions.ftl

📂 Uploadable Script Types

The console allows authorized users to upload the following:

  • .sh — Shell scripts (Linux/macOS)

  • .ps1 — PowerShell scripts (Windows)

  • .exe — Executable scripts (Windows)

  • .bat — Batch scripts (Windows)


⚠️ Security Advisory

Uploading and running scripts on a server may introduce serious risks:

Risk Type Description
🕳 Vulnerability Malicious scripts can escalate privilege or exploit open ports
🔄 Unintended Behavior Poorly-written scripts may conflict with system services or exhaust resources
👀 Data Leakage Scripts might expose logs, credentials, or sensitive config files
🔥 Persistent Backdoors Scheduled tasks can be abused to create long-lived access for attackers
🔓 No Sandboxing Uploaded scripts are not isolated and run with the same permissions as the server itself

#🛡️ Recommended Practices

  • Validate all scripts before upload
  • Run scripts under a restricted service account
  • Use logging and change tracking for all script executions
  • Monitor server activity after script runs

🔄 Revoke Access

To disable script upload functionality, restart the JAR with either of the following:

java -DaccessFlag=false -jar slp-0.0.1-SNAPSHOT.jar

In this case the flag is set to false by default

java -jar slp-0.0.1-SNAPSHOT.jar

Clone this wiki locally