Heim  >  Artikel  >  Backend-Entwicklung  >  php综合练习--mymessbox--登录_PHP教程

php综合练习--mymessbox--登录_PHP教程

WBOY
WBOYOriginal
2016-07-13 10:36:35645Durchsuche

登录页面:

php综合练习--mymessbox--登录_PHP教程 login
Welcome to mymessbox!
  择:

  码:
php综合练习--mymessbox--登录_PHP教程
login.php

登录页面处理:

php综合练习--mymessbox--登录_PHP教程 = ['loginname' = ['username' = ['password' = (['vcode' = (['rcode'("localhost", "root", "111"("mymessbox"("set names utf8" ( !== "<script>alert('the code is wrong!');window.location.href='login.php'</script>" ( == 'manager' = "select username,password from manager where username='' and password=''" = ( = ( ( >=1['mgusername'] = "<script>alert('login success!');window.location.href='./manager/mg_index.php'</script>" "<script>alert('Login failed!The username or password was wrong!Please login again!');window.location.href='login.php'</script>" = "select username,password from user where username='' and password=''" = ( = ( ( >=1['username'] = "<script>alert('login success!');window.location.href='./user/index.php'</script>" "<script>alert('Login failed!The username or password was wrong!!Please login again!');window.location.href='login.php'</script>" loginok.php

先发这两个吧,虽然还没有完成,还有很多漏洞百出的地方,但是我会一点一点去改。

希望哪个大神在看的时候,能多多指点。不胜感激!

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/738536.htmlTechArticle登录页面: : 0 :0 : font-family: '宋体', width: :17% width: -left: - margin-left: margin-left: : font-size: -family: -bottom: /style/headbody div id="wrap" div id="welcome"W...
Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn