Skip to main content

This package implement a Man In the Middle attack in IPv6, a IPv6 Sniffer and a Statistic Packet Tool.

Project description

MimV6

Description

This package implement a Man In the Middle attack in IPv6, a IPv6 Sniffer and a Statistic Packet Tool.

Requirements

  • Python 3
  • Librairies standarts
  • Scapy

Install

pip install MimV6

Usage

Command line:

mimV6
mimV6 -h && mimV6 --help
mimV6 -H -s -D -d -p -r -i -T "all" -S "save.pcap" -t "all" -v && mimV6 --no-hexa-sniffer --summary-sniffer --details-sniffer --details2-sniffer --python-sniffer --raw-sniffer --info-sniffer --target-sniffer "all" --save-filename-sniffer "save.pcap" --target-spoofer "all" --verbose-spoofer

To stop it use Ctrl + C.

Test

To launch test install and use pytest like this:

python3 -m pip install pytest
pytest

Examples

To launch mim attack like the command line in python:

from MimV6 import mim_attack

mim_attack()

Use Packet Printer Tool:

from MimV6 import PacketPrinter
from scapy.all import Ether, IPv6, TCP

printer = PacketPrinter()
printer.print(Ether()/IPv6()/TCP())

Use Spoofer Tool:

from MimV6 import Spoofer

spoofer = Spoofer()
spoofer.launcher()

Use the Packet Statistic Tool:

from MimV6 import statistics, PacketStats
from scapy.all import Ether, IP, TCP, UDP, IPv6

statistics.append(PacketStats(Ether()))
statistics.append(PacketStats(Ether()/IP()))
statistics.append(PacketStats(Ether()/IP()/TCP()))
statistics.append(PacketStats(Ether()/IP()/UDP()))
statistics.append(PacketStats(Ether()/IPv6()/TCP()))
statistics.append(PacketStats(Ether()/IPv6()/UDP()))
statistics.append(PacketStats(Ether()/IPv6()))
statistics.append(PacketStats(Ether()))

print(f"""
UDP: {PacketStats.udp}
TCP: {PacketStats.tcp}
Other: {PacketStats.other}
""")

print("Lenght: " + ", ".join([str(pkt.lenght) for pkt in statistics]))

To use Custom Sniffer and use sniffed packets:

from MimV6 import Sniffer, Spoofer, PacketPrinter

class CustomAnalysis (Sniffer):
	
	def __init__ (self):
		super().__init__("all", PacketPrinter(), None)

	def analysis (self, packet):
		print(bytes(packet))

attack = Spoofer("all", CustomAnalysis())
attack.launcher()

License

Licensed under the GPL, version 3.

Link

Gitlab Page

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

MimV6-1.0.0.tar.gz (18.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page