Discover Packages
github.com/qa5imm/hacklan
command
module
Version:
v0.0.0-...-bb19262
Opens a new window with list of versions in this module.
Published: Jan 16, 2026
License: MIT
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: ? modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
README
README
¶
HackLAN
A go utility to perform LAN attacks, currently it supports only arp spoofing but more attacks will be added in the future.
Features
Network Scanning : Fast ARP-based network discovery
ARP Spoofing : Execute ARP spoofing attacks against one or all devices on the network
Usage
#install the package
go install github.com/qa5imm/hacklan@latest
# Run the interactive tool
hacklan
How It Works
Network Discovery
The tool performs comprehensive network reconnaissance:
Interface Detection : Automatically identifies the active network interface by simulating a route to the internet (8.8.8.8)
Gateway Discovery : Uses the system routing table to find the actual gateway for internet-bound traffic (via go-netroute)
ARP Scanning :
Sends multiple rounds of ARP requests to all IPs in the subnet
Listens for ARP replies using packet capture
Performs 5 rounds with delays to discover devices that may be in power-saving mode
Maps IP addresses to MAC addresses
Target Filtering : Automatically excludes your machine and the gateway from the attackable device list
ARP Poisoning
ARP (Address Resolution Protocol) poisoning exploits the lack of authentication in ARP:
Normal Flow : Device asks "Who has IP X?" → Device with IP X responds with its MAC address
Poisoned Flow : Attacker sends unsolicited ARP replies claiming to be the gateway
Result : Victim's ARP cache is poisoned, believing the attacker's MAC is the gateway
This tool performs unidirectional poisoning :
Continuously tells the target: "Gateway is at attacker's MAC address"
Target sends all internet-bound traffic to the attacker's MAC
Without packet forwarding enabled, the attacker acts as a black hole
Target loses internet connectivity as packets never reach the real gateway
Attack Modes:
Single Target : Cuts off one specific device from the network
Mass Attack : Simultaneously poisons all discovered devices (excluding self and gateway)
Expand ▾
Collapse ▴
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.