From 5a76933c4a3a4a3112b390bd4eed9510764ab4f1 Mon Sep 17 00:00:00 2001 From: Cactochan <85914469+mastercodermerwin@users.noreply.github.com> Date: Thu, 25 Aug 2022 06:18:56 +0530 Subject: [PATCH 1/5] Update run.sh --- run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run.sh b/run.sh index ed46789..432cf4e 100755 --- a/run.sh +++ b/run.sh @@ -21,6 +21,6 @@ # # #---------------------------------------------------------------------------# -python /opt/xerosploit/xerosploit.py +python3 /opt/xerosploit/xerosploit.py From aaa62f19d5ec2bee8fa90857fcca4c48dd1e1d9a Mon Sep 17 00:00:00 2001 From: Cactochan <85914469+mastercodermerwin@users.noreply.github.com> Date: Thu, 25 Aug 2022 06:33:57 +0530 Subject: [PATCH 2/5] Update install.py --- install.py | 44 ++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 42 insertions(+), 2 deletions(-) diff --git a/install.py b/install.py index 8e7dcfe..cb1aee9 100755 --- a/install.py +++ b/install.py @@ -43,11 +43,37 @@ def main(): 2) Parrot OS """) system0 = raw_input(">>> ") + + py_ver = "" + + while py_ver == "": + print(""" +Python Version You Want To Install On (like 3.6) +""") + py_ver = raw_input(">>> ") + + if system0 == "1": print("\033[1;34m\n[++] Installing Xerosploit ... \033[1;m") - install = os.system("apt-get update && apt-get install -y nmap hping3 build-essential python-pip ruby-dev git libpcap-dev libgmp3-dev && pip install tabulate terminaltables") + install = os.system("apt-get update && apt-get install -y nmap hping3 build-essential python-pip ruby-dev git libpcap-dev libgmp3-dev") install1 = os.system("""cd tools/bettercap/ && gem build bettercap.* && sudo gem install xettercap-* && rm xettercap-* && cd ../../ && mkdir -p /opt/xerosploit && cp -R tools/ /opt/xerosploit/ && cp xerosploit.py /opt/xerosploit/xerosploit.py && cp banner.py /opt/xerosploit/banner.py && cp run.sh /usr/bin/xerosploit && chmod +x /usr/bin/xerosploit && tput setaf 34; echo "Xerosploit has been sucessfuly instaled. Execute 'xerosploit' in your terminal." """) + + if py_ver[0] == "3": + os.system("sudo 2to3 -w xerosploit.py") + + run_file = open("run.sh","r") + r_con = run_file.read() + run_file.close() + + run_file = open("run.sh","w") + run_file.write(r_con.replace("python","python3")) + run_file.close() + + os.system(f"sudo pip install -t /usr/lib/python{py_ver}/dist-packages/ pillow") + os.system(f"sudo pip install -t /usr/lib/python{py_ver}/dist-packages/ tabulate") + os.system(f"sudo pip install -t /usr/lib/python{py_ver}/dist-packages/ terminaltables") + elif system0 == "2": print("\033[1;34m\n[++] Installing Xerosploit ... \033[1;m") @@ -55,9 +81,23 @@ def main(): bet_re_ins = os.system("gem install bettercap") # Reinstall bettercap with gem. install = os.system("apt-get update && apt-get install -y nmap hping3 ruby-dev git libpcap-dev libgmp3-dev python-tabulate python-terminaltables") - + install1 = os.system("""cd tools/bettercap/ && gem build bettercap.* && sudo gem install xettercap-* && rm xettercap-* && cd ../../ && mkdir -p /opt/xerosploit && cp -R tools/ /opt/xerosploit/ && cp xerosploit.py /opt/xerosploit/xerosploit.py && cp banner.py /opt/xerosploit/banner.py && cp run.sh /usr/bin/xerosploit && chmod +x /usr/bin/xerosploit && tput setaf 34; echo "Xerosploit has been sucessfuly instaled. Execute 'xerosploit' in your terminal." """) + if py_ver[0] == "3": + os.system("sudo 2to3 -w xerosploit.py") + + run_file = open("run.sh","r") + r_con = run_file.read() + run_file.close() + + run_file = open("run.sh","w") + run_file.write(r_con.replace("python","python3")) + run_file.close() + + os.system(f"sudo pip install -t /usr/lib/python{py_ver}/dist-packages/ pillow") + os.system(f"sudo pip install -t /usr/lib/python{py_ver}/dist-packages/ tabulate") + os.system(f"sudo pip install -t /usr/lib/python{py_ver}/dist-packages/ terminaltables") else: print("Please select the option 1 or 2") From d8575a3a0298a756685b5bfdce8dc7a177a71562 Mon Sep 17 00:00:00 2001 From: Cactochan <85914469+mastercodermerwin@users.noreply.github.com> Date: Thu, 25 Aug 2022 06:34:44 +0530 Subject: [PATCH 3/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7d82a16..8950bc6 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ [![Version](https://img.shields.io/badge/Xerosploit-Version_1.0-brightgreen.svg?maxAge=259200)]() -[![PyPI](https://img.shields.io/badge/Python-2.7-blue.svg)]() +[![PyPI](https://img.shields.io/badge/Python-blue.svg)]() [![Build](https://img.shields.io/badge/Supported_OS-linux-orange.svg)]() [![AUR](https://img.shields.io/aur/license/yaourt.svg)]() From 6b9f14f5e34a95be9ee2868bbfe8e52cd4c1fd52 Mon Sep 17 00:00:00 2001 From: Cactochan <85914469+mastercodermerwin@users.noreply.github.com> Date: Thu, 25 Aug 2022 16:34:54 +0530 Subject: [PATCH 4/5] Update run.sh --- run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run.sh b/run.sh index 432cf4e..ed46789 100755 --- a/run.sh +++ b/run.sh @@ -21,6 +21,6 @@ # # #---------------------------------------------------------------------------# -python3 /opt/xerosploit/xerosploit.py +python /opt/xerosploit/xerosploit.py From cafb5b6833e26d022f1e18cc1d8b5115593d39d6 Mon Sep 17 00:00:00 2001 From: Cactochan <85914469+mastercodermerwin@users.noreply.github.com> Date: Thu, 25 Aug 2022 16:37:21 +0530 Subject: [PATCH 5/5] Update install.py --- install.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install.py b/install.py index cb1aee9..eccb2e2 100755 --- a/install.py +++ b/install.py @@ -60,6 +60,7 @@ def main(): install1 = os.system("""cd tools/bettercap/ && gem build bettercap.* && sudo gem install xettercap-* && rm xettercap-* && cd ../../ && mkdir -p /opt/xerosploit && cp -R tools/ /opt/xerosploit/ && cp xerosploit.py /opt/xerosploit/xerosploit.py && cp banner.py /opt/xerosploit/banner.py && cp run.sh /usr/bin/xerosploit && chmod +x /usr/bin/xerosploit && tput setaf 34; echo "Xerosploit has been sucessfuly instaled. Execute 'xerosploit' in your terminal." """) if py_ver[0] == "3": + os.system("sudo apt-get install 2to3") os.system("sudo 2to3 -w xerosploit.py") run_file = open("run.sh","r") @@ -85,6 +86,8 @@ def main(): install1 = os.system("""cd tools/bettercap/ && gem build bettercap.* && sudo gem install xettercap-* && rm xettercap-* && cd ../../ && mkdir -p /opt/xerosploit && cp -R tools/ /opt/xerosploit/ && cp xerosploit.py /opt/xerosploit/xerosploit.py && cp banner.py /opt/xerosploit/banner.py && cp run.sh /usr/bin/xerosploit && chmod +x /usr/bin/xerosploit && tput setaf 34; echo "Xerosploit has been sucessfuly instaled. Execute 'xerosploit' in your terminal." """) if py_ver[0] == "3": + os.system("sudo apt-get install 2to3") + os.system("sudo 2to3 -w xerosploit.py") run_file = open("run.sh","r")