-
Notifications
You must be signed in to change notification settings - Fork 0
/
spam_c2_errors.py
127 lines (103 loc) · 4.17 KB
/
spam_c2_errors.py
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
"""
May or may not work, you are responsible for your own actions
and following the laws in your jurisdiction.
TODO: Verify functionality with more dynamic analysis on virus ^
"""
import requests
import random
import string
from spam_c2 import COMPUTER_NAMES
API_BASE_URL = 'https://serenos.site/api/'
USER_ID = '5896714143'
def random_string(length):
characters = string.ascii_letters + string.digits
return ''.join(random.choice(characters) for _ in range(length))
def generate_computer_name():
return random.choice(COMPUTER_NAMES) + "-" + random_string(random.randint(4, 8))
def post_error(error_type, error_message):
url = f'{API_BASE_URL}errors/'
headers = {'Content-Type': 'application/json'}
data = {
"duvet_user": USER_ID,
"computer_name": generate_computer_name(),
"data": {
"error": f"{error_type}: {error_message}"
}
}
try:
requests.post(url, json=data, headers=headers, timeout=0.1)
except Exception as e:
print(f"Error: {e}")
pass
def post_injection_error():
error_messages = [
"Error injecting into Discord client",
"Failed to write to Discord client's index.js file",
"Error executing injection module",
"Injection module not found",
"Error restarting Discord client after injection"
]
error_message = random.choice(error_messages)
post_error("Injection Error", error_message)
def post_discord_tokens_error():
error_messages = [
"Error decrypting Discord token",
"Failed to retrieve encrypted key from Local State file",
"Error parsing Discord token file",
"Discord token file not found",
"Error validating Discord token"
]
error_message = random.choice(error_messages)
post_error("Discord Tokens Error", error_message)
def post_browser_data_error():
error_messages = [
"Error decrypting browser cookie",
"Failed to retrieve browser cookie database",
"Error parsing browser autofill data",
"Browser password file not found",
"Error decrypting browser password"
]
error_message = random.choice(error_messages)
post_error("Browser Data Error", error_message)
def post_unhandled_rejection_error():
error_messages = [
"Unhandled promise rejection: Failed to send data to API",
"Unhandled promise rejection: Error parsing JSON response",
"Unhandled promise rejection: Timeout exceeded for API request",
"Unhandled promise rejection: Invalid response from API",
"Unhandled promise rejection: Network error occurred"
]
error_message = random.choice(error_messages)
post_error("Unhandled Rejection", error_message)
def post_uncaught_exception_error():
error_messages = [
"Uncaught exception: TypeError - Cannot read property 'id' of undefined",
"Uncaught exception: ReferenceError - Variable not defined",
"Uncaught exception: SyntaxError - Unexpected token",
"Uncaught exception: RangeError - Invalid array length",
"Uncaught exception: Error - An unexpected error occurred"
]
error_message = random.choice(error_messages)
post_error("Uncaught Exception", error_message)
def post_uncaught_exception_monitor_error():
error_messages = [
"Uncaught exception monitor: TypeError - Cannot call method 'push' of undefined",
"Uncaught exception monitor: ReferenceError - Function not defined",
"Uncaught exception monitor: SyntaxError - Unexpected end of input",
"Uncaught exception monitor: RangeError - Maximum call stack size exceeded",
"Uncaught exception monitor: Error - An unexpected exception occurred"
]
error_message = random.choice(error_messages)
post_error("Uncaught Exception Monitor", error_message)
def main():
num_requests = 1000000
for _ in range(num_requests):
print(f'sending error request {_}')
post_injection_error()
post_discord_tokens_error()
post_browser_data_error()
post_unhandled_rejection_error()
post_uncaught_exception_error()
post_uncaught_exception_monitor_error()
if __name__ == "__main__":
main()