MonkeyDrainer Update
Option 1: Automatic Update
MonkeyDrainer supports automatic updates, which requires configuring UpdateKeys (special SSH keys). These keys allow your server to receive updates directly from the private repository, ensuring you are always using the latest version without needing to manually download archives.
Steps to set up automatic updates:
Generating UpdateKeys:
- Keys are generated automatically. Simply run the
runner.sh
script and select 9 — Generate UpdateKeys in the menu. - Public keys will be generated and displayed on the screen.
- Keys are generated automatically. Simply run the
Send the public keys to the developer:
- Why is this necessary? The public keys are needed by the developer to add them to the whitelist, which will allow your server to receive updates directly from the private MonkeyDrainer repositories.
- After generating the keys, you need to send the public keys to the developer.
How does it work?
- Once the developer adds your keys to the whitelist, you will be able to update the project and add-ons directly using the script functions.
- The system automatically checks for updates each time you run the script.
Running the update script:
- Run the script:bash
./runner.sh
- The script will automatically check for updates for both the main project and the add-on:bash
[FusionRunner] Checking updates for MonkeyDrainer... [FusionRunner] Main repository has updates available. [FusionRunner] Checking for FusionHoneypotAddon updates... [FusionRunner] Addon repository is up-to-date.
- Run the script:
Updating the project:
- In the menu, select 8 — Sync updates drainer & addon. The script will automatically:
- Download the latest updates from the main and add-on repositories.
- Rebuild Docker containers.
- Restart all services with the updates.
- In the menu, select 8 — Sync updates drainer & addon. The script will automatically:
Option 2: Manual Update Using a ZIP Archive
If for any reason you don't want to use automatic updates via GitHub, or you don't have internet access, you can manually update the project using a ZIP archive.
Steps for manual update:
Download and unpack the archive: Download the update archive to the server and unpack it:
bashunzip /path/to/fusion-drainer-update.zip
Move files from the
fusion-drainer-main
folder: After unpacking, ensure that all files are in thefusion-drainer-main
folder. Move the contents of this folder to your project directory:bashrsync -av --remove-source-files fusion-drainer-main/ /path/to/fusion-drainer/
Run the rebuild through
runner.sh
: Go to the project directory and run the script to rebuild the containers:bashcd /path/to/fusion-drainer ./runner.sh
Select the rebuild option: In the menu, select 7 — Rebuild project. The script will rebuild and restart all containers.
Check the status of the containers: Select 5 — Check container status in the menu to ensure that all containers are running correctly.
MonkeyDrainer Migration
Migration to 1.6.1
Add a new
destination
parameter to theton
section of theconfig.yaml
file. This is the address where the funds or tokens will be sent:yamlton: destination: "UQ..."
Rebuild all drainers for clients through the Telegram bot. Select "⚒️ Build Drainer" for each build.
Migrating to 1.5.9-beta
- Remove the
honeypot
section from theconfig.yaml
file. - Remove all mentions of
decimals
from the configuration and integration. Parameters related to manually settingdecimals
are no longer needed — the script now handles this automatically. - Add the new
mnemonic
parameter in theton
section for working with private keys and smart contracts:yamlton: mnemonic: "your mnemonic phrase"
- Rebuild all drainers for clients via the Telegram bot. Select "⚒️ Build Drainer" for each build.