Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form id="1" name="1" action="pass.php" method="post">
- <div class="login">
- <input placeholder="Usuário" type="text" id="username" size="25" name="name" /><br>
- <input placeholder="Senha" id="pass" type="password" size="25" name="pass" /><br>
- <input type="submit" name="_2" value="Login" />
- <input type="hidden" name="ed_type" value="" />
- <input type="hidden" name="redirect" value="<? echo $redirect;?>" />
- </div>
- </form>
- <?
- session_start();
- $usuario_admin=isset($_SESSION['1x11'])?$_SESSION['1x11']:'';
- include("conf.inc.php");
- include("conectar.php");
- $query="select * from admin where username='".$_POST["name"]."' and pass=MD5('".$_POST["pass"]."')";
- $result=mysql_query($query,$db);
- $row=mysql_fetch_array($result);
- $total = mysql_num_rows($result);
- $name=$_POST['name'];
- $pass=$_POST['pass'];
- $ADMIN_USERNAME=$row["username"];
- $ADMIN_PASSWORD=$row["pass"];
- if($total>0){
- if($name==$ADMIN_USERNAME && $pass==$ADMIN_PASSWORD){
- if($usuario_admin!='') $_SESSION['1x11']="";
- $_SESSION["1x11"] = $name;
- $_SESSION['logedin'] = true;
- $_SESSION["type"] = $row["type"];
- $_SESSION["usrname"] = $name;
- $_SESSION["logid"] = $row["id"];
- header("Location:index2.php");
- }
- } else {
- header("Location:index.php?id=1");
- }
- ?>
- Host=dominio.com
- User-Agent=Mozilla/5.0 (Windows NT 10.0; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0
- Accept=text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
- Accept-Language=pt-BR,pt;q=0.8,en-US;q=0.5,en;q=0.3
- Accept-Encoding=gzip, deflate
- Referer=http://dominio.com/admin/index.php?id=1
- Cookie=PHPSESSID=1d5d5r8hlp6hnebv9pa115d8r
- Connection=keep-alive
- Upgrade-Insecure-Requests=1
- Content-Type=application/x-www-form-urlencoded
- Content-Length=59
- POSTDATA=name=admin&passwd=admin&_2=Login&ed_type=&redirect=
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement