I'm writing a client that talks to a remote server over HTTP. I would like to place an evil proxy between the client and the server that would (randomly?) affect the traffic on the wire.
Some things that I would like to happen:
Basically I want to simulate a range of networking conditions that the users of this software are going to experience out in the real world and make sure the client handles them gracefully.
I suspect (hope) that something like that already exists. Please point me in the right direction!
Thanks
HTTP Test Tool (htt) seems like what you need here. It has the ability to operate as a proxy and a reverse-proxy for testing those cases specifically, when a mock framework is insufficient to the task.
For a truly evil proxy, consider using Squid in conjunction with the Metasploit Framework and some of the tools in BackTrack Linux. That seems to be a bit beyond your project scope, though!
(Additional tools to consider, plus one more)
Fiddler1 is a scriptable traffic viewer/proxy.
You could try fiddler - everything you wrote can be simulated using that tool. It's also great for debugging communication issues between your application and the server. Saved me a lot of work when I was implementing XML-RPC.
There are some great extensions that can help you and you can even write your own if you need something really special.
[EDIT] Since this is mac question, you can try webscarab or charles (the second one is paid). But you can still run the proxy on any machine - even virtual. So if you have spare win license...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With