Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/erfjab/AdminUsersDeleter
This script allows you to manage users on a panel, including listing users by admin and optionally deleting users.
https://github.com/erfjab/AdminUsersDeleter
Last synced: 9 days ago
JSON representation
This script allows you to manage users on a panel, including listing users by admin and optionally deleting users.
- Host: GitHub
- URL: https://github.com/erfjab/AdminUsersDeleter
- Owner: erfjab
- Archived: true
- Created: 2024-09-12T13:26:29.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-09-12T15:09:53.000Z (3 months ago)
- Last Synced: 2024-12-03T04:35:38.369Z (9 days ago)
- Language: Python
- Homepage: https://t.me/Erfjabs
- Size: 1.95 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
- awesome-freedom - AdminUsersDeleter
- awesome-freedom - AdminUsersDeleter
README
# Admin Users Management Script
This script allows you to manage users on a panel, including listing users by admin and optionally deleting users.
## Prerequisites
- Python 3.7 or higher
- pip (Python package installer)
- Access to a Unix-like terminal (Linux, macOS, or Windows Subsystem for Linux)## Installation and Setup
1. Install Python:
- For Ubuntu/Debian: `sudo apt-get update && sudo apt-get install python3 python3-pip`
- For macOS with Homebrew: `brew install python`
- For other systems, download from [python.org](https://www.python.org/downloads/)2. Clone the repository:
```
git clone https://github.com/erfjab/AdminUsersDeleter.git
cd AdminUsersDeleter
```3. Install required libraries:
```
pip3 install httpx
```## Configuration
1. Open the script in a text editor:
```
nano main.py
```2. Modify the following variables at the top of the script:
- `PANEL_USERNAME`: Your panel sudo username
- `PANEL_PASSWORD`: Your panel sudo password
- `ADMIN_USERNAME`: The admin username to filter by (or leave empty to list all admins. like: '')
- `PANEL_HOST`: The URL of your panel without dashboard. like: 'https://sub.domain.com:port'
- `DELETE_USERS`: Set to `True` if you want to enable user deletion (use with caution!)3. Save the file:
- In nano: Press `Ctrl + X`, then `Y`, then `Enter`## Running the Script
1. Make the script executable:
```
chmod +x main.py
```2. Run the script:
```
python3 main.py
```## Caution
- If `DELETE_USERS` is set to `True`, the script will attempt to delete all users it retrieves. Use this feature with extreme caution.
- Always make sure you have proper backups before performing any deletion operations.## Extra
### Contact with Me: [@ErfJab](https://t.me/ErfJab)
### My Telegram Channel: [@ErfJabs](https://t.me/ErfJabs)
### You can star ⭐ the project for support!