[zorp] Stacking programs doesn’t work and how to modify POST parameters?

thomas.wenz at gmx-topmail.de thomas.wenz at gmx-topmail.de
Tue Jul 8 01:04:46 CEST 2008


Hi,

Thanks for the patch, I'll try it tomorrow.
Here's the strace file: 
http://www.2shared.com/file/3560857/288d71f7/strace.html

The policy-file which was used for creating it looked like this:
from Zorp.Core import *
from Zorp.Http import *
import os

InetZone('attack', '10.1.1.0/24', inbound_services=['HTTP'], outbound_services=['HTTP'])

def http():
	Service(name="HTTP", proxy_class=MyHttp, router=TransparentRouter(forge_addr=TRUE, forge_port=Z_PORT_ANY))
	Listener(DBIface('eth0', 50080), 'HTTP', transparent=TRUE, backlog=255, threaded=FALSE)

class MyHttp(HttpProxy):	
	def config(self):
	  HttpProxy.config(self)
	  self.transparent_mode = TRUE
	  self.rerequest_attempts = 1
	  self.request_stack["POST"] = (HTTP_STK_MIME, (Z_STACK_PROGRAM, "/bin/cat"))

@Árpád Magosányi:
The patches for AnyPy look very promising to me. Especially the streams were quite
problematic for me before because they always blocked (at least for me, I'm not a python pro).
Also thanks a lot for the tutorial, it looks great!

Thomas Wenz
-- 
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/wasistshortview.php?mc=sv_ext_mf@gmx


More information about the zorp mailing list