LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 07-02-2007, 01:30 AM   #1
venki
Member
 
Registered: Sep 2006
Location: India
Distribution: suse10.2
Posts: 128

Rep: Reputation: 15
capture the traffic going from any port


Hi all,
i want to capture the traffic that is going from any port!
say MSN. .msn port is 1863.
whn i am chatting with my friend all the data should be captured and log in to a file that should be readable..
plz help me if there are any tools,supporting this.
i worked on ethereal but it is not showing any data.

thks in advance
 
Old 07-02-2007, 01:59 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
you can capture traffic with wireshark (ethereal) or tcpdump, but being readable is very subjective... what do you want to read about it?? if ethereal didn't show *anything* then you're just not using it correctly... it's still the right tool for the job.
 
Old 07-02-2007, 02:11 AM   #3
venki
Member
 
Registered: Sep 2006
Location: India
Distribution: suse10.2
Posts: 128

Original Poster
Rep: Reputation: 15
Thks sir,
I have started ethreal,packets are capturing! but when i started chatting with my friend, all the chat logs are not visible to me!
i want to see that chat logs in ethreal! plz help
 
Old 07-02-2007, 03:45 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
wireshark seems fine at deoding msn with the msnms decoder. check the wiki for a sample to compare to http://wiki.wireshark.org/MSNMS
 
Old 07-02-2007, 04:03 AM   #5
venki
Member
 
Registered: Sep 2006
Location: India
Distribution: suse10.2
Posts: 128

Original Poster
Rep: Reputation: 15
yes sir it is showing MSNMS perfectly,
1094 35.655662 207.46.27.38 192.168.1.39 MSNMS MSG nagesh.venkat@hotmail.com Venkat 53
this is the information i am getting!
how can i see the data that venkat is transfered through MSN!
 
Old 07-02-2007, 04:58 AM   #6
siyisoy
LQ Newbie
 
Registered: Jan 2006
Distribution: ubuntu, fedora
Posts: 12

Rep: Reputation: 0
If you need an msn sniffer you can use scanhill
 
Old 07-02-2007, 06:31 AM   #7
venki
Member
 
Registered: Sep 2006
Location: India
Distribution: suse10.2
Posts: 128

Original Poster
Rep: Reputation: 15
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld: cannot find -liconv
is the error coming!
i tried lot of forums still no use!!
plzz help me
 
Old 07-02-2007, 06:46 AM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
just read the data payload, it's all shown there for you...
 
Old 07-02-2007, 07:10 AM   #9
venki
Member
 
Registered: Sep 2006
Location: India
Distribution: suse10.2
Posts: 128

Original Poster
Rep: Reputation: 15
where will we find this data payload?
 
Old 07-02-2007, 07:10 AM   #10
Gigantic
LQ Newbie
 
Registered: Jul 2007
Location: The big north
Distribution: Debian, openSUSE
Posts: 1

Rep: Reputation: 0
uhmm

So, this is a girl's IM that you want to spy or there's no specific target yet?
 
Old 07-02-2007, 07:24 AM   #11
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
just expand the high level protocol data on the packet tree (normally the bottom entry on pane in the middle on wireshark), you'll see a fairly standard HTTP-u-like data header, and after "\r\n" the next line should be the text in the message itself. there isn't always text in each message though, there's plenty of control data to wade through as well.
 
Old 07-02-2007, 07:44 AM   #12
venki
Member
 
Registered: Sep 2006
Location: India
Distribution: suse10.2
Posts: 128

Original Poster
Rep: Reputation: 15
I am very thks sir that u are replying for my doubts.
i found MSN Messenger Service
in that
MSG pradeep.malineni@hotmail.com MALINENI 101\r\nMSG
MIME-Version: 1.0\r\n
Content-Type: text/x-msmsgscontrol\r\n
TypingUser: pradeep.malineni@hotmail.com\r\n
\r\n
\r\n

that's it! i din't find the data he written to me..
sorry for making u trouble
 
Old 07-03-2007, 12:55 AM   #13
venki
Member
 
Registered: Sep 2006
Location: India
Distribution: suse10.2
Posts: 128

Original Poster
Rep: Reputation: 15
Is there a way to find the data...??
can we debug it!!
 
Old 07-03-2007, 02:14 AM   #14
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
i already told you not all the packets have actual text in them. i assume that's just one of those "usre bob is typing a message" things. just look for longer packets.
 
Old 07-04-2007, 02:33 AM   #15
venki
Member
 
Registered: Sep 2006
Location: India
Distribution: suse10.2
Posts: 128

Original Poster
Rep: Reputation: 15
acid_kewpie thks a lot! i am able to view the data,but using etheral alias wireshark..can we save the data to any file.
it is saving all the contents ,i want just data to be copied in to a file..
 
  


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
SNMP MRTG RRDTOOL Configu of CPU memory Disk Port data traffic doc traffic manish_2479 Linux - Networking 1 06-19-2007 07:08 AM
cant capture wireless traffic jotacekm Linux - Wireless Networking 0 03-24-2007 05:48 PM
How to capture wifi traffic ? jlliagre Linux - Wireless Networking 2 02-14-2007 07:41 AM
Traffic capture bhughesiii Linux - Networking 1 12-09-2004 03:22 PM
Capture IM traffic on the network shelby Linux - Security 1 08-10-2004 01:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 12:34 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