NetStumbler.org Forums

Go Back   NetStumbler.org Forums > Software > Windows
Register Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old 02-10-2005   #1 (permalink)
yulam
Registered Member
 
Join Date: Feb 2005
Posts: 3
Capture 802.11 management frame in Windows

Hi All,

I am a Computer Science student from the City University of Hong Kong. I am now working on my final year project of wireless intrusion detection. I have some problems to capture the 802.11 management and beacon frames using winpcap in Windows XP. I have searched the web and found someone said that there is no way to capture the RAW 802.11 frames in Windows due to lacking of driver support. But I have seen some applications running on Windows can capture the information like SSID, signal strength(Netstumbler, Aerosol). I just wondering if anyone could give me a hand on my question? Should I switch to Linux to go on the development of my project, which I am not willing to since the deadline of submission is coming . I am using the Orinoco Silver 802.11b PCMCIA card on my IBM X31 notebook.

Many thanks!

Ciao,

Yulam
yulam is offline   Reply With Quote
Old 02-10-2005   #2 (permalink)
second2none
Registered Member
 
second2none's Avatar
 
Join Date: Nov 2002
Posts: 6
hello !

i have installed ethereal and the winpc cap which is also available at www.ethereal.com.

then i got aircrack working, which got the tool airodump within.
you have to have a working orinoco card and set up aircrack with all its needs (peek.dll and so on) to collect encrypted packets. the *.cap file can be opend in ethereal. in my capturefile ive seen loads of beacon and managment frames, telling the ssid and so on.
__________________
www.casemodder.de - your (german) source for casemodding!
second2none is offline   Reply With Quote
Old 02-10-2005   #3 (permalink)
yulam
Registered Member
 
Join Date: Feb 2005
Posts: 3
Hello second2none,

Thanks for your kindly reply!

I just got airodump and aircrack working and there are management frames information inside the .cap file after opening it in ethereal. It proved that it is possible to get management frames in Windows XP environment with my orinoco card.

I tried to open the source files come with aircrack 2.1 and there are some headers included in those files, e.g. in airodump.c:

#include <netpacket/packet.h>
#include <sys/ioctl.h>
#include <arpa/inet.h>
#include <net/if.h>
#include <unistd.h>
.......


I go inside to my visual studio 6 include directory and subdirectories but can't find those files listed.

When I tried to compile the file, I got some error messages:

c:\program files\microsoft visual studio\aircrack21\airodump\airodump.c(21) : fatal error C1083: Cannot open include file: 'netpacket/packet.h': No such file or directory
airparse.c
c:\program files\microsoft visual studio\aircrack21\airodump\airparse.c(94) : error C2065: 'TCPDUMP_MAGIC' : undeclared identifier
c:\program files\microsoft visual studio\aircrack21\airodump\airparse.c(100) : error C2065: 'LINKTYPE_IEEE802_11' : undeclared identifier
c:\program files\microsoft visual studio\aircrack21\airodump\airparse.c(116) : warning C4018: '!=' : signed/unsigned mismatch
c:\program files\microsoft visual studio\aircrack21\airodump\airparse.c(122) : warning C4018: '!=' : signed/unsigned mismatch
c:\program files\microsoft visual studio\aircrack21\airodump\airparse.c(368) : error C2039: 'tv_sec' : is not a member of 'pcap_pkthdr'
c:\program files\microsoft visual studio\vc98\include\pcap.h(138) : see declaration of 'pcap_pkthdr'
c:\program files\microsoft visual studio\aircrack21\airodump\airparse.c(369) : error C2039: 'tv_usec' : is not a member of 'pcap_pkthdr'
c:\program files\microsoft visual studio\vc98\include\pcap.h(138) : see declaration of 'pcap_pkthdr'
Error executing cl.exe.

airodump.dll - 5 error(s), 2 warning(s)


It seems that I need to install some kind of libraries(Just guess) in order to compile the files. Do you know any further information for compiling the source file?

Thanks a lot!

Ciao,

Yulam
yulam is offline   Reply With Quote
Old 02-10-2005   #4 (permalink)
RedSector
Registered Member
 
