The Cache: Technology Expert's Forum
 
*
Welcome, Guest. Please login or register. September 16, 2019, 09:33:41 PM

Login with username, password and session length


Pages: [1]
  Print  
Author Topic: Simple Packet Sniffer, tcpdump  (Read 2661 times)
perkiset
Olde World Hacker
Administrator
Lifer
*****
Offline Offline

Posts: 10096



View Profile
« on: November 12, 2007, 07:08:41 PM »

Just found this on my machine - probably a standard 'nix thing.
And I prolly look like an idiot now that everyone knows that I didn't know about tcpdump  ROFLMAO

Use like this:
tcpdump -s 0 -A -i en0 port 80

of course it's stdout, so you can > afile.txt. Not pretty, but helped me through a little nastiness today.

/p
Logged

It is now believed, that after having lived in one compound with 3 wives and never leaving the house for 5 years, Bin Laden called the U.S. Navy Seals himself.
ratthing
Journeyman
***
Offline Offline

Posts: 75


View Profile
« Reply #1 on: November 13, 2007, 11:56:34 AM »

Tcpdump is a good 'un.  Learning it's intricacies can be very helpful.

Another good one is ethereal but it's not installed by default most places.

=RT=
Logged
thedarkness
Lifer
*****
Offline Offline

Posts: 585



View Profile
« Reply #2 on: November 21, 2007, 06:55:21 PM »

iptraf can also be very handy and on Windows let's not forget Wireshark.

BTW, sometimes it's good to substitiute -X for -A in the OP example, especially for protocols that are not text based (well duhh!).

Cheers,
td

[edit] I just checked and can't believe that I didn't include this in the favourite *nix commands thread, of well, so many commands..... [/edit]
« Last Edit: November 21, 2007, 07:05:50 PM by thedarkness » Logged

"I want to be the guy my dog thinks I am."
 - Unknown
ratthing
Journeyman
***
Offline Offline

Posts: 75


View Profile
« Reply #3 on: November 26, 2007, 12:26:08 PM »

I hear you TD, I am constantly looking stuff up 'cause I can't remember command names and options order.  *NIX is like going to a store where they have one of everything...you wander around inside trying to decide what to use.

Hope ya'll had a fun and enjoyable Thankgiving if you celebrate the holiday.

=RT=
Logged
Pages: [1]
  Print  
 
Jump to:  

Perkiset's Place Home   Best of The Cache   phpMyIDE: MySQL Stored Procedures, Functions & Triggers
Politics @ Perkiset's   Pinkhat's Perspective   
cache
mart
coder
programmers
ajax
php
javascript
Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS!