Dec 13, 2010

Virus Code For Disabling The Back Button



Virus Code For "A Disable the Back Button "  Hack

Name this first page default.asp

<%
Response.Expires = -1
Response.ExpiresAbsolute = Now() - 1
Response.AddHeader "pragma", "no-cache"
Response.AddHeader "cache-control", "private"
Response.CacheControl = "no-cache"

dim qString: qString = Session("qString") & "&back=y"
dim strHead: strHead = ""
dim strFoot: strFoot = ""

if Session("submitted") = "yes" then
response.write strHead
response.write ""
response.write strFoot
response.end
end if

response.write strHead
response.write "
"
response.write "type something in:
"
response.write "
"
response.write ""
response.write strFoot
%>
------------------------------------------------------------
Name this page page2.asp

<%
dim strHead: strHead = ""
dim strFoot: strFoot = ""

dim BackCheck: BackCheck = request("back")
dim strSomething: strSomething = request("something")

Session("qString") = request.QueryString
Session("submitted") = "yes"

response.write strHead
if BackCheck = "y" then
response.write "hey, you tried to go back!

"
end if
response.write "you wrote: " & strSomething
response.write strFoot
%>


Comments Would be Appreciated......

Go Home

Labels: , , , , ,

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home