Mantikor
Disclaimer: This project is only for demonstration purposes and should not be used for illegal acts!
Please have a look at why I published this tool. Thanks
Whats Mantikor?
Mantikor is an Open-Source address-resolution spoofing-Tool. The application is written in C# with the use of SharpPcap and PacketNet.
My intention
During my studies to become an IT specialist, I started to get very interested in programming network applications. Thereby, I noticed the huge number of possibilities and vulnerabilities in network protocols. After a short time, I got familiar with the ARP and NDP protocols. It didn’t take me much time to create the project called Mantikor. My intention was to learn more about ARP and NDP spoofing, combined with the idea of building some security mechanism to prevent it. For this reason I created this project to have a working vulnerability exploitation tool. For some years now, mechanisms such as “DAI” have been in place in Enterprise switches to prevent ARP spoofing. However, these features are not implemented in most networks.
What’s the easiest way to prevent spoofing in an Enterprise Network?
Company networks have an easy way to prevent ARP using the DAI (Dynamic Arp Inspection) feature. This can be configured on switches. Firewalls can also detect spoofing attacks.
Cisco.com: Understanding and Configuring Dynamic ARP Inspectio
What’s the easiest way to prevent spoofing on a PC?
The easiest solution to prevent ARP and NDP spoofing is to manually (statically) enter the MAC address of the gateway into the arp and ndp-table.
- With Windows this can be done quite easily with the Powershell: (Example)
Get-NetAdapter
Which returns:
Name InterfaceDescription ifIndex Status MacAddress LinkSpeed
---- -------------------- ------- ------ ---------- ---------
Wi-Fi Intel(R) Dual Band Wireless 18 Disconnected 12-34-56-AB-CD-EF 6 Mbps
Ethernet Intel(R) Ethernet Connection … 9 Up 78-90-12-GH-IJ-KL 1 Gbps
- To create a static ARP cache entry for that interface (that survive a reboot):
New-NetNeighbor -InterfaceIndex 9 -IPAddress '192.168.178.1' -LinkLayerAddress '0000120000ff' -State Permanent
- You can remove the entry we just created by running this:
Remove-NetNeighbor -InterfaceIndex 9 -IPAddress '192.168.178.1'
The same works for NDP. For this, the IPv6 address must be used instead of the IPv4 address of the gateway in step 2.
How to use Mantikor
Mantikor is designed as a console program and can therefore also be executed directly via cmd or powershell. To select an item in the menu, the listed numbers are used. Mantikor allows to spoof either over IPv4/IPv6 or both protocols i.e. ARP and NDP at the same time.
Menu:
- Configure Network Adapter – pick the interface to use.
- Scan for IPv6 Hosts – actively discovers IPv6 hosts on the link (ICMPv6 echo to
ff02::1), lists each one with its IPv6 address, MAC and (best-effort) hostname, and lets you pick the target and gateway straight from the results. Missing MAC addresses are resolved automatically via NDP.
- Define new Targets (manual) – enter a target IP by hand. For IPv4 the MACs are resolved via ARP; for IPv6 they are resolved automatically via NDP (Neighbor Solicitation), with manual entry as a fallback.
- Print/Edit Target-List – review or remove targets.
- Start Attack / 6. Force Stop.
For IPv6 you no longer have to look up the target or gateway MAC yourself – Mantikor discovers and resolves them on the link.
What you need
To build Mantikor you need the .NET 8.0 SDK. At runtime a packet-capture driver has to be installed:
Build & run on Linux
# Build and run from source
dotnet run --project src/Mantikor.csproj
# Or publish a self-contained single-file binary (no .NET runtime required on the target)
dotnet publish src/Mantikor.csproj -p:PublishProfile=Linux-Deploy-Single-File
sudo ./src/bin/Release/net8.0/publish/linux-x64/Mantikor
Build & run on Windows
Open Mantikor.sln in Visual Studio and run, or from the command line:
dotnet run --project src/Mantikor.csproj
Changelog
- V1.0.10.0 - Added active IPv6 host discovery: scan the local link for IPv6 hosts (ICMPv6 echo to ff02::1), list them with IPv6 address, MAC and hostname, and pick target/gateway from the results. Added an NDP resolver (Neighbor Solicitation/Advertisement) so IPv6 target and gateway MAC addresses are resolved automatically instead of being typed in by hand.
- V1.0.9.0 - Fixed NDP/IPv6 spoofing (correct ICMPv6 checksum, hop limit 255 and neighbor-advertisement layout), replaced the unsupported
Thread.Abort() with cooperative cancellation so Force Stop no longer crashes, fixed the duplicate ARP MAC resolution, hardened all console input, added graceful handling when libpcap/Npcap is missing, added an Exit menu item, dropped the Windows-only Costura.Fody weaver in favour of .NET single-file publish, moved to a committed .gitignore (removed build output and restored packages from version control).
- V1.0.8.0 - SharpPcap 6.2.5.0, .NET 8.0, Linux Support, changed to LibPcapDevice, new method to resolve via ARP, NDP-Classes merged, Code-Cleanup, fixed wrong User-Inputs.
Copyright
The contents and works in this software created by the software operators are subject to German copyright law. The reproduction, editing, distribution and any kind of use outside the limits of copyright law require the written consent of the respective author or creator. Downloads and copies of this software are only permitted for private, non-commercial use.
Insofar as the content on this software was not created by the operator, the copyrights of third parties are observed. In particular, third-party content is identified as such. Should you nevertheless become aware of a copyright infringement, please inform us accordingly. If we become aware of any infringements, we will remove such contents immediately.
Source: eRecht24.de
Cheers 👀
评论