LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-09-2004, 09:54 PM   #1
jerrytw
LQ Newbie
 
Registered: Nov 2004
Posts: 9

Rep: Reputation: 0
tcpdump problem?


How to use tcpdump command to post file name of downloading ?

I want to record which IP address via port 80 to download file ;moreover
I am also to get what file be download.

For example:
The computer (192.168.1.1) from website to download file as swi.zip. I want to get a log file type such as 192.168.1.1 *** port 80 *** swi.zip.
How to use tcpdump to post this status or other command can generate this result .

Thanks a lot.
 
Old 11-10-2004, 12:07 PM   #2
bignerd
Member
 
Registered: Nov 2004
Distribution: FC1, Gentoo, Mdk 8.1, RH7-8-9, Knoppix, Zuarus rom 3.13
Posts: 98

Rep: Reputation: 15
Nothing in life is easy. This is also true for linux. Most things are possible but not always the way you'd like them.

It's "possible" to get the info you need with something like:

tcpdump -vvvnnXs0 | grep -B 4 -A 5 GET | grep -B 4 -A 5 -i zip

This will snoop the default interface (normally eth0) and spit out some details on any get requests that also have zip associated with them.

This should give the ip of who is getting the zip, where they are getting it from, the time as well as what the file name is.

But.

This is a very simple filter that will also be triggered if somone were to say, do a google search with the word zip in the search.

You'll have to use better filters or even a brain to figure out if the get for a file is what you are looking for or not.

Also on a busy interface you'll likely drop packets. This isn't the most efficent way of doing business. But I figured you deserved some sort of answer even if it's not a good one.

-b
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
tcpdump Tihi Linux - Security 3 06-01-2005 05:54 AM
help tcpdump blackzone Linux - Networking 1 10-08-2004 07:07 AM
tcpdump dlm4444 Linux - Networking 1 02-15-2004 03:03 PM
Any problem similar to tcpdump? kinct Red Hat 1 12-02-2003 01:04 AM
tcpdump gbell72 Linux - Security 5 09-18-2003 02:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration