各位大侠们帮忙找一下错误,是一个连续IP地址端口扫描程序
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Net;
using System.Net.Sockets;
using System.IO;
using System.Threading;
namespace WindowsApplication2
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
}
private void richTextBox1_TextChanged(object sender, EventArgs e)
{
}
int a, b, c, d;
string ipString;
int port=80;
private void button1_Click(object sender, EventArgs e)
{
for(a=192;a <=192;a++)
{
for(b=168;b <=168;b++)
{
for(c=0;c <=0;c++)
{
for(d=1;d <=2;d++)
{
ipString=a.ToString()+ ". "+b.ToString()+ ". "+c.ToString()+ ". "+d.ToString();
&