放入conn.asp中(拒绝攻击 万能Asp防注入代码)
放入conn.asp中(拒绝攻击 万能Asp防注入代码)
第一种:
squery=lcase(Request.ServerVariables("QUERY_STRING"))
sURL=lcase(Request.ServerVariables("HTTP_HOST"))
SQL_injdata =":|;|>|<|--|sp_|xp_|\|dir|cmd|^|(|)|+|$|'|copy|format|and|exec|insert|select|delete|update|count|*|%|chr|mid|master|truncate|char|declare"
SQL_inj = split(SQL_Injdata,"|")
For SQL_Data=0 To Ubound(SQL_inj)
if instr(squery&sURL,Sql_Inj(Sql_DATA))>0 Then
Response.Write "SQL防注入系统"
Response.end
end if
next
第二种:
SQL_injdata =":|;|>|<|--|sp_|xp_|\|dir|cmd|^|(|)|+|$|'|copy|format|and|exec|insert|select|delete|update|count|*|%|chr|mid|master|truncate|char|declare"
SQL_inj = split(SQL_Injdata,"|")
If Request.QueryString<>"" Then
For Each SQL_Get In Request.QueryString
For SQL_Data=0 To Ubound(SQL_inj)
if instr(Request.QueryString(SQL_Get),Sql_Inj(Sql_DATA))>0 Then
Response.Write "SQL通用 ......
蓝牙坏掉了,这样一来 手机安装程序变得很不方便了。一开始是先把要安装的程序以附件的形式发到邮箱 再在手机上配置邮箱 让后下载附件安装,这样虽然解决了问题 但是还是有很多不方便的地方。 于是 自己想搭建一个服务器 直接实现在线安装。前提是手机支持wifi,就是说需要手机访问内网地址,否则得话 就比较麻烦了 你的主机必须要在外网上能被访问到。
上网搜索资料,准备使用iis,但是我的系统没有安装iis 再找也比较麻烦了 而且觉得配置也比较麻烦 。所以在网上找了一个简易的asp服务器软件 AWS(asp web server)。是一个很傻瓜的软件,适合我们这种非专业人士的一些简单的需求。
在pc的任意位置 建立一个文件夹 用作你的asp根目录。然后把这个aws放到里面 绿色的 不用安装。然后在根目录下创建一个asp页面文件 我的是index.asp,貌似好多默认的都是这个名字。
然后编辑该页面 我也不懂制作网页 就在网页里写了一句
<a href="/YourSoftWare.sisx">DownLoadSis</a>表示一个连接 。YourSoftWare.sisx(同理jar 什么的都类似吧) 是你准备安装的软件 放在和index.asp同级的目录下就OK了。打开aws,他会自动打开index.asp页 ......
<%@ Language=VBScript %>
<SCRIPT id=DebugDirectives runat=server language=javascript>
// Set these to true to enable debugging or tracing
@set @debug=false
@set @trace=false
</SCRIPT>
<HTML>
<HEAD>
<META name=VI60_defaultClientScript content=VBScript>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<SCRIPT ID=clientEventHandlersVBS LANGUAGE=vbscript>
<!--
Sub button2_onclick
fo1.TEXTAREA1.style.fontFamily=select1.value
End Sub
Sub button3_onclick
fo1.TEXTAREA1.style.fontSize=select2.value
End Sub
Sub button4_onclick
if button4.value="Bold" then
button4.value="Un Bold"
fo1.TEXTAREA1.style.fontWeight="Bold"
else
button4.value="Bold"
fo1.TEXTAREA1.style.fontWeight="normal"
end if
End Sub
Sub button5_onclick
if button5.value="Italics" then
button5.value="Un Italics"
fo1.TEXTAREA1.style.fontstyle="italic"
else
button5.value="Italics"
fo1.TEXTAREA1.style.fontstyle="normal"
end if
End Sub
Sub ......
<%
set rs=server.createobject("adodb.recordset")
sql="select * from YONGHU where (ID is null)"
rs.open sql,conn,1,3
rs.addnew
rs("USERNAME")=request("username")
rs.update
rs.close
set rs=nothing
conn.close
set conn=nothing
session("username")=rs("name")
response.redirect "index.asp"
%>
在首页显示用户名就用 <%=session("username")%>
=====================================
在用户注册成功后:
1、添加变量session("names")为用户名称;
2、检测len(session("names"))是否为0(即变量是否空),如果不空,response.Redirect("会员中心页面") ,如果空,仍然在登录页面,提示登录不成功。 ......
asp.net
http://topic.csdn.net/t/20060818/14/4959087.html
http://www.agrinei.com/gridviewhelper/gridviewhelper_en.htm
http://dotnet.aspx.cc/ShowDetail.aspx?id=149E5DD7-3B32-461e-ACC6-51D1652E6746
http://www.xueit.com/html/2009-08/21_4321_00.html
http://topic.csdn.net/t/20060429/10/4722766.html
silverlight
http://www.bcbbs.net/news/Content56314.aspx
......
引用using System.Web.UI.HtmlControls;
前台的<table id="mytab" border="1" runat="server" class="t1" width="600">
</table>
后台初始化
HtmlTableRow row = new HtmlTableRow();
HtmlTableCell cell = new HtmlTableCell();
cell.InnerText = “新品”;
row.Cells.Add(cell);
mytab.Rows.Add(row); ......