Exemple #1
0
        private void imgAddTargets_Click(object sender, EventArgs e)
        {
            SynchronizedCollection <IPAddress> ipsFiltered = new SynchronizedCollection <IPAddress>();

            foreach (IPAddress ip in listBoxTargets.Items)
            {
                ipsFiltered.Add(ip);
            }

            SynchronizedCollection <IPAddress> ipsPrevFiltered = new SynchronizedCollection <IPAddress>();

            foreach (IPAddress ip in listBoxTargets.Items)
            {
                ipsPrevFiltered.Add(ip);
            }

            FormSelectIPs fSel = new FormSelectIPs(typeList, Data.Data.neighbors, true, null, ipsPrevFiltered);

            fSel.ShowDialog();

            SynchronizedCollection <IPAddress> lstIps = fSel.GetSelectedIPs();

            if (lstIps.Count > 0)
            {
                listBoxTargets.Items.Clear();
            }

            foreach (IPAddress ip in lstIps)
            {
                listBoxTargets.Items.Add(ip);
            }
        }
Exemple #2
0
        private void imgAddTargets_Click(object sender, EventArgs e)
        {
            SynchronizedCollection<IPAddress> ipsFiltered = new SynchronizedCollection<IPAddress>();
            foreach (IPAddress ip in listBoxTargets.Items)
            {
                ipsFiltered.Add(ip);
            }

            SynchronizedCollection<IPAddress> ipsPrevFiltered = new SynchronizedCollection<IPAddress>();
            foreach (IPAddress ip in listBoxTargets.Items)
            {
                ipsPrevFiltered.Add(ip);
            }

            FormSelectIPs fSel = new FormSelectIPs(typeList, Data.Data.neighbors, true, null, ipsPrevFiltered);
            fSel.ShowDialog();

            SynchronizedCollection<IPAddress> lstIps = fSel.GetSelectedIPs();

            if (lstIps.Count > 0)
                listBoxTargets.Items.Clear();

            foreach (IPAddress ip in lstIps)
            {
                listBoxTargets.Items.Add(ip);
            }
        }
Exemple #3
0
        private void pbInvMacSpoofTarget_Click(object sender, EventArgs e)
        {
            FormSelectIPs fSel = new FormSelectIPs(PanelTargets.TypeList.Ipv4, Data.Data.neighbors, false, null, null);
            fSel.ShowDialog();

            SynchronizedCollection<IPAddress> lstIps = fSel.GetSelectedIPs();

            if (lstIps.Count == 1)
            {
                tbTargetSpoofedIpv4.Text = lstIps[0].ToString();
            }
        }