-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathutils.py
80 lines (60 loc) · 2.95 KB
/
utils.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
#!/usr/bin/python3
#-*- coding: utf-8 -*-
######################################################
# Dextripador
# File: utils.py
# Version: 0.7
######################################################
VERSION = 0.7
COMMAND_FLAG = False
VERBOSE_1 = False
VERBOSE_2 = False
VERBOSE_3 = False
credits = '''
██████╗ ███████╗██╗ ██╗████████╗██████╗ ██╗██████╗ █████╗ ██████╗ ██████╗ ██████╗
██╔══██╗██╔════╝╚██╗██╔╝╚══██╔══╝██╔══██╗██║██╔══██╗██╔══██╗██╔══██╗██╔═══██╗██╔══██╗
██║ ██║█████╗ ╚███╔╝ ██║ ██████╔╝██║██████╔╝███████║██║ ██║██║ ██║██████╔╝
██║ ██║██╔══╝ ██╔██╗ ██║ ██╔══██╗██║██╔═══╝ ██╔══██║██║ ██║██║ ██║██╔══██╗
██████╔╝███████╗██╔╝ ██╗ ██║ ██║ ██║██║██║ ██║ ██║██████╔╝╚██████╔╝██║ ██║
╚═════╝ ╚══════╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝╚═╝╚═╝ ╚═╝ ╚═╝╚═════╝ ╚═════╝ ╚═╝ ╚═╝
Version %0.1f
Dextripador is a tool aimed to provide parsing of odex files and internal dex files,
with the possibility to extract these latter.
This tool is part of a research made by UC3M COSEC Lab & IMDEA Networks.
Programmers & Ideas:
- Eduardo Blazquez
- Julien Gamba
https://androidobservatory.com
''' % (VERSION)
def SET_COMMAND_FLAG(BOOLEAN):
global COMMAND_FLAG
COMMAND_FLAG = BOOLEAN
def SET_VERBOSE1(BOOLEAN):
global VERBOSE_1
VERBOSE_1 = BOOLEAN
def SET_VERBOSE2(BOOLEAN):
global VERBOSE_2
VERBOSE_2 = BOOLEAN
def SET_VERBOSE3(BOOLEAN):
global VERBOSE_3
VERBOSE_3 = BOOLEAN
class Printer():
def print(msg):
global COMMAND_FLAG
if COMMAND_FLAG:
print(msg)
def verbose1(msg):
global COMMAND_FLAG
global VERBOSE_1
if COMMAND_FLAG and VERBOSE_1:
print(msg)
def verbose2(msg):
global COMMAND_FLAG
global VERBOSE_2
if COMMAND_FLAG and VERBOSE_2:
print(msg)
def verbose3(msg):
global COMMAND_FLAG
global VERBOSE_3
if COMMAND_FLAG and VERBOSE_3:
print(msg)