Metasploit mailing list archives

Simple HTTP Proxy


From: vmauge at gmail.com (Vincent MAUGE)
Date: Tue, 19 Aug 2008 18:57:12 +0200

Hello,

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 ?

Thanks in advance,

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


Current thread: