예제 #1
0
        public NetworkDumbFuzzer(string listenAddress, int listenPort, string remoteAddress, int remotePort)
        {
            proxy = new NetProxy(listenAddress, listenPort, remoteAddress, remotePort);
            proxy.ClientDataReceived += new ClientDataReceivedEventHandler(proxy_ClientDataReceived);
            proxy.ServerDataReceived += new ServerDataReceivedEventHandler(proxy_ServerDataReceived);

            proxy.Run();
        }
예제 #2
0
        static void Main(string[] args)
        {
            logger.Info("WebProxy Tester Starting Up!!");

            File.WriteAllText("c:\\webproxy.txt", "");

            //Proxy proxy = new Proxy("0.0.0.0", 8080);
            //WebProxy webProxy = new WebProxy(proxy);
            //webProxy.NewHttpRequest += new HttpRequestEventHandler(webProxy_NewHttpRequest);
            //webProxy.NewHttpResponse += new HttpResponseEventHandler(webProxy_NewHttpResponse);
            //proxy.Run();

            NetProxy netProxy = new NetProxy("0.0.0.0", 8080, "127.0.0.1", 8081);

            netProxy.Run();
        }