SysAdmin is a program that allows users to control their machines remotely via REST APIs. Features provided by SysAdmin:
- Access to WMI API through CIM Win32 Classes or WQL
- Access to PyWin32 API
- Access to PySystemd API for Debian Systems
- Psutil API (Supported for both Windows and Debian systems)
- Scheduled/Immediate script creation and execution
Benefits:
- Conveniently add or run scripts
- Remotely control machine through tunneled ngrok url
- No additional software required
- Full access through REST APIs
Supported Operating Systems:
- Debian Based Linux Distributions
- Windows
Postman APIs and documentation
-
- Extract the
SAC.rar
file - Run the executable installer file
- Enter your email id when prompted
START: The operation completed successfully.
should show up on your screen. You can exit the installer now- You will receive the tunneled url at the entered email in a few minutes
- In the Postman collection, replace the value of
{{fast_api}}
variable with this value
- Failure Cases
- Did not receive
"START: The operation completed successfully."
during installation - Received a successful response but did not receive email
- Did not receive
- How to fix
- Problem 1: Unknown errors. Reasons:
- Invalid Email address
- NGROK could not download its resources and tunnel a connection
- Make sure you entered a correct email address, and try uninstalling and installing again. NGROK won't download it's resources again for the subsequent launch
- Problem 2: Received an email with the url, but the url did not work
- Check if "SAC" is running in the Windows Services. If it shows up as stopped, try the above fix again
- Problem 3: The url worked, but did not receive expected output with a successful response code of 200
- WMI and Win32 APIs have been observed to produce inconsistent outputs across different systems. Please go through the documentation to implement the required changes to your system, which may include editing Registry keys, DLL files, etc
- Problem 1: Unknown errors. Reasons:
- If none of the above steps work, or you wish to set up the application yourself:
- Install python
- Run
pip install pyinstaller
andpyinstaller[encryption]
(alsovirtualenv
, if not installed) - Clone the source code from our repo, and navigate to the Windows directory in the repo.
- Create a virtual environment using
virtualenv venv
- Run
venv\scripts\activate
to start the virtual environment - Run
pip install -r requirements.txt
to install all dependencies. - Run
python main.py <your email here>
. If everything has been setup properly, you should receive a url. - If you wish to generate an executable, run
pyinstaller SAC.spec
- Copy
install.bat, install.py, uninstall.py
andnssm.exe
into the dist folder. - Try running the
SAC.exe
file. - If it runs just like
main.py
, runinstall.bat
to create the installer and uninstaller. - These files install and uninstall
SAC.exe
as a service
- Extract the
-
- Extract the SysAdmin.zip file
- Open the terminal where the files have been extracted
- Run
chmod +x install.sh
to makeinstall.sh
executable. NOTE:install.sh
andSysAdmin
have to be in the same directory - Run
./install.sh
to start the server - Enter an email when prompted
- At this point, SysAdmin will have been installed as a service
- You will receive the tunneled url at the entered email in a few minutes
- In the Postman collection, replace the value of
{{fast_api}}
variable with this value - To uninstall the service, run
chmod +x uninstall.sh
and./uninstall.sh
- Failure Cases
- Did not receive
"Client ready and running as a service"
during installation. - Received a successful response but did not receive email.
- Did not receive
- How to fix
- Problem 1: Unknown errors. Reasons:
- Invalid Email address
- NGROK could not download its resources and tunnel a connection
- Make sure you entered a correct email address, and try uninstalling and installing again. NGROK won't download it's resources again for the subsequent launch
- Problem 2: Received an email with the url, but the url did not work
- Check if "SystemAdmin" is running in the Services. If it shows up as stopped, try the above fix again
- Problem 1: Unknown errors. Reasons:
- If none of the above steps work, or you wish to set up the application yourself:
- Install python
- Run
pip install pyinstaller
andpyinstaller[encryption]
(alsovirtualenv
, if not installed) - Clone the source code from our repo, and navigate to the Ubuntu directory in the repo.
- Create a virtual environment using
virtualenv venv
- Run
source venv/bin/activate
to start the virtual environment - Run
pip install -r requirements.txt
to install all dependencies. - Run
python main.py <your email here>
. If everything has been setup properly, you should receive a url. - If you wish to generate an executable, run
./makedist.sh
andpyinstaller SysAdmin.spec
- Run
chmod +x install.sh
to makeinstall.sh
executable. NOTE:install.sh
andSysAdmin
have to be in the same directory. - Run
./install.sh
to start the server - Enter an email when prompted
- At this point, SysAdmin will have been installed as a service