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 details)

Uploaded Source

File details

Details for the file MimV6-1.0.0.tar.gz.

File metadata

  • Download URL: MimV6-1.0.0.tar.gz
  • Upload date:
  • Size: 18.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1

File hashes

Hashes for MimV6-1.0.0.tar.gz
Algorithm Hash digest
SHA256 22a6973b2491633cbcc2edb7bffdda018a47792e63053e05c75c131c5f0a6e85
MD5 ae2da00a47ab0cacc87c1687c1e38f4b
BLAKE2b-256 6c7eb652ba16d94775a1b8cd1ec4c2117f59937c09c125e0d76e31ab5a6b8145

See more details on using hashes here.

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