-
Notifications
You must be signed in to change notification settings - Fork 0
/
fn.py
65 lines (55 loc) · 2.35 KB
/
fn.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
#!/usr/bin/env python3
import sys
import os
from Crypto.Cipher import DES
import base64
PASSWORDS = {
'.ost': base64.b64decode(b'4pyF2Y5PU1Q='), # OUSS Tunnel
'.agn': b'letsmake', # Agn Injector
'.vpc': b'cinbdf66', # VPN Custom
'.Fɴ': b'cinbdf66', # FN Injector
'.clay': b'cinbdf66', # CLAY Custom
'.jvi': b'cinbdf66', #
'.jvc': b'agstgfoh', # JV CUSTOM
'.v2i': b'cinbdf66',
}
def pad(text):
while len(text) % 8 != 0:
text += ' '
return text
def decrypt_des(encrypted_bytes, key_bytes, file_extension):
key_bytes = key_bytes.decode('utf-8').encode('utf-8')
cipher = DES.new(key_bytes, DES.MODE_ECB)
decrypted_bytes = cipher.decrypt(encrypted_bytes)
return decrypted_bytes.decode('utf-8', errors='ignore').strip()
def apply_filter(contents, file_extension):
filtered_contents = f"\n ┌───────────────\n│ open((vpn)) ({file_extension})\n│Channel : https://t.me/mkldec1\n├───────────────\n"
lines = contents.split('\n')
for line in lines:
if line.strip().startswith("<entry"):
key_value = line.strip().replace("<entry key=\"", "").replace("</entry>", "").replace('"/>', '').split("\">")
if len(key_value) > 1:
key, value = key_value
filtered_contents += f"├◉ {key}: {value}\n"
filtered_contents += "├───────────────\n├◉ 𝗗𝗲𝗰𝗿𝘆𝗽𝘁𝗲𝗱𝗕𝘆: @mujta1nsshbot \n├◉ 𝗚𝗥𝗢𝗨𝗣 : @mkldec \n└───────────────\n"
return filtered_contents
def decrypt_file(input_file, passwords):
with open(input_file, 'rb') as f:
encrypted_bytes = f.read()
file_extension = os.path.splitext(input_file)[1]
if file_extension in passwords:
key_bytes = passwords[file_extension]
try:
decrypted_text = decrypt_des(encrypted_bytes, key_bytes, file_extension)
filtered_text = apply_filter(decrypted_text, file_extension)
print(filtered_text)
except Exception as e:
print(f"Error decrypting: {e}")
def main():
if len(sys.argv) != 2:
print("Uso: python3 script.py <archivo>")
sys.exit(1)
input_file = sys.argv[1]
decrypt_file(input_file, PASSWORDS)
if __name__ == "__main__":
main()