mirror of
https://github.com/hak5/nano-tetra-modules.git
synced 2025-10-29 16:58:09 +00:00
16 lines
434 B
Bash
Executable File
16 lines
434 B
Bash
Executable File
#!/bin/sh
|
|
#2015 - Whistle Master
|
|
|
|
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/sd/lib:/sd/usr/lib
|
|
export PATH=$PATH:/sd/usr/bin:/sd/usr/sbin
|
|
|
|
MYTIME=`date +%s`
|
|
MYINTERFACE=`uci get dnsspoof.run.interface`
|
|
HOSTSFILE="/etc/pineapple/spoofhost"
|
|
|
|
if [ "$1" = "start" ]; then
|
|
dnsspoof -i ${MYINTERFACE} -f ${HOSTSFILE} > /dev/null 2> /pineapple/modules/DNSspoof/log/output_${MYTIME}.log
|
|
elif [ "$1" = "stop" ]; then
|
|
killall -9 dnsspoof
|
|
fi
|