This repository was archived by the owner on Sep 23, 2022. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<?php
22$ ip =$ _SERVER ['REMOTE_ADDR ' ];
33echo "The file you tried to access is protected and you dont have permission to view it... <br> " ;
4- echo "Your IP has been reported: $ ip " ;
5-
6-
7-
4+ echo "Your IP has been reported: <b> $ ip<b> " ;
85
96?>
Original file line number Diff line number Diff line change 1212?>
1313<html>
1414 <head>
15- <title>Custom Admin Panel</title>
15+ <title>Admin Panel</title>
1616 <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
17+ <link rel="stylesheet" type="text/css" href="style.css">
1718 </head>
1819 <body>
1920 <h1 style="text-align:center;">Admin Panel</h1><hr>
2021 <form name="form" id="form" action="" method="post" >
21- Username: <input type="text" name="UID" id="UID" required><br>
22- Password:  <input type="password" name="passwd" id="passwd" required><br>
22+ Username: <input type="text" name="UID" id="UID" required><br><br>
23+ Password: <input type="password" name="passwd" id="passwd" required><br ><br>
2324 <input type="submit" value="Submit" onClick="">
2425 </form>
2526
3940include ('user.php ' );
4041$ user_name = $ _POST ['UID ' ];
4142$ user_password = $ _POST ['passwd ' ];
42- $ db = mysqli_connect ('localhost ' , $ user ,$ pass ,$ database ) or die ("Error connecting to MYSQL " );
43+ $ db = mysqli_connect ('localhost ' ,$ user ,$ pass ,$ database ) or die ("Error connecting to MYSQL " );
4344$ query = "SELECT password FROM $ table WHERE name = ' $ user_name' " ;
4445mysqli_query ($ db , $ query ) or die ("Unable to access MYSQL " );
4546$ result = mysqli_query ($ db , $ query );
5354 echo "An error has occured... Please try again later " ;
5455 $ _SESSION ['status ' ] = "0 " ;
5556}
56-
5757mysqli_close ($ db );
5858
5959
Original file line number Diff line number Diff line change 1212<html>
1313<head>
1414<title>Admin Panel</title>
15+ <link rel="stylesheet" type="text/css" href="style.css">
1516</head>
1617<body>
1718<h1 style="text-align: center;">Admin Panel</h1>
2223 SHELL:   <input type="text" id="query_box" name="query_box" placeholder="Ex: whoami"></input><br><br>
2324 DBNAM: <input type="text" id="mysql_get" name="mysql_get" placeholder="ex: custom" value="<?php echo $ _SESSION [udb];?> "></input><br><br>
2425 HOST :    <input type="text" id="host" name="host" placeholder="localhost" value="<?php echo $ _SESSION ['host ' ];?> "></input><br><br>
25- USER :    <input type="text" id="user " name="user " value="<?php echo $ _SESSION ['mysql_user ' ];?> "></input><br><br>
26- PASS :     <input type="password" id="pass " name="pass " value="<?php echo $ _SESSION ['mysql_pass ' ];?> "></input></br><br>
26+ USER :    <input type="text" id="username " name="username " value="<?php echo $ _SESSION ['mysql_user ' ];?> "></input><br><br>
27+ PASS :     <input type="password" id="password " name="password " value="<?php echo $ _SESSION ['mysql_pass ' ];?> "></input></br><br>
2728 QUERY:   <input type="text" id="myquery" name="myquery" placeholder="SELECT * FROM test;" value="<?php echo $ _SESSION ['query ' ];?> "></input><br><br>
2829 <button type="Submit" value="Submit">Submit</button>
2930
You can’t perform that action at this time.
0 commit comments