PDA

Просмотр полной версии : не запускается xerosploit


pavelka
01.10.2020, 21:21
Код:



█ █
└═══════════════ ════════════════ ════════════════ ════════════════ ═══════════┘

╒═══════════════ ═════════╤══════ ════════════╤═══ ════════════════ ══╤═════════╤═══ ════════╕
│ IP Address │ MAC Address │ Gateway │ Iface │ Hostname │
╞═══════════════ ═════════╪══════ ════════════╪═══ ════════════════ ══╪═════════╪═══ ════════╡
├─────────────── ─────────┼────── ────────────┼─── ──────────────── ──┼─────────┼─── ────────┤
│ │ eth0 │ kali │
╘═══════════════ ═════════╧══════ ════════════╧═══ ════════════════ ══╧═════════╧═══ ════════╛

╔═════════════╦═ ════════════════ ════════════════ ════════════════ ════════════════
║ ║ XeroSploit is a penetration testing toolkit whose goal is to ║
║ Information ║ perform man in the middle attacks for testing purposes. ║
║ ║ It brings various modules that allow to realise efficient attacks. ║
║ ║ This tool is Powered by Bettercap and Nmap. ║
╚═════════════╩═ ════════════════ ════════════════ ════════════════ ════════════════

[+] Please type 'help' to view commands.

Traceback (most recent call last):
File "xerosploit.py", line 981, in main
cmd0()
File "xerosploit.py", line 866, in cmd0
cmd_0 = raw_input("\033[1;36m\033[4mXero\033[0m\033[1;36m ➮ \033[1;m").strip()
NameError: name 'raw_input' is not defined
[root@kali xerosploit]# xerosploit
Traceback (most recent call last):
File "/opt/xerosploit/xerosploit.py", line 26, in
from terminaltables import DoubleTable
ImportError: No module named terminaltables
[root@kali xerosploit]# ┌═══════════════ ════════════════ ════════════

z3r0c10wn
02.10.2020, 18:09
Python:



#!/usr/bin/python
# -*- coding: utf-8 -*-
import
os
import
sys
#---------------------------------------------------------------------------#
# This file is part of Xerosploit. #
# Xerosploit is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation, either version 3 of the License, or #
# (at your option) any later version. #
# #
# Xerosploit is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with Xerosploit. If not, see . #
# #
#---------------------------------------------------------------------------#
# #
# Copyright © 2016 LionSec (www.lionsec.net) #
# #
#---------------------------------------------------------------------------#
if
not
os
.
geteuid
(
)
==
0
:
sys
.
exit
(
"""\033[1;91m\n[!] Xerosploit installer must be run as root. ¯\_(ツ)_/¯\n\033[1;m"""
)
print
(
""" \033[1;36m
┌═══════════════ ════════════════ ════════════════ ═════════════┐
█ █
█ Xerosploit Installer █
█ █
└═══════════════ ════════════════ ════════════════ ═════════════┘ \033[1;m"""
)
def
main
(
)
:
print
(
"\033[1;34m\n[++] Please choose your operating system.\033[1;m"
)
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"
)
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"
)
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.
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." """
)
else
:
print
(
"Please select the option 1 or 2"
)
main
(
)
main
(
)

pavelka
04.10.2020, 01:17
А нельзя доступно как то обяснить как редактировать и какой файл а то я не очень силен в скрипте питона

z3r0c10wn
05.10.2020, 10:32
Это py-installer XeroSploit - он установит необходимые зависимости и пакеты для работы

pavelka
05.10.2020, 23:52
все сделал запустил с етим файлом прочмодил на 755 результат тот же нет модуля terminaltables .питался установить с помощью pip3 а также с python -m pip ничего не помогает .систему переустановил одна и та же ошибка. в чем может бить причина не знаю.пакет python-pip не устанавливается только python3-pip. но команда pip install tabulate прошла
могу сбросить скрини покомандно

Код:



[root@kali apt]# pip install tabulate==0.8.7
Collecting tabulate==0.8.7
Using cached tabulate-0.8.7-py3-none-any.whl (24 kB)
Installing collected packages: tabulate
Successfully installed tabulate-0.8.7
[root@kali apt]# pip install terminaltables==3.1.0
Processing /root/.cache/pip/wheels/08/8f/5f/253d0105a55bd84ee61ef0d37dbf70421e61e0cd70cef7c5e1/terminaltables-3.1.0-py3-none-any.whl
Installing collected packages: terminaltables
Successfully installed terminaltables-3.1.0
[root@kali xerosploit]# python install.py

┌═══════════════ ════════════════ ════════════════ ═════════════┐
█ █
█ Xerosploit Installer █
█ █
└═══════════════ ════════════════ ════════════════ ═════════════┘

[++] Please choose your operating system.

1) Ubuntu / Kali linux / Others
2) Parrot OS

>>> 1

[++] Installing Xerosploit ...
Сущ:1 Index of /kali/ kali-rolling InRelease
Чтение списков пакетов… Готово
Чтение списков пакетов… Готово
Построение дерева зависимостей
Чтение информации о состоянии… Готово
Пакет python-pip недоступен, но упомянут в списке зависимостей другого
пакета. Это может означать, что пакет отсутствует, устарел или
доступен из источников, не упомянутых в sources.list
Однако следующие пакеты могут его заменить:
python3-pip

E: Для пакета «python-pip» не найден кандидат на установку
WARNING: bin/xettercap is not executable
WARNING: See Specification Reference - RubyGems Guides for help
Successfully built RubyGem
Name: xettercap
Version: 1.5.7xerob
File: xettercap-1.5.7xerob.gem
Successfully installed xettercap-1.5.7xerob
Parsing documentation for xettercap-1.5.7xerob
Done installing documentation for xettercap after 5 seconds
1 gem installed
Xerosploit has been sucessfuly instaled. Execute 'xerosploit' in your terminal.
[root@kali xerosploit]# python xerosploit.py
Traceback (most recent call last):
File "xerosploit.py", line 26, in
from terminaltables import DoubleTable
ImportError: No module named terminaltables
[root@kali xerosploit]# xerosploit
Traceback (most recent call last):
File "/opt/xerosploit/xerosploit.py", line 26, in
from terminaltables import DoubleTable
ImportError: No module named terminaltables

[root@kali xerosploit]# python3 xerosploit.py


▒██ ██▒▓█████ ██▀███ ▒█████ ██████ ██▓███ ██▓ ▒█████ ██▓▄▄▄█████▓
▒▒ █ █ ▒░▓█ ▀ ▓██ ▒ ██▒▒██▒ ██▒▒██ ▒ ▓██░ ██▒▓██▒ ▒██▒ ██▒▓██▒▓ ██▒ ▓▒
░░ █ ░▒███ ▓██ ░▄█ ▒▒██░ ██▒░ ▓██▄ ▓██░ ██▓▒▒██░ ▒██░ ██▒▒██▒▒ ▓██░ ▒░
░ █ █ ▒ ▒▓█ ▄ ▒██▀▀█▄ ▒██ ██░ ▒ ██▒▒██▄█▓▒ ▒▒██░ ▒██ ██░░██░░ ▓██▓ ░
▒██▒ ▒██▒░▒████▒░██▓ ▒██▒░ ████▓▒░▒██████▒▒ ██▒ ░ ░░██████▒░ ████▓▒░░██░ ▒██▒ ░
▒▒ ░ ░▓ ░░░ ▒░ ░░ ▒▓ ░▒▓░░ ▒░▒░▒░ ▒ ▒▓▒ ▒ ░▒▓▒░ ░ ░░ ▒░▓ ░░ ▒░▒░▒░ ░▓ ▒ ░░
░░ ░▒ ░ ░ ░ ░ ░▒ ░ ▒░ ░ ▒ ▒░ ░ ░▒ ░ ░░▒ ░ ░ ░ ▒ ░ ░ ▒ ▒░ ▒ ░ ░
░ ░ ░ ░░ ░ ░ ░ ░ ▒ ░ ░ ░ ░░ ░ ░ ░ ░ ░ ▒ ▒ ░ ░
░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░

[+]═══════════[ Author : @LionSec1 _-\|/-_ Website: www.neodrix.com ]═══════════[+]

[ Powered by Bettercap and Nmap ]

┌═══════════════ ════════════════ ════════════════ ════════════════ ═══════════┐
█ █
█ Your Network Configuration █
█ █
└═══════════════ ════════════════ ════════════════ ════════════════ ═══════════┘

╒═══════════════ ═══════════╤════ ══════════════╤═ ════════════════ ═══════╤════════ ╤════════════╕
│ IP Address │ MAC Address │ Gateway │ Iface │ Hostname │
╞═══════════════ ═══════════╪════ ══════════════╪═ ════════════════ ═══════╪════════ ╪════════════╡
├─────────────── ───────────┼──── ──────────────┼─ ──────────────── ───────┼──────── ┼────────────┤
│ 192.168.31.11 192.168.1.6 │ A*:28:B*:*F*4t:B** │ 192.168.31.1192.168.1.1 │ eth0 │ kali │
╘═══════════════ ═══════════╧════ ══════════════╧═ ════════════════ ═══════╧════════ ╧════════════╛

╔═════════════╦═ ════════════════ ════════════════ ════════════════ ════════════════
║ ║ XeroSploit is a penetration testing toolkit whose goal is to ║
║ Information ║ perform man in the middle attacks for testing purposes. ║
║ ║ It brings various modules that allow to realise efficient attacks. ║
║ ║ This tool is Powered by Bettercap and Nmap. ║
╚═════════════╩═ ════════════════ ════════════════ ════════════════ ════════════════

[+] Please type 'help' to view commands.

Traceback (most recent call last):
File "xerosploit.py", line 981, in main
cmd0()
File "xerosploit.py", line 866, in cmd0
cmd_0 = raw_input("\033[1;36m\033[4mXero\033[0m\033[1;36m ➮ \033[1;m").strip()
NameError: name 'raw_input' is not define


даже не знаю что ешо делать у многих тоже таже ошибка возможно с апдейтами пакетов питона причина

pavelka
08.10.2020, 00:03
проблему решил . она в установленной версии python a coответственно и в версии pip. версия об ошибке кода в xerosploit.py не нашла подтверждения