Metasploit mailing list archives

Simple HTTP Proxy


From: vmauge at gmail.com (Vincent MAUGE)
Date: Tue, 19 Aug 2008 20:41:26 +0200

I make a new test and my code almost works.  Indeed I can receive request
and send response to client but some times no answer are send (and perhaps
receive by the proxy). The problem does not seem to come from HTTP parsing
directly
I think I have problem with timeout on socket (both on client an proxy) but
I have to do more test to find the truth.

Vincent

2008/8/19 H D Moore <hdm at metasploit.com>

This may be a bug in the framework HTTP code, there have been a handful of
parsing issues here. Try removing the proxy code now and just use the
HTTP client code to send the request and parse the response. If you can
reproduce this with a public site, let me know what site it is or provide
a packet capture, and we can work on a fix.

-HD

On Tuesday 19 August 2008, Vincent MAUGE wrote:
I try to develop a simple HTTP Proxy using the Framework and HTTP
class. I use auxiliary/server/capture/http.rb as example. I change the
dispatch_request() function to create a new Rex::Proto::Http::Client
with the host provide in header request and send the request to the
server using send_recv(req). I send back the response to the client
using cli.put(res.to_s). But I have a problem the client receives only
the header and not the body. Where did I make a mistake ?


_______________________________________________
http://spool.metasploit.com/mailman/listinfo/framework

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.metasploit.com/pipermail/framework/attachments/20080819/53731220/attachment.htm>


Current thread: