-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathTrojanCreator.py
109 lines (77 loc) · 2.11 KB
/
TrojanCreator.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
#!/bin/env python3
#import
import os
import sys
import time
#define colors
#find color guide at "https://stackoverflow.com/questions/287871/how-to-print-colored-text-to-the-terminal"
class bcolors:
HEADER = '\033[95m'
OKBLUE = '\033[94m'
OKCYAN = '\033[96m'
OKGREEN = '\033[92m'
WARNING = '\033[93m'
FAIL = '\033[91m'
ENDC = '\033[0m'
BOLD = '\033[1m'
UNDERLINE = '\033[4m'
PURPLE = '\033[35m'
RED = '\033[31m'
#define other stuff for later [(choice):42?]
yes = {'yes','y', 'ye', ''}
no = {'no','n'}
#define option list:
op1 = {'1'}
op2 = {'2'}
op3 = {'3'}
op4 = {'4'}
op5 = {'5'}
#print logo & credits
credits = """
- GitHub: "https://github.com/Purpl3Dev?tab=repositories"
- Telegram "@PurpleGitDev"
"""
logo = """
____ _ ____
| _ \ _ _ _ __ _ __ | | ___| _ \ _____ __
| |_) | | | | '__| '_ \| |/ _ \ | | |/ _ \ \ / /
| __/| |_| | | | |_) | | __/ |_| | __/\ V /
|_| \__,_|_| | .__/|_|\___|____/ \___| \_/
|_|
"""
print(bcolors.PURPLE + logo + bcolors.ENDC)
print(bcolors.OKBLUE + credits + bcolors.ENDC)
print(bcolors.UNDERLINE + bcolors.WARNING + "this tool is a collection of Android / Windows trojan generators ")
print(bcolors.UNDERLINE + bcolors.WARNING + "using Metasploit Framework, use with caution." + bcolors.ENDC)
print()
#choice
print(bcolors.HEADER + "Do you really want to continue? [y/N]")
choice = input().lower()
if choice in yes:
print("Let's start!")
time.sleep(1.5)
elif choice in no:
print('Exiting script...')
time.sleep(0.4)
print('Bye')
time.sleep(1.5)
exit()
else:
sys.stdout.write("Please respond with 'yes' or 'no'")
#new windows shell
os.system("clear")
print(bcolors.PURPLE + logo + bcolors.ENDC)
#print list of all scripts:
print('Chose an option:')
print('1 - Android Trojan')
print('3 - Exit')
#option1
choice = input().lower()
if choice in op1:
print('Option1 selected')
os.system("bash ApkTroianCreator.sh")
if choice in op3:
print('Exiting script...')
exit()
#commands to execute shell command
#os.system("")