Coding Wireless applications in windows.
Alright, when you are trying to code your very own netstumbler there are a few choices out there for you to use. Making a netstumbler clone is honestly pretty simple.
1.: Use WRAPI.
QUOTE
WRAPI is a software library that allows applications running in user space on mobile end stations to query information about the IEEE 802.11 network they are attached to. WRAPI 1.0 is implemented on the Windows XP operating system and is a hardware-independent tool that works with any IEEE 802.11b wireless network hardware vendor.
you can get wrapi here
hxxp://ramp.ucsd.edu/pawn/wrapi/
If you use wrapi, you have the advantage that it is guaranteed to work regardless of any wireless card. the downside, you must use xp. WRAPI is a fairly straightforware to use library with a nice set of functions. You can easily make a netstumbler clone with this in any language of your choice(after you compile wrapi)
A major drawback to using wrapi is that you must have the windows ddk, not everybody has it, but it is free(minus shipping and handling?)
get it here:
hxxp://www.microsoft.com/whdc/devtools/ddk/orderddkcd.mspx
2: Use the WMI
When the shmoo group presented their presentation at toorcon, i was definatley intrigued because even though i knew all of it already, i never thought to use it. WMI has many functions that support alot of wireless applications. Your netstumbler clone in vbscript couldnt be easier. To see a quick example of the functions that are provided you can just go to
start -> run -> "wbemtest" -> click connect -> under namespace put "root\wmi"
click "enum classes" -> click recursive -> click ok
now here you see all the functions you are entitled to, specifically, scroll down to the
"MSNdis_80211_" fields, look at all those wireless functions... hmm i wonder what we could do with those
If you want source i found this example: "Wireless Signal Strength"
hxxp://www.samurize.com/modules/ipboard/http://www.governmentsecurity.org/forum/index.php?showtopic=2505&st=0
3. use winpcap
just because its not specifically for wireless, and you cant grab management frames doesnt make it useless.
Airsnare is a good example of this:
hxxp://home.comcast.net/~jay.deboer/airsnare/
QUOTE
AirSnare is another tool to add to your Wireless Intrusion Detection Toolbox. AirSnare will alert you to unfriendly MAC addresses on your network and will also alert you to DHCP requests taking place. If AirSnare detects an unfriendly MAC address you have the option of tracking the MAC address's access to IP addresses and ports or by launching Ethereal upon a detection.
using winpcap found at
hxxp://winpcap.polito.it/
you can still code many useful utilities.
4. Driver/ndis programming
Yep, last resort, but is it really that difficult?
Probably, but ir you recall a recent post of mine regarding hostap for windows, you may recall a neat app called prisma. If you happen to own a prism 2 based card you can easily build off the source, since its included. Infact, if you have anything to add, im sure they could use your help.
QUOTE
26/06/2004
Help needed for WEP cracking on windows !
I wrote a quick and dirty sample program to control Prism2 based cards using the Winpcap protocol driver and the PacketRequest API. WEP cracking requires the capture of 802.11 frames; this program shows how to set those cards into HostAP and monitor mode and contains functions to get/set parameters of the Prism2 chipset. The FULL SOURCE CODE for Visual C++ is included, I hope that you can help me on some topics and problems I found. The code should compile without problems but to test the program you need a Prism2 based card and the Winpcap driver installed.
You can download Prisma here.
Help needed for WEP cracking on windows !
I wrote a quick and dirty sample program to control Prism2 based cards using the Winpcap protocol driver and the PacketRequest API. WEP cracking requires the capture of 802.11 frames; this program shows how to set those cards into HostAP and monitor mode and contains functions to get/set parameters of the Prism2 chipset. The FULL SOURCE CODE for Visual C++ is included, I hope that you can help me on some topics and problems I found. The code should compile without problems but to test the program you need a Prism2 based card and the Winpcap driver installed.
You can download Prisma here.
You can download Prisma here:
hxxp://www.oxid.it/downloads/Prisma_v1.0.zip
So wrapping it up, are you really limited on windows?
yes.
ok but atleast you have many options still available to you, go out and code me a great app using a combination of all these methods, its 100 percent possible!




