Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sniffing traffic between a Flex app and ColdFusion backend

What is a good strategy for sniffing/tracing function calls between a Flex application and a ColdFusion-based backend running on ColdFusion server? I understand they use AMF protocol.

I'm used to using Fiddler to sniff transactions between HTTP clients and servers, and it works great as long as you're using plain text or XML HTTP requests and responses (including those over SSL) but it isn't much help for binary protocols like AMF over HTTP.

In my case, I do have access to the source code for the client and server, but I'm looking for an easy way to passively sniff traffic in any Flex + ColdFusion situation, without having to tweak anything on the server.

like image 763
Brendan Kidwell Avatar asked Sep 18 '08 18:09

Brendan Kidwell


4 Answers

Wireshark: sniffing the glue that holds the internet together

http://www.wireshark.org/

like image 141
bmdhacks Avatar answered Nov 04 '22 12:11

bmdhacks


http://www.charlesproxy.com/

Although not free, will decode AMF binary data and allows to trace SSL connections too.

like image 6
Cosma Colanicchia Avatar answered Nov 04 '22 12:11

Cosma Colanicchia


ServiceCapture is another option. It decodes the binary AMF for you, if I remember correctly.

http://kevinlangdon.com/serviceCapture/

like image 3
willasaywhat Avatar answered Nov 04 '22 12:11

willasaywhat


Firebug with the Flashbug plugin will show all decoded AMF messages both to and from a Flash app. Works well over HTTPS too.

https://addons.mozilla.org/en-us/firefox/addon/amf-explorer/.

like image 1
statquant Avatar answered Nov 04 '22 13:11

statquant