BLOG     |     FORUM

Forum Login

Login is optional - if you want to be notified about responses via email. You can also simply ask a question without logging in.



Just ask your question

No signup required

There is no need to sign up or register to ask a question in the forums.

Just ask your question.

You need to signup if you wish to be notified of answers to your question by email.

Other links

Other ways to reach us

Follow us on Twitter

Follow on twitter

Send us an email

mail us

Welcome, Guest
Please Login or Register.    Lost Password?

Protobuf filter and HTTP headers
(1 viewing) (1) Guest
All your questions answered real quick by Unleash Networks Engineers.
Go to bottom
Post Reply
Post New Topic
Page: 123
TOPIC: Protobuf filter and HTTP headers
#251
Protobuf filter and HTTP headers 2 Years, 2 Months ago Karma: 0
Hi,

Often http is used as the main transport protocol with protobuf inside POST content.

Is there a way to have the protobuf plugin only try to decode the POST content and ignore http headers?

Thanks,
Scott

I have attached a sample tcpdump file. Note the normal http traffic with protobuf post content.
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
Reply Quote
 
#252
Re:Protobuf filter and HTTP headers 2 Years, 2 Months ago Karma: 0
*attached tcpdump
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
Reply Quote
 
#253
Re:Protobuf filter and HTTP headers 2 Years, 2 Months ago Karma: 0
one more try, filesize too big
File Attachment:
File Name: stream.zip
File Size: 81649
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
Reply Quote
 
#254
Re:Protobuf filter and HTTP headers 2 Years, 2 Months ago Karma: 2
Hi Scott,

Okay we have a new build (1.8.0.1423) that can decode POST content. You can get it from our downloads page.

1. Install the new build ( if you are upgrading, cleanup your old configuration folder %APPDATA%\Unleash Networks\Unsniff)

2. Start Unsniff and import or sniff the packets off the wire. You should see something like [img/] this in the PDU sheet.



3. Unsniff will pull out all POST body and responses into PDUs. Note that PDUs are an Unsniff features that allow you to monitor entire messages which can span multiple packets.

The packets are just shown as DATA because the default protocol attached to the POST application/octet-stream type is called "DATA". "DATA" just means the entire payload is treated as a opaque blob.


4. To go further, we need to attach your PROTO file which describes the blob to the application/octet-stream type.

5. Go to Plugins -> Configure, scroll down to HTTP and enter the following GUID in the space for Protocol for application/octet-stream. (See image 2)

Code:


{B11F24EC-599C-486f-9E7E-56F5026F3A7A}



This GUID represents the specific PROTO we want to use to interpret the BLOB in the post body.

5. Now copy your PROTO file to the %APPDATA%\Unleash Networks\Unsniff\XMLPlugs directory.

6. Edit the generic_protobuf.xml file found in the Program Files\Unleash Networks\Unsniff\XMLPlugs directory. Enter the name of the PROTO file and the name of the ROOT FIELD.

7. Upon restart, Unsniff will try to use the proto file to decode the blobs found in the post. With my dummy proto file I get something like image3.

8. Open the View > Log Window to look for errors.
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
Reply Quote
Vivek R
Unleash Networks
Support : www.unleashnetworks.com/forums
 
#255
Re:Protobuf filter and HTTP headers 2 Years, 2 Months ago Karma: 2
Image : POST payloads shown as blobs



Image : Enter the Protocol GUID to tell Unsniff to use your PROTO file to decode the POST payloads




Image : Put your PROTO file in APPDATAUnleash..UnsniffXMLPlugs and modify the generic_protobuf.xml in the program filesunleas..unsni..xmlplugs directory to point to this. This is what I get with a dummy file. If you use your proto file you ought to get a fully decoded message.
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
Last Edit: 2009/11/25 07:28 By vivek [unleash].Reason: another image
Reply Quote
Vivek R
Unleash Networks
Support : www.unleashnetworks.com/forums
 
#256
Re:Protobuf filter and HTTP headers 2 Years, 2 Months ago Karma: 0
Awesome! Thanks Vivek.

- I got it working. I did have to copy my edited generic_protobuf.xml from program files/.. into application data as well as copying over the .proto file.

- The rootfield is different between the request and response. Is there any way to have Unsniff use a different root field for the response vs the request? Perhaps using two different protocols?

Thanks again,
Scott
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
Reply Quote
 
Go to top
Post Reply
Post New Topic
Page: 123