Discussion:
802.11 management frames supported (Was: Xmas, variadic macros, and 802.11)
Frédéric Raynal
2004-12-25 19:26:55 UTC
Permalink
Re-hi everybody,

I'm done with the support of 802.11 management frame in libnetng.
Currently, only the builders are available, not the injection.

All usual management frames are supported:
libnet_build_802_11_mngt_auth()
libnet_build_802_11_mngt_assoc_req()
libnet_build_802_11_mngt_reassoc_resp()
libnet_build_802_11_mngt_assoc_resp()
libnet_build_802_11_mngt_reassoc_req()
libnet_build_802_11_mngt_deauth()
libnet_build_802_11_mngt_disassoc()
libnet_build_802_11_mngt_probe_req()
libnet_build_802_11_mngt_beacon()
libnet_build_802_11_mngt_probe_resp()

See src/libnet_build_802_11.c for the builders
include/libnet/libnet-headers.h for the data structures
samples/80211.c for an extended example

As my family is kind of crazy, I'll have Christmas party tomorrow, so
don't expect much more before next week.

http://www.security-labs.org/libnetng/ng-last.tbz2

Enjoy,

Fred Raynal
Gisle Vanem
2004-12-26 16:25:32 UTC
Permalink
Post by Frédéric Raynal
See src/libnet_build_802_11.c for the builders
include/libnet/libnet-headers.h for the data structures
samples/80211.c for an extended example
I had some troubles building this sample on Windows. Because
libnet_build_802_11_cap_info() etc. was defined inline. On Win32,
these must be decorated with LIBNET_API to be exported and used
by the sample app.
Post by Frédéric Raynal
http://www.security-labs.org/libnetng/ng-last.tbz2
Can you please rename this to 'ng-last.tar.bz2' since bzip
doesn't recognise the '.tbz2' suffix.

--gv
Frédéric Raynal
2004-12-28 09:43:24 UTC
Permalink
Post by Gisle Vanem
Post by Frédéric Raynal
See src/libnet_build_802_11.c for the builders
include/libnet/libnet-headers.h for the data structures
samples/80211.c for an extended example
I had some troubles building this sample on Windows. Because
libnet_build_802_11_cap_info() etc. was defined inline. On Win32,
these must be decorated with LIBNET_API to be exported and used
by the sample app.
Fixed. I hope I did not forget it for other functions.
Post by Gisle Vanem
Post by Frédéric Raynal
http://www.security-labs.org/libnetng/ng-last.tbz2
Can you please rename this to 'ng-last.tar.bz2' since bzip
doesn't recognise the '.tbz2' suffix.
Done.


I have added the support for data and control frames.

Almost all fields in 802.11 frames are supposed to be little endian.
As I am working on x86, that was not very difficult to achieve.
However, on ppc or sparc ... Thus, I added a file
include/libnet/libnet-swab.h to force the endianness. However, I could
not perform tests on big endian machines. So, if one of you could
test that it is correct, that would be a great help !


There are 2 things to do now to have a cool 802.11 support:
- wep encryption support
- the injection itself

Feel free to send me comments about the 802.11 API: it needs to be
really user-friendly and easy to use as there are some many fun to get
on 802.11 networks ;)

Fred Raynal

Loading...