Hiya all, first post here so be gentle :P
I've been taking time to learn bash scripting and enjoying messing with my network so I figured I'd take the commands I use the most often and write up a bash script with them (airodump, aircrack, aireplay, dsniff, nmap, arpspoof, etc.)
Long story short i'm having a major issue with this arpspoof script that i'm trying to write and after tirelessly trying to find a answer, just can't seem to get it to work.
Code:
#!/bin/bash
clear
read -p "Run route -n? (y/n) " dgateway
if [ dgateway = y ]; then
sudo xterm -e "route -n" &
echo "Moving along..."
fi
....more code from here....
I've been trying to learn how to do this via several older books and just picking apart other peoples scripts. So most of the time i'm not even sure if the information still applies.
What happens for me is it briefly opens a window (can just see it flash) and moves along with the rest of the script. What I want to happen is it pop up a window and leave it be while the script moves along. Really got me annoyed, hehe.
Any help here would be greatly appreciated.