DNSInjector V0.2.1
By Quetuo
A live DNS injection tool for local networksDNSInjector allows live DNS injection / spoofing on a local network. It listens for DNS requests from devices on the network then before the remote server can respond, spoofs a response with a false IP. The real response is simply ignored thanks to the lack of security in the domain name system. You can redirect people to malicious servers if you so wish, proxy their requests and steal their information etc. Bear in mind that this is a work in progress and many features will be added soon!
Usage: DNSInjector [-hv] [--verbosity=<N>] [--interface=<INTERFACE>] [--ip=<IP>] [--script=<FILE>] [--target=<IP>]...
-h, -H, --help print this help information and exit
-v, -V, --verbosity increase the verbosity
--verbosity=<N> set the verbosity
--interface=<INTERFACE> set the interface to listen on
--ip=<IP> set the false IP to spoof
--script=<FILE> Lua script file
--target=<IP> target IPs
Run a spoofing DNS server on the local machine to respond to all DNS requests with a false IP
Example;
sudo ./DNSInjector --interface=wlan0 --ip=192.168.2.8
Note that DNSInjector should be run as root (sudo) and is Linux-only at the moment.
ScriptingYou can include Lua scripts with the --script option. Define a function of the prototype
function callback (source, dest, address)
and this will be called whenever a DNS request is identified. Return "NULL" if no IP is to be spoofed, or the IP as a string if it is. For example;
-- This is an example DNSInjector Lua script
function callback (source, dest, address)
if address == "facebook.com" then
return "192.168.2.1"
end
if address == "www.facebook.com" then
return "192.168.2.1"
end
return "NULL"
end
If you've got any questions, find any bugs or want to request a feature, please PM me or post here!
TODO list
- Selective spoofing filters
Download (source)(MD5 hash: 114b9264aa5e17dd67a2015dfedf6c70)