Nethme aims to make network hacking easy by providing a single, yet powerfull API such as Network and Device classes.
Nethme is written in python and uses scapy for packets crafting and manipulation.
clone this repo
install all the necessary packages (we recommend using a virtual environment)
pip install -r requirements.txt
check the
examplesfolder and start Hacking.if you like this project, give it a star :)
Start by creating a Network object
fromnethmeimport*net=Network(iface='en0')The Network class provides many functions and attributes such as:
gatewayproperty returns a Device object describing the default gateway
print(net.gateway)this_deviceproperty returns a Device object of the machine executingnethme
print(net.this_device)- Find a device using MAC or IP addresses, note that for now
nethmeonly usesARPto find devices.
try:
dev=net.get_device(ip='192.168.1.5')
exceptDeviceNotFoundExceptionase:
print(e)- Loop over all up hosts:
fordeviceinnet:
print(device, "is up")The Device object represents a host in the local network, and can be used to perform actions such as:
- ARP Poison: The
poison_arpmethod will poison the ARP entry related to the default gateway if no argument is passed. Note thatpoison_arpwill spwn a new thread and keep sendingwho_hasARP requests forever.
try:
dev=net.get_device(ip='192.168.1.5')
exceptDeviceNotFoundExceptionase:
print(e)
else:
dev.poison_arp()- Intercept requests: For now
nethmeonly support thehttp_requestevent
defhttp_handler(device, http_request):
print("Got http request packet from:", device)
http_request.show()
try:
victim=net.get_device(ip='192.168.1.5')
exceptDeviceNotFoundExceptionase:
print(e)
else:
victim.intercept('http_request', http_handler)Now Nethme is being developed only by me, and only support basic actions, the project is not very stable and may be buggy sometimes.
- Implement other host discovery methods
- Follow tcp stream
- Write installation guide
- Check open ports/services on a given device
- Comment the code
- Implement other event intercepter
- Improve the
http_requestevent intercepter - Improve this README
- Many other things..