From efe2e99c275d1129e946192f52edb7e414b57943 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Wed, 15 Jun 2022 13:11:38 +0200 Subject: [PATCH 01/10] requirement.txt, not requirements.txt Normally the filename is plural, not singular. --- .github/workflows/lint_python.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint_python.yml b/.github/workflows/lint_python.yml index 6557c0e..4ae1bf8 100644 --- a/.github/workflows/lint_python.yml +++ b/.github/workflows/lint_python.yml @@ -5,7 +5,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: actions/setup-python@v3 + - uses: actions/setup-python@v4 - run: pip install --upgrade pip wheel - run: pip install bandit black codespell flake8 flake8-bugbear flake8-return flake8-comprehensions isort mypy pytest pyupgrade safety @@ -15,7 +15,7 @@ jobs: - run: flake8 --ignore=E124,E128,E225,E251,E302,R502,R503,W291,W293,W605 --max-complexity=11 --max-line-length=265 --show-source --statistics . - run: isort --check-only --profile black . || true - - run: pip install -r requirements.txt || pip install --editable . || pip install . || true + - run: pip install -r requirement.txt || pip install -r requirements.txt || pip install --editable . || pip install . || true - run: mkdir --parents --verbose .mypy_cache - run: mypy --ignore-missing-imports --install-types --non-interactive . || true - run: pytest . || true From a3d52afc84c37e2817e7848b1d4112474b8bfd2b Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Wed, 15 Jun 2022 13:14:51 +0200 Subject: [PATCH 02/10] Update lint_python.yml --- .github/workflows/lint_python.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/lint_python.yml b/.github/workflows/lint_python.yml index 4ae1bf8..eee4a73 100644 --- a/.github/workflows/lint_python.yml +++ b/.github/workflows/lint_python.yml @@ -6,6 +6,8 @@ jobs: steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 + with: + python-version: '3.x' - run: pip install --upgrade pip wheel - run: pip install bandit black codespell flake8 flake8-bugbear flake8-return flake8-comprehensions isort mypy pytest pyupgrade safety From a8291d2bacca51715d3268d8bb491c0b22ae749f Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Wed, 15 Jun 2022 13:21:47 +0200 Subject: [PATCH 03/10] Update generate_readme.py --- generate_readme.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generate_readme.py b/generate_readme.py index 5990fd2..1b90a03 100644 --- a/generate_readme.py +++ b/generate_readme.py @@ -3,7 +3,7 @@ import re from core import HackingTool from core import HackingToolsCollection -from main import all_tools +from hackingtool import all_tools def sanitize_anchor(s): From a62716c5a48af6526fa5bd045f5f24ae718258a5 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Wed, 15 Jun 2022 13:26:49 +0200 Subject: [PATCH 04/10] Fix two mypy issues --- hackingtool.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/hackingtool.py b/hackingtool.py index 7514d80..619bf18 100644 --- a/hackingtool.py +++ b/hackingtool.py @@ -105,13 +105,14 @@ if __name__ == "__main__": if not os.path.exists(archive): os.mkdir(archive) os.chdir(archive) - all_tools = AllTools() - all_tools.show_options() + AllTools().show_options() # If not Linux and probably Windows elif system() == "Windows": print( - "\033[91m Please Run This Tool On A Debian System For Best Results " "\e[00m") + "\033[91m Please Run This Tool On A Debian System For Best Results " + r"\e[00m" + ) sleep(2) webbrowser.open_new_tab("https://tinyurl.com/y522modc") From 920a43ee38158c87a7ec14ef6a057e0911d40a85 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Wed, 15 Jun 2022 13:32:11 +0200 Subject: [PATCH 05/10] Update hackingtool.py --- hackingtool.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hackingtool.py b/hackingtool.py index 619bf18..00f6ef7 100644 --- a/hackingtool.py +++ b/hackingtool.py @@ -110,8 +110,7 @@ if __name__ == "__main__": # If not Linux and probably Windows elif system() == "Windows": print( - "\033[91m Please Run This Tool On A Debian System For Best Results " - r"\e[00m" + r"\033[91m Please Run This Tool On A Debian System For Best Results\e[00m" ) sleep(2) webbrowser.open_new_tab("https://tinyurl.com/y522modc") From 16ccd5066d9fc1add4694d491cbad6e94ef9f30f Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Wed, 15 Jun 2022 13:37:12 +0200 Subject: [PATCH 06/10] Fix mypy issue --- tools/forensic_tools.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/forensic_tools.py b/tools/forensic_tools.py index 57e9d92..592988e 100644 --- a/tools/forensic_tools.py +++ b/tools/forensic_tools.py @@ -8,10 +8,10 @@ from core import HackingToolsCollection class Autopsy(HackingTool): TITLE = "Autopsy" DESCRIPTION = "Autopsy is a platform that is used by Cyber Investigators.\n" \ - "[!] Works in any Os\n" \ - "[!] Recover Deleted Files from any OS & MEdia \n" \ + "[!] Works in any OS\n" \ + "[!] Recover Deleted Files from any OS & Media \n" \ "[!] Extract Image Metadata" - RUN_COMMANDS = "sudo autopsy" + RUN_COMMANDS = ["sudo autopsy"] def __init__(self): super(Autopsy, self).__init__(installable = False) From fb4f05aad6d943f95969dd3dad613c076b9b98a9 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Wed, 15 Jun 2022 13:37:49 +0200 Subject: [PATCH 07/10] make mypy a mandatory test --- .github/workflows/lint_python.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lint_python.yml b/.github/workflows/lint_python.yml index eee4a73..bdf7288 100644 --- a/.github/workflows/lint_python.yml +++ b/.github/workflows/lint_python.yml @@ -19,7 +19,7 @@ jobs: - run: isort --check-only --profile black . || true - run: pip install -r requirement.txt || pip install -r requirements.txt || pip install --editable . || pip install . || true - run: mkdir --parents --verbose .mypy_cache - - run: mypy --ignore-missing-imports --install-types --non-interactive . || true + - run: mypy --ignore-missing-imports --install-types --non-interactive . - run: pytest . || true - run: pytest --doctest-modules . || true - run: shopt -s globstar && pyupgrade --py36-plus **/*.py || true From c6796a9e2f9360a3838bd2f22db037728f137541 Mon Sep 17 00:00:00 2001 From: sanix-darker Date: Sun, 26 Jun 2022 14:32:07 +0200 Subject: [PATCH 08/10] feat: format out put and group commands - set the trace (set -e) - format output from tabs to sapces, since it's most verbose - group installation in oneline preventing bash to run multiple command --- install.sh | 85 ++++++++++++++++++++++++------------------------------ 1 file changed, 38 insertions(+), 47 deletions(-) diff --git a/install.sh b/install.sh index 3ef2ae9..a5c3b6e 100644 --- a/install.sh +++ b/install.sh @@ -1,4 +1,7 @@ #!/bin/bash + +set -e + clear BLACK='\e[30m' @@ -26,11 +29,8 @@ echo " ███ █▀ ███ █▀ ████████ echo " ▀ ▀ "; echo -e "${BLUE} https://github.com/Z4nzu/hackingtool ${NC}" - -echo -e "${RED} [!] This Tool Must Run As ROOT [!]${NC}" -echo "" -echo -e ${CYAN} "Select Best Option : " -echo "" +echo -e "${RED} [!] This Tool Must Run As ROOT [!]${NC}\n" +echo -e ${CYAN} "Select Best Option : \n" echo -e "${WHITE} [1] Kali Linux / Parrot-Os (apt)" echo -e "${WHITE} [2] Arch Linux (pacman)" # added arch linux support because of feature request #231 echo -e "${WHITE} [0] Exit " @@ -42,15 +42,15 @@ if [ $choice == 1 ] || [ $choice == 2 ]; then echo "[*] Checking Internet Connection .." wget -q --tries=10 --timeout=20 --spider https://google.com if [[ $? == 0 ]]; then - echo -e ${BLUE}"[✔] Loading ... " - if [ $choice == 1 ]; then - sudo apt-get update && apt-get upgrade - sudo apt-get install python3-pip - elif [ $choice == 2 ]; then # added arch linux support because of feature request #231 - sudo pacman -Suy - sudo pacman -S python-pip - sudo pacman -S yay - fi + echo -e ${BLUE}"[✔] Loading ... " + if [ $choice == 1 ]; then + sudo apt-get update -y && apt-get upgrade -y + sudo apt-get install python3-pip -y + elif [ $choice == 2 ]; then # added arch linux support because of feature request #231 + sudo pacman -Suy + sudo pacman -S python-pip yay + fi + echo "[✔] Checking directories..." if [ -d "$INSTALL_DIR" ]; then echo "[!] A Directory hackingtool Was Found.. Do You Want To Replace It ? [y/n]:" ; @@ -61,45 +61,36 @@ if [ $choice == 1 ] || [ $choice == 2 ]; then exit fi fi - echo "[✔] Installing ..."; - echo ""; - sudo git clone https://github.com/Z4nzu/hackingtool.git "$INSTALL_DIR"; - echo "#!/bin/bash - python3 $INSTALL_DIR/hackingtool.py" '${1+"$@"}' > hackingtool; - sudo chmod +x hackingtool; - sudo cp hackingtool /usr/bin/; - rm hackingtool; - echo ""; - echo "[✔] Trying to installing Requirements ..." - if [ $choice == 1 ]; then - sudo pip3 install lolcat - sudo apt-get install -y figlet - sudo pip3 install boxes - sudo apt-get install boxes - sudo pip3 install flask - sudo pip3 install requests - elif [ $choice == 2 ]; then # added arch linux support because of feature request #231 - sudo pip3 install lolcat - sudo pacman -S figlet - sudo pip3 install boxes - yay -S boxes --noconfirm - sudo pip3 install flask - sudo pip3 install requests - fi + + echo "[✔] Installing ...\n"; + sudo git clone https://github.com/Z4nzu/hackingtool.git "$INSTALL_DIR"; + echo "#!/bin/bash + python3 $INSTALL_DIR/hackingtool.py" '${1+"$@"}' > hackingtool; + sudo chmod +x hackingtool; + sudo cp hackingtool /usr/bin/ && rm hackingtool; + + echo "\n[✔] Trying to installing Requirements ..." + if [ $choice == 1 ]; then + sudo pip3 install lolcat boxes flask requests + sudo apt-get install -y figlet + elif [ $choice == 2 ]; then # added arch linux support because of feature request #231 + sudo pip3 install lolcat boxes flask requests + yay -S boxes --noconfirm + sudo pacman -S figlet + fi + else echo -e $RED "Please Check Your Internet Connection ..!!" fi if [ -d "$INSTALL_DIR" ]; then echo ""; - echo "[✔] Successfuly Installed !!! "; - echo ""; - echo ""; - echo -e $ORANGE " [+]+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++[+]" - echo " [+] [+]" - echo -e $ORANGE " [+] ✔✔✔ Now Just Type In Terminal (hackingtool) ✔✔✔ [+]" - echo " [+] [+]" - echo -e $ORANGE " [+]+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++[+]" + echo "[✔] Successfuly Installed !!! \n\n"; + echo -e $ORANGE " [+]+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++[+]" + echo " [+] [+]" + echo -e $ORANGE " [+] ✔✔✔ Now Just Type In Terminal (hackingtool) ✔✔✔ [+]" + echo " [+] [+]" + echo -e $ORANGE " [+]+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++[+]" else echo "[✘] Installation Failed !!! [✘]"; exit From ad65f918856e568d514598f7dca1a021182e6457 Mon Sep 17 00:00:00 2001 From: jg <57115019+joeyagreco@users.noreply.github.com> Date: Thu, 30 Jun 2022 00:02:37 -0500 Subject: [PATCH 09/10] added Ranger Reloaded --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b6057ee..86b42f0 100644 --- a/README.md +++ b/README.md @@ -70,7 +70,8 @@ - [Striker](https://github.com/s0md3v/Striker) - [SecretFinder (like API & etc)](https://github.com/m4ll0k/SecretFinder) - [Find Info Using Shodan](https://github.com/m4ll0k/Shodanfy.py) -- [Port Scanner - rang3r](https://github.com/floriankunushevci/rang3r) +- [Port Scanner - rang3r (Python 2.7)](https://github.com/floriankunushevci/rang3r) +- [Port Scanner - Ranger Reloaded (Python 3+)](https://github.com/joeyagreco/ranger-reloaded) - [Breacher](https://github.com/s0md3v/Breacher) ### Wordlist Generator - [Cupp](https://github.com/Mebus/cupp.git) From 15c3d75853f2d084b665e89bd31ffbabc2f8666c Mon Sep 17 00:00:00 2001 From: BALA MURUGAN GANESAN <82383377+TheDeveloperOps@users.noreply.github.com> Date: Mon, 26 Sep 2022 17:57:09 +0530 Subject: [PATCH 10/10] Update phising_attack.py I have updated one depricated phishing attack tool from this (https://github.com/DarkSecDevelopers/HiddenEye) to this https://github.com/Morsmalleo/HiddenEye . --- tools/phising_attack.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/phising_attack.py b/tools/phising_attack.py index 9b30a6c..b03fe0f 100644 --- a/tools/phising_attack.py +++ b/tools/phising_attack.py @@ -32,13 +32,13 @@ class HiddenEye(HackingTool): TITLE = "HiddenEye" DESCRIPTION = "Modern Phishing Tool With Advanced Functionality And " \ "Multiple Tunnelling Services \n" \ - "\t [!]https://github.com/DarkSecDevelopers/HiddenEye" + "\t [!]https://github.com/Morsmalleo/HiddenEye" INSTALL_COMMANDS = [ - "sudo git clone https://github.com/DarkSecDevelopers/HiddenEye.git ;sudo chmod 777 HiddenEye", + "sudo git clone https://github.com/Morsmalleo/HiddenEye.git ;sudo chmod 777 HiddenEye", "cd HiddenEye;sudo pip3 install -r requirements.txt;sudo pip3 install requests;pip3 install pyngrok" ] RUN_COMMANDS = ["cd HiddenEye;sudo python3 HiddenEye.py"] - PROJECT_URL = "https://github.com/DarkSecDevelopers/HiddenEye" + PROJECT_URL = "https://github.com/Morsmalleo/HiddenEye.git" class Evilginx2(HackingTool):