|
Helping ordinary people create extraordinary websites! |
Getting Practical About Wireless Security, Part 1: Building a Wireless Sniffer with PerlBy Peter Seebach2005-04-13
Setting up the System Flash prices continue to drop, and the test system was set up by installing NetBSD on a compact flash card. The only package installed from pkgsrc is perl58, and the only module added to it is the Curses module from CPAN. Because the application uses threading, Perl was built with the variable PERL5_USE_THREADS=yes set in /etc/mk.conf. The goal of this application is to allow a user to connect, either over a serial console or over the network, to the system running the wireless code, and get updates on the current network status. Curses is a good way to get some of the flashiness of a graphical application without the overhead of using the X Window System or a Web server. The program I'll develop in this article is a small Perl script that uses system commands as a back end to access the wireless network. This program will run from the command line, and will read its configuration from a file. For now, the configuration file is just read from the current directory when the program starts. (Looking ahead, this might be useful on a machine with multiple network interfaces, with each interface watching a different wireless network.) Tutorial Pages: » A Lightweight Program can Illustrate Wireless Security Issues and Techniques » Rough Consensus and Running Code » Setting up the System » Scanning for Networks » Looking at a Specific Network » Access to the Program » Wrapping Things Up » Resources First published by IBM DeveloperWorks |
|