예제 #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            String    username = this.input1.Text;
            String    password = this.input2.Text;
            String    domain   = this.input4.Text;
            check     cek      = new check();
            UserDisco ud       = new UserDisco();

            String check = cek.InputNullCheck(username, password, domain);

            if (check.Equals("noError"))
            {
                bool auth = cek.Authenticate(username, password, domain);
                if (auth == false)
                {
                    this.outputbox.Text = "Authentication Failed";
                }
                else
                {
                    this.outputbox.Text = ud.ADGroupMembership(domain, username, password);
                }
            }
            else
            {
                this.outputbox.Text = check;
            }
        }
예제 #2
0
        private void button4_Click(object sender, EventArgs e)
        {
            String    username = this.input1.Text;
            String    password = this.input2.Text;
            String    domain   = this.input4.Text;
            String    upn      = username + "@" + domain;
            check     cek      = new check();
            UserDisco ud       = new UserDisco();

            String check = cek.InputNullCheck(username, password, domain);

            if (check.Equals("noError"))
            {
                bool auth = cek.Authenticate(username, password, domain);
                if (auth == false)
                {
                    this.outputbox.Text = "Authentication Failed";
                }
                else
                {
                    this.outputbox.Text = ud.LocMachineNamedUser(upn);
                }
            }
            else
            {
                this.outputbox.Text = check;
            }
        }
예제 #3
0
        private void button5_Click(object sender, EventArgs e)
        {
            String    domain = this.input4.Text;
            UserDisco ud     = new UserDisco();

            this.outputbox.Text = ud.ADCanDelegate(domain);
        }
예제 #4
0
        private void button10_Click(object sender, EventArgs e)
        {
            String    username = this.input1.Text;
            String    password = this.input2.Text;
            String    server   = this.input3.Text;
            String    SQLdb    = this.input6.Text;
            UserDisco ud       = new UserDisco();

            this.outputbox.Text = ud.GetListOfSQLSA(username, password, server, SQLdb);
        }
예제 #5
0
 private void button9_Click(object sender, EventArgs e)
 {
     if (this.input5.Text.Equals(""))
     {
         this.outputbox.Text = "No Folder Entered";
     }
     else
     {
         String    folder = this.input5.Text;
         UserDisco ud     = new UserDisco();
         this.outputbox.Text = ud.GetNTFSPermissions(folder);
     }
 }
예제 #6
0
        private void button3_Click(object sender, EventArgs e)
        {
            UserDisco ud = new UserDisco();

            this.outputbox.Text = ud.LocMachineCurrentuser();
        }
예제 #7
0
        private void button6_Click(object sender, EventArgs e)
        {
            UserDisco ud = new UserDisco();

            this.outputbox.Text = ud.RegWriteDeleteCheck();
        }