Join Date: Nov 2004
Location: Illinois
Posts: 673
You could simply use the pre-compiled binaries...
__________________
Get thine ass into the Church
The Church of Wifi
RedSector is offline   Reply With Quote
Old 02-10-2005   #5 (permalink)
joswr1ght
Registered Member
 
Join Date: Sep 2004
Posts: 90
Quote:
Originally Posted by yulam
I tried to open the source files come with aircrack 2.1 and there are some headers included in those files, e.g. in airodump.c:

#include <netpacket/packet.h>
#include <sys/ioctl.h>
#include <arpa/inet.h>
#include <net/if.h>
#include <unistd.h>
.......
The source code to airodump that you have is for Linux systems - the Windows version of airodump is not publicly available. You could contact the author and ask for a copy of the source, but it will be up to him to decide if he wants to distribute it to you.

Alternatively, you might spend some time searching the MSDN network for different techniques for collecting 802.11 statistics and radio information. You can also check out the source at http://www.shmoocon.org/wifiwmd4win32.zip for some C# and VBScript examples.

-Josh
__________________
-Joshua Wright
jwright@hasborg.com
http://home.jwu.edu/jwright/

Today I stumbled across the world's largest hotspot. The SSID is "linksys".


Check out the SANS advanced wireless auditing and assessment course:
Los Angeles
joswr1ght is offline   Reply With Quote
Old 02-10-2005   #6 (permalink)
RedSector
Registered Member
 
Join Date: Nov 2004
Location: Illinois
Posts: 673
Quote:
Originally Posted by joswr1ght
The source code to airodump that you have is for Linux systems - the Windows version of airodump is not publicly available. You could contact the author and ask for a copy of the source, but it will be up to him to decide if he wants to distribute it to you.

Alternatively, you might spend some time searching the MSDN network for different techniques for collecting 802.11 statistics and radio information. You can also check out the source at http://www.shmoocon.org/wifiwmd4win32.zip for some C# and VBScript examples.

-Josh
http://www.cr0.net:8040/code/network/aircrack-2.1.zip
There is a folder called win32 in that archive that has the Windows binaries. Unless you mean the Windows source, which I don't think is available.
__________________
Get thine ass into the Church
The Church of Wifi
RedSector is offline   Reply With Quote
Old 02-10-2005   #7 (permalink)
yulam
Registered Member
 
Join Date: Feb 2005
Posts: 3
Thank You RedSector and joswr1ght.

My objective is to find a way to capture the 802.11 management and beacon frames in windows so that I can further analysis the data for intrusion detections. I've tried the binaries of Aircrack and everything works fine on my system and that's why I want to have a look on its source code for Windows to understand how it achieve my objective. I've just wrote to the author of Aircrack for his help.

Thanks for your valuable information!
yulam is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Google
 
Web NetStumbler.org

All times are GMT -7. The time now is 09:48 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 ©2007, Crawlability, Inc.


All messages express the views of the author and are for entertainment purposes only. Netstumbler.org cannot be held responsible for the authenticity of the content or the actions of its members. By using this site and its services, you warrant that you will not post any messages that are discriminating, obscene, hateful, threatening, or otherwise violates any laws and you release Netstumbler.org from any future claims of any kind whatsoever including, but not limited to, addiction and loss of productivity. All forum messages, private messages and any other content are properties of Netstumbler.org. Even if publicly available, personal or copyrighted information are not to be posted without the consent of the owner. Distribution of licensed and copyrighted materials in any way not endorsed by the copyright owner is strictly prohibited. You may not use this site and its resources to spam other sites or individuals or perform any action that violates any law. Items sold or bought in the For Sale forum are sold as is and no warranty or insurance of any kind is provided. Netstumbler.org cannot be held responsible for the outcome of any transactions and no warranty of any kind is provided, either express or implied. Vulgar words are not allowed in the subject lines ; they may be used in the message body in any forum. The Administrator, Super Moderators and Moderators of Netstumbler.org have the right to remove, edit, move or close any thread for any reason and to reveal your identity and other known information in the event of a complaint or legal action arising from any message posted by you.