NetStumbler.org Forums

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

Reply
 
LinkBack Thread Tools Display Modes
Old 01-22-2005   #1 (permalink)
WhiteFennec
Registered Member
 
Join Date: Jan 2005
Posts: 2
Question Managing Large Libpcap Files

Greetings.

I am doing my sniffing with tcpdump on my wireless interface (orinoco) on my own network (5 clients and an AP) but I'm located in a downtown commercial area. As a result, I pick up a HUGE amount of traffic, most of which I do not want. I easily have 2 gig libpcap files all over the place, running aircrack against them as 'aircrack *.pcap' to make it easier on myself.

This is beginning to cause problems both with the attention huge pcap files taking up valuable computer space as well as wanting to combine all the valuable data into a single file to try weplab as well.

I know I can use mergepcap to combine log files into one, but right now I've having trouble extracting what data aircrack and weplab would consider "valuable". I was thinking about doing some creative expression writing in ethereal to get the traffic I want, but when I try to load files of this size in ethereal, it's a nightmare since a good deal of the time the program stops responding entirely, so I never ever really got to any writing of expressions.

Does anyone have any idea how I can extract just the packets from these monster sized libpcap files for use with aircrack and/or weplab?

Thanks to those that post a reply ahead of time!
WhiteFennec is offline   Reply With Quote
Old 01-25-2005   #2 (permalink)
Re@liTy
Registered Member
 
Re@liTy's Avatar
 
Join Date: Jul 2004
Location: Brighton - U.K.
Posts: 65
I know it doesn't help you with your large pcap extraction problem, but have you tried only capturing the first X bytes of each packet, so as to keep the file size way down in the first place??
Most capture apps support this option.
Most WEP cracking apps only need the 1st X bytes of data for each packet anyway.
__________________
I started out with nothing..............and I've still got most of it left.....
Re@liTy is offline   Reply With Quote
Old 01-25-2005   #3 (permalink)
KoreK
Banned in DC
 
KoreK's Avatar
 
Join Date: Jul 2004
Posts: 102
man tcpdump

tcpdump -r <infile> -w <outfile> -s <snaplen> -C <filesize>
KoreK is offline   Reply With Quote
Old 01-26-2005   #4 (permalink)
WhiteFennec
Registered Member
 
Join Date: Jan 2005
Posts: 2
Thank you for your replies. I will also post a solution I found.
There is a package called tethereal for Debian that I used, which is described as a console line ethereal.

I basically ran this:
tethereal -r bitchinglyhuge.pcap -w little.pcap wlan.fc.subtype != 8
This stripped beacons.
Then, I could also do expressions to cut out everything that wasn't my own bssid.

My 2gig pcap files ended up around 300 mb, very nicely.
WhiteFennec 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 10:53 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, 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.