I've never tried to write bash, so please forgive any formatting errors or any misunderstandings of what limitations you are working under. Here is a rough flow I was thinking of:
1. IP Tables Cleanup
2. Start sslstrip
3. Start loop parse
4. Decision loop:
Code:
while :
do
echo "What now? (q = quit, s = scan for hosts, a = arpspoof full network, t <ip> = arpsoof single ip)
read -e decision
if [[decision = "q"]] ; then
cleanup
elif [[decision = "s"]] ; then
call to scan method here
elif [[decision = "a"]] ; then
call to arpspoof full network here
elif [[decision = "t"]] ; then
call to arpspoof single ip here
else
statement about bad command entry here
fi
done
The idea is to setup and kick off all the necessary stuff first. Then execute the more detailed work based on user input. I do understand this may be going beyond your intentions for the script.