资源简介
AirSnort is a wireless LAN (WLAN) tool which recovers encryption keys. AirSnort operates by passively monitoring transmissions, computing the encryption key when enough packets have been gathered.
代码片段和文件信息
/*
This file is part of AirSnort.
AirSnort is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License or
(at your option) any later version.
AirSnort is distributed in the hope that it will be useful
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with AirSnort; if not write to the Free Software
Foundation Inc. 59 Temple Place Suite 330 Boston MA 02111-1307 USA
*/
#include
#include
#ifndef WIN32
#include
#else
#include
#endif
#include
#include “bssidlist.h“
#include “crc-32.h“
#include “capture.h“
#include “crack.h“
#include “utils.h“
BssidList *head = 0;
BssidList *tail = 0;
extern int listCount;
void addKorekIV(BssidList *apNode PacketInfo *pi);
BssidList *bssidFind(const unsigned char *bssid) {
BssidList *temp = head;
for (; temp; temp = temp->next) {
if (!memcmp(temp->bssid bssid 6)) {
break;
}
}
return temp;
}
BssidList *rowFind(int row) {
BssidList *temp = head;
for (; temp; temp = temp->next) {
if (row == temp->rownum) {
break;
}
}
return temp;
}
//the capture thread runs through here to see if it should try a new crack.
//A terminating crack thread also runs through here to see if enough new packets
//have been added to warrent starting a new thread.
void checkThread(BssidList *apNode) {
#ifndef WIN32
sem_wait(&apNode->crackSem);
if ((apNode->crackerThread == 0) && ((apNode->queueLen > 9) || (apNode->newBreadth))) {
pthread_create(&apNode->crackerThread NULL cracker apNode->ap);
}
sem_post(&apNode->crackSem);
#else
WaitForSingleobject(apNode->crackSem INFINITE);
if ((apNode->crackerThread == 0) && ((apNode->queueLen > 9) || (apNode->newBreadth))) {
apNode->crackerThread = CreateThread(NULL 0 cracker apNode->ap 0 NULL);
}
ReleaseSemaphore(apNode->crackSem 1 NULL);
#endif
}
//ap should be a valid BssidList node or NULL
void addPacket(BssidList *apNode PacketInfo *pi int isData) {
if (!apNode) {
apNode = bssidFind(pi->bssid);
if (!apNode) {
apNode = addBssid(pi);
}
}
if (apNode->ap->cracked) return; //save time if ap is already cracked
if (!apNode->usingWep && pi->wep) {
addWep(apNode);
}
if (pi->channel > 0) {
apNode->channel = pi->channel;
}
if (apNode->usingWep && isData) {
memcpy(apNode->lastiv pi->iv 3);
apNode->numEncrypted++;
if (pi->pack) {
enqueuePacket(apNode->ap pi->pack);
checkThread(apNode);
}
addKorekIV(apNode pi);
}
apNode->lastSeen = pi->rxTime;
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2010-05-31 03:05 airsnort-0.2.7\airsnort-0.2.7\
文件 142 2004-12-19 19:28 airsnort-0.2.7\airsnort-0.2.7\acconfig.h
文件 44214 2004-12-19 19:33 airsnort-0.2.7\airsnort-0.2.7\aclocal.m4
文件 45249 2004-12-19 19:28 airsnort-0.2.7\airsnort-0.2.7\airsnort.glade
文件 320 2004-12-19 19:28 airsnort-0.2.7\airsnort-0.2.7\airsnort.gladep
文件 91 2004-12-19 19:28 airsnort-0.2.7\airsnort-0.2.7\AUTHORS
目录 0 2010-05-31 03:05 airsnort-0.2.7\airsnort-0.2.7\bin\
文件 143418 2004-12-19 19:29 airsnort-0.2.7\airsnort-0.2.7\bin\airsnort.exe
文件 189 2004-12-19 19:34 airsnort-0.2.7\airsnort-0.2.7\bin\airsnort.exe.asc
文件 6143 2004-12-19 19:28 airsnort-0.2.7\airsnort-0.2.7\ChangeLog
文件 775 2004-12-19 19:33 airsnort-0.2.7\airsnort-0.2.7\config.h.in
文件 197834 2004-12-19 19:33 airsnort-0.2.7\airsnort-0.2.7\configure
文件 402 2004-12-19 19:28 airsnort-0.2.7\airsnort-0.2.7\configure.in
文件 18005 2004-12-19 19:28 airsnort-0.2.7\airsnort-0.2.7\COPYING
文件 15205 2004-09-29 13:15 airsnort-0.2.7\airsnort-0.2.7\depcomp
文件 12288 2004-12-19 19:28 airsnort-0.2.7\airsnort-0.2.7\faq.txt
文件 97 2004-12-19 19:28 airsnort-0.2.7\airsnort-0.2.7\INSTALL
文件 9206 2004-09-29 13:15 airsnort-0.2.7\airsnort-0.2.7\install-sh
文件 753 2004-12-19 19:28 airsnort-0.2.7\airsnort-0.2.7\Makefile.am
文件 19052 2004-12-19 19:33 airsnort-0.2.7\airsnort-0.2.7\Makefile.in
目录 0 2010-05-31 03:05 airsnort-0.2.7\airsnort-0.2.7\man\
文件 6401 2004-12-19 19:28 airsnort-0.2.7\airsnort-0.2.7\man\airsnort.1
文件 3667 2004-12-19 19:28 airsnort-0.2.7\airsnort-0.2.7\man\decrypt.1
文件 2572 2004-12-19 19:28 airsnort-0.2.7\airsnort-0.2.7\man\gencases.1
文件 130 2004-12-19 19:28 airsnort-0.2.7\airsnort-0.2.7\man\Makefile.am
文件 9651 2004-12-19 19:33 airsnort-0.2.7\airsnort-0.2.7\man\Makefile.in
文件 10587 2004-09-29 13:15 airsnort-0.2.7\airsnort-0.2.7\missing
文件 118 2004-12-19 19:28 airsnort-0.2.7\airsnort-0.2.7\NEWS
文件 7031 2004-12-19 19:28 airsnort-0.2.7\airsnort-0.2.7\README
文件 1979 2004-12-19 19:28 airsnort-0.2.7\airsnort-0.2.7\README.decrypt
文件 1795 2004-12-19 19:28 airsnort-0.2.7\airsnort-0.2.7\README.win
............此处省略39个文件信息
相关资源
- 破解acssess数据库密码 破解acssess数据
- Quartus+II 9.0 全套破解文件
- Magicv蓝屏修正完美破解补丁.rar
- Crystal Xcelsius Professional 4.5 破解补丁
- ad9破解补丁
- win7版 H3C 华为客户端802.1X 破解版
- ACDSystem.All.Products.Keygen.v4.5-CORE
- dxc采集器破解版vip3.0
- swapidc去云平台
- QuartusII15.0破解版
- pads 9.4.1 破解文件
- Multisim 12.0/13.0激活器
- WEPP模型使用手册
- datawindow.net 2.0 破解
- beckhoff twincat 破解最新模块
- MPLAB X IDE XC8 破解
- origin8.0 中文版 破解方法
- DXperience8.1.3无限制破解版全套
- LabWindowsCVI 2013破解版
- 完美DDOS破解版.rar
- Quartus11.0破解软件32位+64位全了
- minidwep-gtk-40420-ubuntu-64bit.deb
- KeyShot6.2.85破解文件
- IAR for ARM 7.6 安装文件+和谐文件
- modelsim 6.2b破解包
- ABC Amber CHM Converter V1.06完美破解版
- PDFView4NET 4.6.2破解版,去除试用版水印
- T1批发零售版破解补丁12.0
- 紫微排盘destiny5.0完全破解版
- 工时定额标准查询参考1.1.6.1破解版
评论
共有 条评论