Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added latest Python3 Support. All BUGS and ERRORS fixed #269

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -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-3.9-blue.svg)]()
[![Build](https://img.shields.io/badge/Supported_OS-linux-orange.svg)]()
[![AUR](https://img.shields.io/aur/license/yaourt.svg)]()

Expand Down Expand Up @@ -30,8 +30,8 @@ Instalation
=
Dependencies will be automatically installed.

git clone https://github.com/LionSec/xerosploit
cd xerosploit && sudo python install.py
git clone https://github.com/shivanshjoshi28/xerosploit

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this line should be kept as git clone https://github.com/LionSec/xerosploit

cd xerosploit && sudo python3 install.py
sudo xerosploit


Expand All @@ -45,7 +45,7 @@ Tested on
</tr>
<tr>
<td>Ubuntu</td>
<td> 16.04 / 15.10 </td>
<td> 20.04 / 16.04 / 15.10 </td>
</tr>
<tr>
<td>Kali linux</td>
Expand Down Expand Up @@ -96,3 +96,10 @@ Contact
- Facebook : https://facebook.com/in98
- Twitter: @LionSec1
- Email : informatic98es@gmail.com


# UPDATES DONE

## All Errors Fixed

LionSec/ xerosploit was not compatible with the new version of Python3. This can be helpful to them who are getting errors related to pip, raw_input.
45 changes: 26 additions & 19 deletions install.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import os
import sys
Expand All @@ -25,7 +25,8 @@
#---------------------------------------------------------------------------#

if not os.geteuid() == 0:
sys.exit("""\033[1;91m\n[!] Xerosploit installer must be run as root. ¯\_(ツ)_/¯\n\033[1;m""")
sys.exit(
"""\033[1;91m\n[!] Xerosploit installer must be run as root. ¯\_(ツ)_/¯\n\033[1;m""")

print(""" \033[1;36m
┌══════════════════════════════════════════════════════════════┐
Expand All @@ -34,32 +35,38 @@
█ █
└══════════════════════════════════════════════════════════════┘ \033[1;m""")


def main():

print("\033[1;34m\n[++] Please choose your operating system.\033[1;m")
print("\033[1;34m\n[++] Please choose your operating system.\033[1;m")

print("""
print("""
1) Ubuntu / Kali linux / Others
2) Parrot OS
""")
system0 = 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")
system0 = input(">>> ")
if system0 == "1":
print("\033[1;34m\n[++] Installing Xerosploit ... \033[1;m")
install = os.system(
"apt-get update && apt install python3-pip && apt-get install -y nmap hping3 build-essential python3-pip ruby-dev git libpcap-dev libgmp3-dev && pip3 install tabulate 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 sucessfully installed. Execute 'xerosploit' in your terminal." """)
elif system0 == "2":
print("\033[1;34m\n[++] Installing Xerosploit ... \033[1;m")


bet_un = os.system("apt-get remove bettercap")# Remove bettercap to avoid some problems . Installed by default with apt-get .

bet_re_ins = os.system("gem install bettercap")# Reinstall bettercap with gem.

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." """)
elif system0 == "2":
print("\033[1;34m\n[++] Installing Xerosploit ... \033[1;m")
install = os.system(
"apt-get update && apt install python3-pip && apt-get install -y nmap hping3 ruby-dev git libpcap-dev libgmp3-dev python3-tabulate python3-terminaltables")

bet_un = os.system("apt-get remove bettercap") # Remove bettercap to avoid some problems . Installed by default with apt-get .
bet_re_ins = os.system("gem install bettercap") # Reinstall bettercap with gem.
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 sucessfully installed. Execute 'xerosploit' in your terminal." """)

install = os.system("apt-get update && apt-get install -y nmap hping3 ruby-dev git libpcap-dev libgmp3-dev python-tabulate python-terminaltables")
else:
print("Please select the option 1 or 2")
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." """)


else:
print("Please select the option 1 or 2")
main()
main()
2 changes: 1 addition & 1 deletion run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
# #
#---------------------------------------------------------------------------#

python /opt/xerosploit/xerosploit.py
python3 /opt/xerosploit/xerosploit.py


Loading