• λ我爱Aspx >> C#.Net >> Mssql和Mysql的安全性分析_数据库安全
  • Mssql和Mysql的安全性分析_数据库安全

  • :aspxer  Դ:internet  :2007-4-28 23:46:18  ؼ:sql,数据库,数据
  • Encoding ASCII = Encoding.ASCII;

    String strData = ASCII.GetString(data);

    return strData;

    }

    //SEND

    public static void Send(string hostip)

    {

    string HostIP = hostip;

    byte [] buffer = {02};

    //02为要发送的数据,只有02、03、04有回应

    int ecode = m_Client.Send(buffer,1,HostIP,1434);

    //ecode用来返回是否成功发送

    if(ecode <= 0)

    {

    Console.WriteLine("发送时出错:" + ecode);

    }

    }

    //对返回的信息的简单的处理

    public static void OutputInfo(string strdata)

    {

    string str = strdata;

    //str.le

    char [] that = {‘;‘,‘;‘};

    string [] strofthis =str.Split(that);

    //int i= 0

    for(int i=0;i{

    Console.Write(strofthis);

    Console.Write(‘

    ‘);

    }

    }

    //输入IP

    public static string InputHostIP()

    {

    Console.Write("enter the ip you want to scan:

    ");

    string hostip =Console.ReadLine();

    Console.Write(‘

    ‘);

    return hostip;

    }

    //EXIT

    public static void Exit()

    {

    Console.WriteLine("if you want to exit ,just input 1

    ");

    int a = Console.Read();

    if(a!= 1)

    {

    Console.WriteLine("if you want to exit ,just input 1

    ");

    Console.Read();

    }

    else

    {

    }

    }

    [STAThread]

    static void Main(string[] args)

    {

    string HostIP;

    HostIP = InputHostIP();

    Ҷƪл˵?
  • һƪ五种常见的ASP.NET安全缺陷_ASP.NET技巧
    һƪSQL概述及在网络安全中的应用_数据库安全