Helping ordinary people create extraordinary websites!
GET OUR NEWSLETTER
Your Email:
 

Getting Practical About Wireless Security, Part 1: Building a Wireless Sniffer with Perl

By Peter Seebach
2005-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


 | Bookmark
Related Tutorials:
» Secrets of the Wireless Elite: Alexei Polyakov
» Linux Wireless Networking
» A New Strategy of Language Pack Management for Wireless Apps
» Open Source Wireless Tools Emerge
» Challenges and Opportunities in Mobile Games
» Running Linux on an iPAQ

Advertise with Us!


Tutorials Scripts Web Hosting Developer Manuals
Resources