i am trying to filter the line-based text data out of the captured packets using
Using the command above would get me a whole data packet, but I would like to extract the line-based text only. Is it possible to obtain only the line based text? Or else any advice for doing that? asked 21 May '12, 01:38 sharkblue edited 21 May '12, 02:09 helloworld |
2 Answers:
Are you only looking for the content of a web page and want to search for patterns within that text? If so, please use this command:
You can extend the output with IP addresses or any other fields:
Regards answered 21 May '12, 08:58 Kurt Knochner ♦ edited 21 May '12, 14:06 helloworld |
Use the
answered 21 May '12, 02:14 helloworld i have used the above cmd , but it only shows c:\Program Files\Wireshark>tshark -i 2 -R data-text-lines -T fields -e data-text -lines Capturing on Microsoft Line-based text data: application/x-www-form-urlencoded Line-based text data: application/x-javascript Line-based text data: text/html ... Below is a extract of the script information from line-based text data which i hope i could extract out without the chuck encoding. would it be possible with another filter ? (21 May '12, 07:09) sharkblue xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx cc0 4c d3 64 3c 8e 21 0d 84 47 e0 2e 94 46 31 d5 95 L.d<.!..G...F1.. 0cd0 5a 18 48 c1 6d 3e 0d 93 11 c5 6e a2 4f 38 7e 73 Z.H.m>....n.O8~s 0ce0 2c 8b 6d a6 be 61 71 29 c8 93 3a 01 d4 80 47 47 ,.m..aq)..:...GG 0cf0 ba 94 0e 41 3d 02 95 9e 4e b2 d9 38 49 4f 79 96 ...A=...N..8IOy. (21 May '12, 07:09) sharkblue ............................. [truncated] <meta name="robots" content="noodp, noydir"/><meta name="descri ption" content=" FPeople use Facebook style=" position:absolute;="" top:-1000="" 0px;="" width:0px;="" height:0px;"=""> static.ak.fbcdn.net\/rsrc.php\/v2\/yU\/r\/iyBtuT5z-Pk.css (21 May '12, 07:09) sharkblue i would like to capture the specific part using a filter //truncated] <meta name="robots" content="noodp, noydir"/><meta name="descri ption" content=" FPeople use Facebook style=" position:absolute;=""// (21 May '12, 07:11) sharkblue
(15 May '16, 14:07) Rama15 Any additional information? Or are we supposed to decode what you ask for from that hex string? (15 May '16, 14:43) sindy showing 5 of 6 show 1 more comments |
You can also use the
contains
operator in your display filter (which removes the dependency on a second command):or
matches
(for matching with regular expression):