-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.py
45 lines (37 loc) · 1.07 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
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/python3
# -*- Author : karnain -*-
#
# This user interface provides users with a command console interface to the
# Framework.
#
import os as console
from configparser import ConfigParser
import subprocess as system
add = {}
class main:
def initialize(require):
global add
if console.path.isfile(require):
add = ConfigParser()
add.read(require)
add["include"] = {
'banner': add.get('require','banner'),
'system': add.get('require','system')
}
return True
def HacktivityAction():
PATH = add["include"]["banner"]
console.system("clear")
system.run(["python3", PATH])
initialize(console.path.join(console.path.dirname(console.path.realpath(__file__))) + "/config/LinkTracker.cfg")
HacktivityAction()
def main_control():
try:
PATH = add["include"]["system"]
system.run(["python3", PATH])
except EOFError:
console.system("clear")
pass
if __name__ == "__main__":
main()
main_control()