This guide provides step-by-step instructions for setting up a BTMOB / AtomicRAT server on a Windows Server 2022 VPS or VDS.
- A VPS or VDS running Windows Server 2022
- Administrative access to the server
- Active internet connection for downloading software and dependencies
Acquire a VPS or VDS with Windows Server 2022. Temporarily disable Windows Firewall and antivirus software to avoid installation issues. Re-enable them after setup with appropriate rules.
- Open Control Panel > System and Security > Windows Defender Firewall > Turn Windows Defender Firewall on or off, then disable it.
- Disable any antivirus software temporarily (e.g., Windows Defender).
Open Server Manager > Add Roles and Features. Select Role-based or feature-based installation, choose your server, and enable Web Server (IIS) with the following features:
- CGI (under Web Server > Application Development)
- WebSocket Protocol (under Web Server > Application Development)
Complete the installation and verify IIS is running by accessing http://localhost in a browser.
- Download PHP 8.3.x (Non-Thread-Safe) from
https://windows.php.net/download/. - Extract the ZIP file to
C:\PHP. - Install the Visual C++ Redistributable (x64) from
https://aka.ms/vs/16/release/vc_redist.x64.exe. - Add
C:\PHPto the system environment PATH:- Open Control Panel > System and Security > System > Advanced system settings > Environment Variables.
- Under System Variables, edit Path and add
C:\PHP.
- Configure IIS for PHP:
- Open IIS Manager > Handler Mappings > Add Module Mapping.
- Set the following values:
- Request path:
*.php - Module:
FastCgiModule - Executable:
C:\PHP\php-cgi.exe - Name:
PHP via FastCGI
- Request path:
- Click OK and restart IIS.
- Download and install Node.js (LTS version) from
https://nodejs.org/. - Download IISNode from
https://github.com/tjanczuk/iisnodeand install it. - Install the URL Rewrite module for IIS from
https://www.iis.net/downloads/microsoft/url-rewrite. - Verify the Node.js installation by opening Command Prompt and running:
node --version
npm --version
In IIS Manager, confirm the WebSocket Protocol is listed under Web Server > Application Development. If it is not enabled, revisit Step 2 to add it.
- Download MySQL Installer from
https://dev.mysql.com/downloads/installer/. - Install MySQL Server 8.0 and configure it with a secure root password.
- Add MySQL to the system environment PATH:
- Edit System Variables > Path and add
C:\Program Files\MySQL\MySQL Server 8.0\bin.
- Edit System Variables > Path and add
- Verify the installation by running in Command Prompt:
mysql --version
- Download phpMyAdmin from
https://www.phpmyadmin.net/. - Extract the files to
C:\inetpub\wwwroot\phpmyadmin. - Configure
config.inc.phpin the phpMyAdmin folder:
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'your_mysql_root_password';- Access phpMyAdmin at
http://localhost/phpmyadminto verify the setup.
- Download JDK 21 from
https://www.oracle.com/java/technologies/downloads/. - Install it to
C:\Program Files\Java\jdk-21. - Add JDK to the system environment PATH:
- Edit System Variables > Path and add
C:\Program Files\Java\jdk-21\bin.
- Edit System Variables > Path and add
- Verify the installation by running in Command Prompt:
java --version
- In
C:\PHP, copyphp.ini-productionand rename it tophp.ini. - Edit
php.inito enable the following extensions:
extension=mysqli
extension=openssl
- Ensure any other configuration files (for IIS or Node.js) provided by the BTMOB setup package are also copied to their correct locations.
- Open IIS Manager > Application Pools.
- Select the default application pool or create a new one for BTMOB.
- Set the following values:
- .NET CLR Version: No Managed Code
- Identity: ApplicationPoolIdentity
- Go to Sites > Default Web Site > Authentication.
- Enable Anonymous Authentication and disable all others unless specifically required.
Open Command Prompt and run the following command, then wait for the server to fully restart:
shutdown /r /t 0
- Access phpMyAdmin at
http://localhost/phpmyadmin. - Create a new database (e.g.,
btmob_db). - Go to the Import tab, select the provided
.sqlfile, and click Go.
- In phpMyAdmin, select the
btmob_dbdatabase and open theresellerstable. - Insert a new row with the admin key generated by the Python script or provided by BTMOB.
- Copy the BTMOB site files to
C:\inetpub\wwwroot\yaarsa. - In the
yaarsa\privatefolder, edit the following files:yarsap_85401.php: Replace[DB-PASS]with your MySQL root password.yarsap_80541.php: Replace[server_ip]with your server's public IP address.
- Navigate to
C:\inetpub\wwwroot\yaarsa\serverin Command Prompt. - Install PM2 globally:
npm install pm2 -g
- Start the WebSocket server:
pm2 start websocket-server.js
Open a browser and navigate to the following URL, replacing the IP address with your server's public IP:
http://YOUR_SERVER_IP/yaarsa/user/create999.php
Confirm the admin panel loads correctly. The BTMOB server is now ready.
- Copy the
.ps1file from the optionals folder to the server. - Open PowerShell as Administrator.
- Navigate to the directory containing the
.ps1file and run:
.\script_name.ps1
- Follow any script-specific instructions provided.
PHP issues
Ensure php.ini is correctly configured and C:\PHP is added to the system PATH.
MySQL errors
Verify MySQL is running by executing mysqladmin -u root -p status and confirm the root password is correct.
IIS access denied
Check the anonymous authentication settings and verify folder permissions for C:\inetpub\wwwroot.
WebSocket failure
Confirm the WebSocket Protocol is enabled in IIS and that PM2 is running with pm2 status.