Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- include('c.php');
- include('head.php');
- if(@$_SESSION['logged']!=true)
- {
- $_SESSION['logged']='';
- }
- if($_SESSION['logged']==true && $_SESSION['admin']!='')
- {
- echo "you are logged in :)";
- header('Location: panel.php', true, 302);
- }
- else
- {
- echo '<div align=center style="margin:30px 0px 0px 0px;">
- <font size=8 face="comic sans ms">--==[[ billu b0x ]]==--</font>
- <br><br>
- Show me your SQLI skills <br>
- <form method=post>
- Username :- <Input type=text name=un>   Password:- <input type=password name=ps> <br><br>
- <input type=submit name=login value="let\'s login">';
- }
- if(isset($_POST['login']))
- {
- $uname=str_replace('\'','',urldecode($_POST['un']));
- $pass=str_replace('\'','',urldecode($_POST['ps']));
- $run='select * from auth where pass=\''.$pass.'\' and uname=\''.$uname.'\'';
- $result = mysqli_query($conn, $run);
- if (mysqli_num_rows($result) > 0) {
- $row = mysqli_fetch_assoc($result);
- echo "You are allowed<br>";
- $_SESSION['logged']=true;
- $_SESSION['admin']=$row['username'];
- header('Location: panel.php', true, 302);
- }
- else
- {
- echo "<script>alert('Try again');</script>";
- }
- }
- echo "<font size=5 face=\"comic sans ms\" style=\"left: 0;bottom: 0; position: absolute;margin: 0px 0px 5px;\">B0X Powered By <font color=#ff9933>Pirates</font> ";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement