我爱Aspx >> C#.Net >> Mssql和Mysql的安全性分析_数据库安全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();
Ҷƪл˵?
SQL概述及在网络安全中的应用_数..[04-28]
Access数据库安全的几个问题_数据..[04-28]
针对SQL INJECTION的SQL SERVER安..[04-28]
微软要增强SQL 2005安全功能_数据..[04-28]
小议MSSQL Server 2000的安全及管..[04-28]
SQL Server 2000的安全配置_数据..[04-28]
ASP.NET2.0数据库之SQL Server安..[04-28]
数据安全防护之打造安全.mdb数据..[04-28]
MySQL数据库中的安全解决方案_数..[04-28]
你的MySQL安全了吗?加铸23道安全..[04-28]
SQL概述及在网络安全中的应用_数..[04-28]
升级MD5.ASP,打造完全动态不重复..[04-28]
ASP安全检测与过滤函数SafeCheck..[04-28]
ASP登陆验证页应做的安全问题_AS..[04-28]
Access数据库安全的几个问题_数据..[04-28]
全面了解Cookie的传递流程、编程..[04-28]
针对SQL INJECTION的SQL SERVER安..[04-28]
C#加密路径里的参数,保护参数隐私..[04-28]
微软要增强SQL 2005安全功能_数据..[04-28]
小议MSSQL Server 2000的安全及管..[04-28]