Skip to content

AtomTM/yaarsa-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

BTMOB / AtomicRAT Server Installation Guide

This guide provides step-by-step instructions for setting up a BTMOB / AtomicRAT server on a Windows Server 2022 VPS or VDS.


Prerequisites

  • A VPS or VDS running Windows Server 2022
  • Administrative access to the server
  • Active internet connection for downloading software and dependencies

Installation Steps

Step 1 - Prepare the VPS/VDS

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).

Step 2 - Install IIS Web Server

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.


Step 3 - Install PHP 8.3.x (Non-Thread-Safe)

  1. Download PHP 8.3.x (Non-Thread-Safe) from https://windows.php.net/download/.
  2. Extract the ZIP file to C:\PHP.
  3. Install the Visual C++ Redistributable (x64) from https://aka.ms/vs/16/release/vc_redist.x64.exe.
  4. Add C:\PHP to 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.
  5. 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
    • Click OK and restart IIS.

Step 4 - Install Node.js and IISNode

  1. Download and install Node.js (LTS version) from https://nodejs.org/.
  2. Download IISNode from https://github.com/tjanczuk/iisnode and install it.
  3. Install the URL Rewrite module for IIS from https://www.iis.net/downloads/microsoft/url-rewrite.
  4. Verify the Node.js installation by opening Command Prompt and running:
node --version
npm --version

Step 5 - Enable WebSocket Features in IIS

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.


Step 6 - Install MySQL 8.0

  1. Download MySQL Installer from https://dev.mysql.com/downloads/installer/.
  2. Install MySQL Server 8.0 and configure it with a secure root password.
  3. Add MySQL to the system environment PATH:
    • Edit System Variables > Path and add C:\Program Files\MySQL\MySQL Server 8.0\bin.
  4. Verify the installation by running in Command Prompt:
mysql --version

Step 7 - Install phpMyAdmin

  1. Download phpMyAdmin from https://www.phpmyadmin.net/.
  2. Extract the files to C:\inetpub\wwwroot\phpmyadmin.
  3. Configure config.inc.php in the phpMyAdmin folder:
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'your_mysql_root_password';
  1. Access phpMyAdmin at http://localhost/phpmyadmin to verify the setup.

Step 8 - Install Java JDK 21

  1. Download JDK 21 from https://www.oracle.com/java/technologies/downloads/.
  2. Install it to C:\Program Files\Java\jdk-21.
  3. Add JDK to the system environment PATH:
    • Edit System Variables > Path and add C:\Program Files\Java\jdk-21\bin.
  4. Verify the installation by running in Command Prompt:
java --version

Step 9 - Configure PHP Settings

  1. In C:\PHP, copy php.ini-production and rename it to php.ini.
  2. Edit php.ini to enable the following extensions:
extension=mysqli
extension=openssl
  1. Ensure any other configuration files (for IIS or Node.js) provided by the BTMOB setup package are also copied to their correct locations.

Step 10 - Configure IIS Application Pool and Anonymous Access

  1. Open IIS Manager > Application Pools.
  2. Select the default application pool or create a new one for BTMOB.
  3. Set the following values:
    • .NET CLR Version: No Managed Code
    • Identity: ApplicationPoolIdentity
  4. Go to Sites > Default Web Site > Authentication.
  5. Enable Anonymous Authentication and disable all others unless specifically required.

Step 11 - Restart the Server

Open Command Prompt and run the following command, then wait for the server to fully restart:

shutdown /r /t 0

Step 12 - Import the Database

  1. Access phpMyAdmin at http://localhost/phpmyadmin.
  2. Create a new database (e.g., btmob_db).
  3. Go to the Import tab, select the provided .sql file, and click Go.

Step 13 - Add Admin Key to Database

  1. In phpMyAdmin, select the btmob_db database and open the resellers table.
  2. Insert a new row with the admin key generated by the Python script or provided by BTMOB.

Step 14 - Deploy the BTMOB Site

  1. Copy the BTMOB site files to C:\inetpub\wwwroot\yaarsa.
  2. In the yaarsa\private folder, 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.
  3. Navigate to C:\inetpub\wwwroot\yaarsa\server in Command Prompt.
  4. Install PM2 globally:
npm install pm2 -g
  1. Start the WebSocket server:
pm2 start websocket-server.js

Step 15 - Access the Admin Panel

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.


Step 16 - Optional: Run Additional PowerShell Script

  1. Copy the .ps1 file from the optionals folder to the server.
  2. Open PowerShell as Administrator.
  3. Navigate to the directory containing the .ps1 file and run:
.\script_name.ps1
  1. Follow any script-specific instructions provided.

Troubleshooting

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.

About

BTMOB / Atomic Server (Educacional only)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages