Code Monkey home page Code Monkey logo

xerosploit's Introduction

Version PyPI Build AUR

Xerosploit

Xerosploit is a penetration testing toolkit whose goal is to perform man in the middle attacks for testing purposes. It brings various modules that allow to realise efficient attacks, and also allows to carry out denial of service attacks and port scanning. Powered by bettercap and nmap.

Dependencies

  • nmap
  • hping3
  • build-essential
  • ruby-dev
  • libpcap-dev
  • libgmp3-dev
  • tabulate
  • terminaltables

Instalation

Dependencies will be automatically installed.

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

Tested on

Operative system Version
Ubuntu 16.04 / 15.10
Kali linux Rolling / Sana
Parrot OS 3.1

features

  • Port scanning
  • Network mapping
  • Dos attack
  • Html code injection
  • Javascript code injection
  • Download intercaption and replacement
  • Sniffing
  • Dns spoofing
  • Background audio reproduction
  • Images replacement
  • Drifnet
  • Webpage defacement and more ...

Demonstration

https://www.youtube.com/watch?v=35QUrtZEV9U

I have some questions!

Please visit https://github.com/LionSec/xerosploit/issues

Donations

Contact

xerosploit's People

Contributors

lionsec avatar mdomorffaruk avatar palinurosec avatar titangmz avatar wasnio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

xerosploit's Issues

deface module doesn't work

The deface module show me errors and exit automatically when I specify html file. Others modules works....... only this last doesn't work....

Error:

Traceback (most recent call last): File "/opt/xerosploit/xerosploit.py", line 981, in main cmd0() File "/opt/xerosploit/xerosploit.py", line 869, in cmd0 scan() File "/opt/xerosploit/xerosploit.py", line 129, in scan target_ip() File "/opt/xerosploit/xerosploit.py", line 855, in target_ip program0() File "/opt/xerosploit/xerosploit.py", line 829, in program0 option() File "/opt/xerosploit/xerosploit.py", line 825, in option option() File "/opt/xerosploit/xerosploit.py", line 784, in option deface() File "/opt/xerosploit/xerosploit.py", line 782, in deface deface() File "/opt/xerosploit/xerosploit.py", line 774, in deface f1 = open('/home/home/xero-html.html','w') IOError: [Errno 2] No such file or directory: '/home/home/xero-html.html'

How to resolve?

Xerosploit SSSTRIP Module error

Can anyone help me with this error pls?

/var/lib/gems/2.1.0/gems/xettercap-1.5.7xerob/lib/bettercap/spoofers/icmp.rb:24:in <class:ICMPRedirectPacket>': uninitialized constant PacketFu::EthHeaderMixin (NameError) from /var/lib/gems/2.1.0/gems/xettercap-1.5.7xerob/lib/bettercap/spoofers/icmp.rb:17:inmodule:Spoofers'
from /var/lib/gems/2.1.0/gems/xettercap-1.5.7xerob/lib/bettercap/spoofers/icmp.rb:15:in <module:BetterCap>' from /var/lib/gems/2.1.0/gems/xettercap-1.5.7xerob/lib/bettercap/spoofers/icmp.rb:14:in<top (required)>'
from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in require' from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:inrequire'
from /var/lib/gems/2.1.0/gems/xettercap-1.5.7xerob/lib/bettercap.rb:66:in block in bettercap_autoload' from /var/lib/gems/2.1.0/gems/xettercap-1.5.7xerob/lib/bettercap.rb:65:ineach'
from /var/lib/gems/2.1.0/gems/xettercap-1.5.7xerob/lib/bettercap.rb:65:in bettercap_autoload' from /var/lib/gems/2.1.0/gems/xettercap-1.5.7xerob/lib/bettercap.rb:70:in<top (required)>'
from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in require' from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:inrequire'
from /var/lib/gems/2.1.0/gems/xettercap-1.5.7xerob/bin/xettercap:16:in <top (required)>' from /usr/local/bin/xettercap:23:inload'
from /usr/local/bin/xettercap:23:in `

'

Packaging for ArchStrike

Hello.

I am trying to package your tool for ArchStrike, but because of all the hardcoded paths inside the script, it's really hard to do that.

Arch Linux doesn't use apt-get, and the dependencies can be handled by our PKGBUILD system with no issues, however the main script is written in a way that it will only work if your install script is ran (which won't work on Arch). Also I've noticed it's removing the official bettercap package so that there aren't any conflicts (we also have a standalone bettercap package so it'd be better if we just put that as a dependency and it worked..)

I'd be really happy if you could have a look.

lots of error (parrot OS 3.x)

█ Deface Web Page █
█ █
█ Overwrite all web pages with your HTML code █
└══════════════════════════════════════════════════════════════┘

[+] Enter 'run' to execute the 'deface' command.

Xero»modules»deface ➮ run

[+] Specify the file containing your defacement code .

[!] Your file should not contain Javascript code .

Xero»modules»deface ➮ '/root/f.html'
Traceback (most recent call last):
File "/opt/xerosploit/xerosploit.py", line 981, in main
cmd0()
File "/opt/xerosploit/xerosploit.py", line 869, in cmd0
scan()
File "/opt/xerosploit/xerosploit.py", line 129, in scan
target_ip()
File "/opt/xerosploit/xerosploit.py", line 855, in target_ip
program0()
File "/opt/xerosploit/xerosploit.py", line 829, in program0
option()
File "/opt/xerosploit/xerosploit.py", line 825, in option
option()
File "/opt/xerosploit/xerosploit.py", line 828, in option
option()
File "/opt/xerosploit/xerosploit.py", line 784, in option
deface()
File "/opt/xerosploit/xerosploit.py", line 766, in deface
file_deface = open(file_deface, 'r').read()
IOError: [Errno 2] No such file or directory: '/root/f.html '

Ive tried different module even just inject html file , it gives same error over wifi.

Regards
Scorpoin

network scan

I have an IP address of 192.168.101.100/22 and gateway 192.168.100.1. The scan module only scans 192.168.100.0/24, not the entire subnet. I saw that the nmap scan has /24 hardcoded. In the future releases will be nice to read the subnet mask from the interface and adjust the nmap scan.

Furthermore, when the machine has multiple IP addresses, such as eth0 172.16.12.12 and wlan0 192.168.101.100, it encounter the fallowing error: "Failed to resolve 172.16.12.12192.168.101.100" and it tries to scan for both networks in the same time.

Problem to instal on Mint

loki@loki ~ $ sudo xerosploit
Traceback (most recent call last):
File "/opt/xerosploit/xerosploit.py", line 26, in
from terminaltables import DoubleTable
ImportError: No module named terminaltables

how to fix this problem ?

No such file or directory: '/opt/xerosploit/tools/files/iface.txt' how to fix it?

Hi, i have a problem when i try to use it.
python xerosploit.py
Traceback (most recent call last):
File "xerosploit.py", line 980, in main
home()
File "xerosploit.py", line 62, in home
config0()
File "xerosploit.py", line 44, in config0
up_interface = open('/opt/xerosploit/tools/files/iface.txt', 'r').read()
IOError: [Errno 2] No such file or directory: '/opt/xerosploit/tools/files/iface.txt'

netmask selection in nmap

As i have proposed in my pull request you have hardcoded the /24 network mask

      # TODO:
        # the software should ask for the netmask to scan to not limit the
        # scanned hosts to 255.255.255.0
        scan = os.popen("nmap " + gateway + "/24 -n -sP ").read()

Is it possible to integrate a netmask selector to enable users to select the right ip ranges to scan?

We all use 192.168.0.0/24 or 192.168.1.0/24 at home, but most of the networks a pentester scans have custom ranges, so a range/netmak selector would be very useful

error

WARNING: bin/xettercap is not executable
WARNING: See http://guides.rubygems.org/specification-reference/ for help
Successfully built RubyGem
Name: xettercap
Version: 1.5.7xerob
File: xettercap-1.5.7xerob.gem
Building native extensions. This could take a while...
ERROR: Error installing xettercap-1.5.7xerob.gem:
ERROR: Failed to build gem native extension.

current directory: /var/lib/gems/2.3.0/gems/pcaprub-0.12.4/ext/pcaprub_c

/usr/bin/ruby2.3 -r ./siteconf20161215-3740-edww7l.rb extconf.rb

[*] Running checks for pcaprub_c code...
platform is i386-linux-gnu
checking for ruby/thread.h... yes
checking for rb_thread_blocking_region()... no
checking for rb_thread_call_without_gvl()... yes
checking for pcap_open_live() in -lpcap... no
checking for pcap_setnonblock() in -lpcap... no
creating Makefile

To see why this extension failed to compile, please check the mkmf.log which can be found here:

/var/lib/gems/2.3.0/extensions/x86-linux/2.3.0/pcaprub-0.12.4/mkmf.log

current directory: /var/lib/gems/2.3.0/gems/pcaprub-0.12.4/ext/pcaprub_c
make "DESTDIR=" clean

current directory: /var/lib/gems/2.3.0/gems/pcaprub-0.12.4/ext/pcaprub_c
make "DESTDIR="
compiling pcaprub.c
pcaprub.c:11:18: fatal error: pcap.h: No such file or directory
#include <pcap.h>
^
compilation terminated.
Makefile:239: recipe for target 'pcaprub.o' failed
make: *** [pcaprub.o] Error 1

make failed, exit code 2

Gem files will remain installed in /var/lib/gems/2.3.0/gems/pcaprub-0.12.4 for inspection.
Results logged to /var/lib/gems/2.3.0/extensions/x86-linux/2.3.0/pcaprub-0.12.4/gem_make.out
Xerosploit has been sucessfuly instaled. Execute 'xerosploit' in your terminal.

driftnet fail

systems:ubuntu14.04LTS

I found in the use of driftnet fail。There is no prompt, can not sniff pictures

Not working?

Ok so I am not able to launch modules like sniffing, injechtml, injectjs, dspoof, nothing seems to work.
Here's a pastebin of me running install.py ( I am using debian 8 )

http://pastebin.com/fD5v2XXV

thoughts on this error

root@:~/xerosploit# xerosploit
Traceback (most recent call last):
File "/opt/xerosploit/xerosploit.py", line 4, in
from terminaltables import DoubleTable
ImportError: No module named terminaltables

Problem with gem

When i run install.py it upgrades (as coded to do so) then after a while this error pops up

CWARNING: bin/xettercap is not executable
WARNING: See http://guides.rubygems.org/specification-reference/ for help
Successfully built RubyGem
Name: xettercap
Version: 1.5.7xerob
File: xettercap-1.5.7xerob.gem
Building native extensions. This could take a while...
ERROR: Error installing xettercap-1.5.7xerob.gem:
ERROR: Failed to build gem native extension.

current directory: /var/lib/gems/2.3.0/gems/pcaprub-0.12.4/ext/pcaprub_c

/usr/bin/ruby2.3 -r ./siteconf20161216-2588-1qwgnj3.rb extconf.rb

[*] Running checks for pcaprub_c code...
platform is x86_64-linux-gnu
checking for ruby/thread.h... yes
checking for rb_thread_blocking_region()... no
checking for rb_thread_call_without_gvl()... yes
checking for pcap_open_live() in -lpcap... no
checking for pcap_setnonblock() in -lpcap... no
creating Makefile

To see why this extension failed to compile, please check the mkmf.log which can be found here:

/var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/pcaprub-0.12.4/mkmf.log

current directory: /var/lib/gems/2.3.0/gems/pcaprub-0.12.4/ext/pcaprub_c
make "DESTDIR=" clean

current directory: /var/lib/gems/2.3.0/gems/pcaprub-0.12.4/ext/pcaprub_c
make "DESTDIR="
compiling pcaprub.c
pcaprub.c:11:18: fatal error: pcap.h: No such file or directory
#include <pcap.h>
^
compilation terminated.
Makefile:239: recipe for target 'pcaprub.o' failed
make: *** [pcaprub.o] Error 1

make failed, exit code 2

Gem files will remain installed in /var/lib/gems/2.3.0/gems/pcaprub-0.12.4 for inspection.
Results logged to /var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/pcaprub-0.12.4/gem_make.out

installed xerosploit in kali linux rpi

i got the following error after installing xerosploit

root@kali:/xerosploit/xerosploit# ./xerosploit.py
Traceback (most recent call last):
File "./xerosploit.py", line 980, in main
home()
File "./xerosploit.py", line 62, in home
config0()
File "./xerosploit.py", line 44, in config0
up_interface = open('/opt/xerosploit/tools/files/iface.txt', 'r').read()
IOError: [Errno 2] No such file or directory: '/opt/xerosploit/tools/files/iface.txt'

i cloned xerosploit in /opt/ and installed it now this is the error

root@kali:/opt/xerosploit# ./xerosploit.py

��������� ������������������������������������������������������ ��������������������� ��������������������������������������������� ��������� ��������������������� ������������������������������������
������������������������������������������������������������������������������������������������������������������������������������������������������������ ���������������������������������������������������������������
������������������ ������������������ ��������������������������������� ������������������������������������������������������������������ ��������� ������������������ ���������
������������������ ������������������ ��������������������������������� ������������������������������������������������������ ��������� ��������� ������������������ ���������
������������ ������������������������������������������ ��������������������������������������������������������������������� ������������������������������������������������������������ ���������
��������� ������������������������������������������ ��������� ��������������������� ��������������������������������� ������������������������ ��������������������� ��������� ���������

[+]���������������������������������[ Author : @lionsec1 -|/- Website: lionsec.net ]���������������������������������[+]

                  [ Powered by Bettercap and Nmap ]

���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
��� ���
��� Your Network Configuration ���
��� ���
���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������

Traceback (most recent call last):
File "./xerosploit.py", line 980, in main
home()
File "./xerosploit.py", line 89, in home
print (tabulate(table, stralign="center",tablefmt="fancy_grid",headers="firstrow"))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-73: ordinal not in range(128)

pls help. thanks!

can't install in kali linux

[++] Installing Xerosploit ...
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libgmp3-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
libgmp-dev

E: Unable to locate package libpcap-dev
E: Package 'libgmp3-dev' has no installation candidate
sh: 1: cd: can't cd to tools/bettercap/
Xerosploit has been sucessfuly instaled. Execute 'xerosploit' in your terminal.

Gentoo Packaging,

#6

@xorond we likely to have the same , however installing deps and dumping the script to the dir is fine.
adding symlinks etc , dosym etc however its alot of hell.

Gems suck , Pip sucks. in some cases you can get a dependency can of worms or breakages ,
yum install %segfault%% or apt-get % your F'ed%% if you break the python back end ... is why gentoo packages the gems with an ebuild or python-eggs or libraies with ebuilds

pip install one to many it will destroy a gentoo box. once in a while if testing 1-2 wont kill you , but smoking the whole boxcar of cases & cases of Cigarettes just might.. (PIP install EVERYTHING)

pentoo/pentoo-overlay#131
#pentoo
Bug reports: https://github.com/pentoo/pentoo-overlay/issues | RC5: "emerge -1 pentoo-installer"

https://www.youtube.com/watch?v=35QUrtZEV9U
<Zero_Chaos> cute, seems to be the slowest possible way to do things, but cute
<Zero_Chaos> really digging the music though

  • aricon has quit (Changing host)
  • aricon (~aricon@pdpc/supporter/professional/aricon) has joined
  • n0idx80 (43ee51d2@gentoo/contributor/n0idx80) has joined
    well its for noobs perhaps but with feedback might get to be worth a damb
    <Zero_Chaos> necrose99-wrk: index numbers on the targets for one ;-)

Gentoo Packages a number of Gems via Fakegem eclass , for version control, and less dependency hell.
same with pip's as very dev-python/ncurses or etc.

xerosploit-ebuild.zip

Problems on Mint

/usr/lib/ruby/2.3.0/rubygems/dependency.rb:319:in to_specs': Could not find 'xettercap' (>= 0.a) among 19 total gem(s) (Gem::LoadError) Checked in 'GEM_PATH=/home/username/.rvm/gems/ruby-2.3.3:/home/username/.rvm/gems/ruby-2.3.3@global', execute gem envfor more information from /usr/lib/ruby/2.3.0/rubygems/dependency.rb:328:into_spec'
from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_gem.rb:65:in gem' from /usr/local/bin/xettercap:22:in

'

sh: 1: xettercap: not found

hello thx for your great work , can you help me please ?
everytime i try somthing like sniff they give me this msg 'sh: 1: xettercap: not found'
thx.

Facing problem while executing

File "/opt/xerosploit/xerosploit.py", line 26, in
from terminaltables import DoubleTable
ImportError: No module named terminaltables

I have a problem, but I don't know why :(

root@kali:~# cd xerosploit/ && python install.py

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

[++] Please choose your operating system.

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

1

[++] Installing Xerosploit ...
Hit:1 http://old.kali.org/kali sana InRelease
Чтение списков пакетов… Готово
Чтение списков пакетов… Готово
Построение дерева зависимостей
Чтение информации о состоянии… Готово
build-essential is already the newest version (11.7).
hping3 is already the newest version (3.a2.ds2-7).
libgmp3-dev is already the newest version (2:6.0.0+dfsg-6).
libpcap-dev is already the newest version (1.6.2-2).
ruby-dev is already the newest version (1:2.1.5+deb8u1).
nmap is already the newest version (7.01-1).
python-pip is already the newest version (1.5.6-7).
git is already the newest version (1:2.7.0~rc3-1).
Следующие пакеты устанавливались автоматически и больше не требуются:
libjs-jquery-easing libjs-jquery-fancybox libjs-jquery-mousewheel libuv1
nodejs ruby-ansi ruby-daemons ruby-dataobjects ruby-dataobjects-mysql
ruby-dataobjects-postgres ruby-dataobjects-sqlite3 ruby-diff-lcs
ruby-dm-core ruby-dm-do-adapter ruby-dm-migrations ruby-dm-serializer
ruby-dm-sqlite-adapter ruby-docile ruby-em-websocket ruby-erubis
ruby-eventmachine ruby-execjs ruby-geoip ruby-librex ruby-libv8
ruby-mojo-magick ruby-msfrpc-client ruby-msgpack ruby-parseconfig ruby-qr4r
ruby-rack ruby-rack-protection ruby-rainbow ruby-ref ruby-rexec ruby-rqrcode
ruby-rspec-expectations ruby-rspec-support ruby-rubydns ruby-simplecov
ruby-simplecov-html ruby-sinatra ruby-term-ansicolor ruby-therubyracer
ruby-tilt ruby-tins ruby-uglifier thin
Для их удаления используйте «apt autoremove».
обновлено 0, установлено 0 новых пакетов, для удаления отмечено 0 пакетов, и 9 пакетов не обновлено.
Requirement already satisfied (use --upgrade to upgrade): tabulate in /usr/local/lib/python2.7/dist-packages
Requirement already satisfied (use --upgrade to upgrade): terminaltables in /usr/local/lib/python2.7/dist-packages
Cleaning up...
WARNING: bin/xettercap is not executable
WARNING: See http://guides.rubygems.org/specification-reference/ for help
Successfully built RubyGem
Name: xettercap
Version: 1.5.7xerob
File: xettercap-1.5.7xerob.gem
Fetching: colorize-0.8.1.gem (100%)
Successfully installed colorize-0.8.1
Fetching: pcaprub-0.12.4.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing xettercap-1.5.7xerob.gem:
ERROR: Failed to build gem native extension.

/usr/bin/ruby2.2 -r ./siteconf20161218-14199-ex3174.rb extconf.rb

mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h

extconf failed, exit code 1

Gem files will remain installed in /var/lib/gems/2.2.0/gems/pcaprub-0.12.4 for inspection.
Results logged to /var/lib/gems/2.2.0/extensions/x86_64-linux/2.2.0/pcaprub-0.12.4/gem_make.out
Xerosploit has been sucessfuly instaled. Execute 'xerosploit' in your terminal.

Error!

I can't see IP Address │ MAC Address │ Gateway │ Iface │ Hostname
image

use relative path

We strongly suggesto you to make the script use relative path instead of absolute path so that we can easily place the software in any point of the filesystem instead of being forced to install in in /opt/xerosploit

problem on installation ....on kali

this is a prompt ==>

[++] Installing Xerosploit ...
Hit:1 http://nchc.dl.sourceforge.net/project/ubuntuzilla/mozilla/apt all InRelease
Hit:2 http://old.kali.org/kali sana InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version (11.7).
build-essential set to manually installed.
hping3 is already the newest version (3.a2.ds2-7).
hping3 set to manually installed.
nmap is already the newest version (7.01-1).
nmap set to manually installed.
ruby-dev is already the newest version (1:2.2.4).
ruby-dev set to manually installed.
python-pip is already the newest version (1.5.6-7).
python-pip set to manually installed.
git is already the newest version (1:2.7.0~rc3-1).
git set to manually installed.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
libgmp3-dev : Depends: libgmp-dev (= 2:6.0.0+dfsg-6) but 2:6.1.0+dfsg-2 is to be installed
libpcap-dev : Depends: libpcap0.8-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
WARNING: bin/xettercap is not executable
WARNING: See http://guides.rubygems.org/specification-reference/ for help
Successfully built RubyGem
Name: xettercap
Version: 1.5.7xerob
File: xettercap-1.5.7xerob.gem
Building native extensions. This could take a while...
ERROR: Error installing xettercap-1.5.7xerob.gem:
ERROR: Failed to build gem native extension.

/usr/bin/ruby2.2 -r ./siteconf20160907-8026-130hu80.rb extconf.rb

[*] Running checks for pcaprub_c code...
platform is x86_64-linux-gnu
checking for ruby/thread.h... yes
checking for rb_thread_blocking_region()... no
checking for rb_thread_call_without_gvl()... yes
checking for pcap_open_live() in -lpcap... no
checking for pcap_setnonblock() in -lpcap... no
creating Makefile

make "DESTDIR=" clean

make "DESTDIR="
compiling pcaprub.c
pcaprub.c:11:18: fatal error: pcap.h: No such file or directory
compilation terminated.
Makefile:238: recipe for target 'pcaprub.o' failed
make: *** [pcaprub.o] Error 1

make failed, exit code 2

Gem files will remain installed in /var/lib/gems/2.2.0/gems/pcaprub-0.12.4 for inspection.
Results logged to /var/lib/gems/2.2.0/extensions/x86_64-linux/2.2.0/pcaprub-0.12.4/gem_make.out
Xerosploit has been sucessfuly instaled. Execute 'xerosploit' in your terminal.

Can't Install on linux mint

I have an error. Looks like this...
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-gnbKjm/terminaltables/
I tried importing them and installing TerminalTables/DoubleTable. No Luck.
Running Linux min Cinnamon. 18.1 Serena.

ImportError: No module named tabulate

hi, when i run sudo xerosploit i get this error:

Traceback (most recent call last):
File "/opt/xerosploit/xerosploit.py", line 27, in
from tabulate import tabulate
ImportError: No module named tabulate

I have tried "pip install tabulate and pip install terminaltables", the error still remains.

Https issue

Greetngs,

After a long I give it an other try to such a nice tool , it works gr8 on HTTP , but does not work well over HTTPS . how do I fix this . I've tested it image replace module. and tested urls filehippo and yahoo. on my tab while browsing filehippo its does change img but with yahoo https it doesnt.

Error Parrot 3.1

Hi LionSec a lot people have this error on parrot 3.1

/xerosploit.py
Traceback (most recent call last):
File "./xerosploit.py", line 27, in
from tabulate import tabulate
ImportError: No module named tabulate

Can't install in Kali Rolling

Hi,
i tried to install xerosploit on kali rolling but i got this error message:

root@unkown:/home/d4rkn0/Downloads/xerosploit# python install.py

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

[++] Please choose your operating system.

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

1

[++] Installing Xerosploit ...
Hit:1 http://ftp.free.fr/pub/kali kali-rolling InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version (12.2).
git is already the newest version (1:2.9.3-1).
hping3 is already the newest version (3.a2.ds2-7).
libgmp3-dev is already the newest version (2:6.1.1+dfsg-1).
libpcap-dev is already the newest version (1.7.4-3).
nmap is already the newest version (7.30-0kali1).
python-pip is already the newest version (8.1.2-2).
ruby-dev is already the newest version (1:2.3.0+4).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Requirement already satisfied (use --upgrade to upgrade): tabulate in /usr/local/lib/python2.7/dist-packages
Requirement already satisfied (use --upgrade to upgrade): terminaltables in /usr/local/lib/python2.7/dist-packages
WARNING: bin/xettercap is not executable
WARNING: See http://guides.rubygems.org/specification-reference/ for help
Successfully built RubyGem
Name: xettercap
Version: 1.5.7xerob
File: xettercap-1.5.7xerob.gem
ERROR: While executing gem ... (TypeError)
no implicit conversion of nil into String
Xerosploit has been sucessfuly instaled. Execute 'xerosploit' in your terminal.
root@unkown:/home/d4rkn0/Downloads/xerosploit#

i got that Xerosploit has been sucessfuly instaled but if i try to execute 'xerosploit' in terminal i got nothing even if i tried to run xerosploit.py i got this :

root@unkown:/home/d4rkn0/Downloads/xerosploit# ./xerosploit.py
Traceback (most recent call last):
File "./xerosploit.py", line 980, in main
home()
File "./xerosploit.py", line 62, in home
config0()
File "./xerosploit.py", line 44, in config0
up_interface = open('/opt/xerosploit/tools/files/iface.txt', 'r').read()
IOError: [Errno 2] No such file or directory: '/opt/xerosploit/tools/files/iface.txt'
root@unkown:/home/d4rkn0/Downloads/xerosploit#

error in install

root@kali:~# cd xerosploit/ && python install.py

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

[++] Please choose your operating system.

Ubuntu / Kali linux / Others
Parrot OS

        1

[++] Installing Xerosploit ...
Hit:1 http://old.kali.org/kali sana InRelease
Чтение списков пакетов… Готово
Чтение списков пакетов… Готово
Построение дерева зависимостей
Чтение информации о состоянии… Готово
build-essential is already the newest version (11.7).
hping3 is already the newest version (3.a2.ds2-7).
libgmp3-dev is already the newest version (2:6.0.0+dfsg-6).
libpcap-dev is already the newest version (1.6.2-2).
ruby-dev is already the newest version (1:2.1.5+deb8u1).
nmap is already the newest version (7.01-1).
python-pip is already the newest version (1.5.6-7).
git is already the newest version (1:2.7.0~rc3-1).
Следующие пакеты устанавливались автоматически и больше не требуются:
libjs-jquery-easing libjs-jquery-fancybox libjs-jquery-mousewheel libuv1
nodejs ruby-ansi ruby-daemons ruby-dataobjects ruby-dataobjects-mysql
ruby-dataobjects-postgres ruby-dataobjects-sqlite3 ruby-diff-lcs
ruby-dm-core ruby-dm-do-adapter ruby-dm-migrations ruby-dm-serializer
ruby-dm-sqlite-adapter ruby-docile ruby-em-websocket ruby-erubis
ruby-eventmachine ruby-execjs ruby-geoip ruby-librex ruby-libv8
ruby-mojo-magick ruby-msfrpc-client ruby-msgpack ruby-parseconfig ruby-qr4r
ruby-rack ruby-rack-protection ruby-rainbow ruby-ref ruby-rexec ruby-rqrcode
ruby-rspec-expectations ruby-rspec-support ruby-rubydns ruby-simplecov
ruby-simplecov-html ruby-sinatra ruby-term-ansicolor ruby-therubyracer
ruby-tilt ruby-tins ruby-uglifier thin
Для их удаления используйте «apt autoremove».
обновлено 0, установлено 0 новых пакетов, для удаления отмечено 0 пакетов, и 9 пакетов не обновлено.
Requirement already satisfied (use --upgrade to upgrade): tabulate in /usr/local/lib/python2.7/dist-packages
Requirement already satisfied (use --upgrade to upgrade): terminaltables in /usr/local/lib/python2.7/dist-packages
Cleaning up...
WARNING: bin/xettercap is not executable
WARNING: See http://guides.rubygems.org/specification-reference/ for help
Successfully built RubyGem
Name: xettercap
Version: 1.5.7xerob
File: xettercap-1.5.7xerob.gem
Fetching: colorize-0.8.1.gem (100%)
Successfully installed colorize-0.8.1
Fetching: pcaprub-0.12.4.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing xettercap-1.5.7xerob.gem:
ERROR: Failed to build gem native extension.

/usr/bin/ruby2.2 -r ./siteconf20161218-14199-ex3174.rb extconf.rb

mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h

extconf failed, exit code 1

Gem files will remain installed in /var/lib/gems/2.2.0/gems/pcaprub-0.12.4 for inspection.
Results logged to /var/lib/gems/2.2.0/extensions/x86_64-linux/2.2.0/pcaprub-0.12.4/gem_make.out
Xerosploit has been sucessfuly instaled. Execute 'xerosploit' in your terminal.

Traceback (most recent call last)

File "/opt/xerosploit/xerosploit.py", line 26, in
from terminaltables import DoubleTable
ImportError: No module named terminaltables

problem please help !!!

Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libgmp3-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
libgmp-dev

E: Unable to locate package libpcap-dev
E: Package 'libgmp3-dev' has no installation candidate
WARNING: bin/xettercap is not executable
WARNING: See http://guides.rubygems.org/specification-reference/ for help
Successfully built RubyGem
Name: xettercap
Version: 1.5.7xerob
File: xettercap-1.5.7xerob.gem
Building native extensions. This could take a while...
ERROR: Error installing xettercap-1.5.7xerob.gem:
ERROR: Failed to build gem native extension.

current directory: /var/lib/gems/2.3.0/gems/pcaprub-0.12.4/ext/pcaprub_c

/usr/bin/ruby2.3 -r ./siteconf20160920-2770-1yezv0r.rb extconf.rb

[*] Running checks for pcaprub_c code...
platform is x86_64-linux-gnu
checking for ruby/thread.h... yes
checking for rb_thread_blocking_region()... no
checking for rb_thread_call_without_gvl()... yes
checking for pcap_open_live() in -lpcap... no
checking for pcap_setnonblock() in -lpcap... no
creating Makefile

To see why this extension failed to compile, please check the mkmf.log which can be found here:

/var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/pcaprub-0.12.4/mkmf.log

current directory: /var/lib/gems/2.3.0/gems/pcaprub-0.12.4/ext/pcaprub_c
make "DESTDIR=" clean

current directory: /var/lib/gems/2.3.0/gems/pcaprub-0.12.4/ext/pcaprub_c
make "DESTDIR="
compiling pcaprub.c
pcaprub.c:11:18: fatal error: pcap.h: No such file or directory
#include <pcap.h>
^
compilation terminated.
Makefile:239: recipe for target 'pcaprub.o' failed
make: *** [pcaprub.o] Error 1

make failed, exit code 2

Gem files will remain installed in /var/lib/gems/2.3.0/gems/pcaprub-0.12.4 for inspection.
Results logged to /var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/pcaprub-0.12.4/gem_make.out
Xerosploit has been sucessfuly instaled. Execute 'xerosploit' in your terminal.

add flag for js loading (read)

Currently, if you use injectjs, it loads the js roughly at the top of the page before the rest of the page loads. This causes issues if you have, for instance, an event listener looking for submit events, and also needs to read the amount of x tags you have on a page.

Suggestion: add a flag to place the js at the bottom of the page.

Raspberry pi 3

Hello, im having a problem scanning. When hit scan it starts to give me the next warning:

WARNING: eth_send of arp packet returned -1 than expected 42 (errno=22: Invalid argument)

If anyone has the solution i appreciate it

Errors

Hai, i'm getting random type of errors while i try to run any module
Example of sniff module error:
/var/lib/gems/2.1.0/gems/xettercap-1.5.7xerob/lib/bettercap/spoofers/icmp.rb:24:inclass:ICMPRedirectPacket': uninitialized constant PacketFu::EthHeaderMixin (NameError)
from /var/lib/gems/2.1.0/gems/xettercap-1.5.7xerob/lib/bettercap/spoofers/icmp.rb:17:in <module:Spoofers>' from /var/lib/gems/2.1.0/gems/xettercap-1.5.7xerob/lib/bettercap/spoofers/icmp.rb:15:inmodule:BetterCap'
from /var/lib/gems/2.1.0/gems/xettercap-1.5.7xerob/lib/bettercap/spoofers/icmp.rb:14:in <top (required)>' from /usr/local/lib/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:inrequire'
from /usr/local/lib/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in require' from /var/lib/gems/2.1.0/gems/xettercap-1.5.7xerob/lib/bettercap.rb:66:inblock in bettercap_autoload'
from /var/lib/gems/2.1.0/gems/xettercap-1.5.7xerob/lib/bettercap.rb:65:in each' from /var/lib/gems/2.1.0/gems/xettercap-1.5.7xerob/lib/bettercap.rb:65:inbettercap_autoload'
from /var/lib/gems/2.1.0/gems/xettercap-1.5.7xerob/lib/bettercap.rb:70:in <top (required)>' from /usr/local/lib/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:133:inrequire'
from /usr/local/lib/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:133:in rescue in require' from /usr/local/lib/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:40:inrequire'
from /var/lib/gems/2.1.0/gems/xettercap-1.5.7xerob/bin/xettercap:16:in <top (required)>' from /usr/local/bin/xettercap:23:inload'
from /usr/local/bin/xettercap:23:in `

'

`
I updated ruby gems btw so no idea whats going on

Error in all except replace .

/var/lib/gems/2.2.0/gems/xettercap-1.5.7xerob/bin/xettercap:51:in rescue in <top (required)>': undefined local variable or method original_argv' for main:Object (NameError)
from /var/lib/gems/2.2.0/gems/xettercap-1.5.7xerob/bin/xettercap:61:in <top (required)>' from /usr/local/bin/xettercap:23:in load'
from /usr/local/bin/xettercap:23:in `

'

DNS Spoofing

While using dspoof module, does xerosploit allows user to specify a specific domain in order to redirect it to a specified IP instead of redirecting all http traffic ?. For example only .facebook.com request is redirected to our specified IP. Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.