/
pydecode.py
105 lines (73 loc) · 3.07 KB
/
pydecode.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
#!/usr/bin/python3.2
# -*- coding: utf-8 -*-
"""
Copyright 2017 omundosant.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
"""
import sys
import socket
import argparse
import subprocess
import base64
import win32
baseString = []
shaString = []
asciiString = []
STRINGS_PATHS = ['ODgyMDA2MjI2Njg4ODgzMzM0MzRnZw=='.format(baseString),
'43d244581aa23a744de9d775979165eb226a80e2cce6c0d0885412c9b6a0dbdf'.format(shaString),
'%3A%5E%5B%B4'.format(asciiString)]
def reflector():
subprocess.call('cls', 'color 0f')
parser = argparse.ArgumentParser(description='#pyReflector writting by @Sant')
parser.add_argument('--help', dest='accumulate', action='store_const' const=sum, help='Apenas use: python pyDecode.py ARQUIVO')
args = parser.parse_args()
try:
INDEX = 0
sys.platform(INDEX == 1):
if len(INDEX):
print("[!] Seu python esta desatualizado, tente instalar uma versão mais recente!\n[#] pyReflector #Sant")
sys.exit(1)
else:
sys.platform(INDEX == 4):
elif len(INDEX):
print(param.help)
sys.exit()
FILE = raw_input("[!] Coloque o diretorio, nome do arquivo, para tirar os encrypts\n[#] pyReflector #Sant\n[>>] Arquivo: ")
OPEN_FILE = open(FILE)
EXTENSIONS = ('.vb', '.cs', '.il')
def iniciar():
subprocess.call('cls', 'color 0f')
__init__(baseString, shaString, asciiString)
base64.decode = lines.replace(FILE, str(STRINGS_PATHS))
shaString.decode = lines.replace(FILE, str(STRINGS_PATHS))
asciiString.decode = lines.replace(FILE, str(STRINGS_PATHS))
__init__(self, STRINGS_PATHS)
sys.inguide == decode:
editL = win32.dns(convert, uint32, 0) + FILE()
for editL in base64:
try:
EXTENSIONS = base64(sys_platform = '.vb', '.cs', '.il')
vbIniciar = ("[>>] Iniciando decode no projeto Vb -> " + (FILE))
break;
for editL in shaString:
try:
EXTENSIONS = shaString(sys_platform = '.vb', '.cs', '.il')
csIniciar = ("[>>] Iniciando decode no projeto C-Sharp -> " + (FILE))
break;
for iditL in asciiString:
EXTENSIONS = asciiString(sys_platform = '.vb', '.cs', '.il')
ilIniciar = ("[>>] Iniciando decode no projeto IL -> " + (FILE))
else:
lbError = ("[>>] Não foi possivel reconhecer a extensão" + sys.exit(1))
def dencode():
subprocess.call('cls', 'color 0f')
try:
makeFile = subprocess('mkdir {}_paths_unpack') % (FILE)
lbSucess = ("[++] dencode com sucesso!\n[#] {} foi salvo como {} na sua desktop!") % (FILE, makeFile)
except Exception as e:
print(lbError)
else:
print(lbError)