[Very Urgently] How to retrive admin password on PhpBB

Discussion in 'PHP' started by elizabeth.taurus, Sep 7, 2006.

  1. #1
    How to retrive admin password on PhpBB forum ?

    i heard its possible from DB . please help me how can i do that? :confused:
     
    elizabeth.taurus, Sep 7, 2006 IP
  2. ccoonen

    ccoonen Well-Known Member

    Messages:
    1,606
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    160
    #2
    It's probably a 1-way encryption (probably MD5)

    I would advise writing a script to encrypt a new MD5 Hashed password - of a password you know. Then go in the database, and replace the password with your new generated md5 hashed password.

    Otherwise, theirs always brute force or dictionary lists hehe.
     
    ccoonen, Sep 7, 2006 IP
  3. elizabeth.taurus

    elizabeth.taurus Banned

    Messages:
    646
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #3
    please help me . ho to do that ? i am a noob :confused:

     
    elizabeth.taurus, Sep 7, 2006 IP
  4. stephfoster

    stephfoster Well-Known Member

    Messages:
    567
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    138
    #4
    Search the forum at http://www.phpbb.com for tips. I think it was there I once (at random, didn't need it myself) noticed someone had posted how to do this. The post I remember even included some basic encrypted passwords to use.
     
    stephfoster, Sep 7, 2006 IP
  5. fakhruddin

    fakhruddin Peon

    Messages:
    193
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #5
    y do u wanna knw the password
     
    fakhruddin, Sep 7, 2006 IP
  6. wmtips

    wmtips Well-Known Member

    Messages:
    601
    Likes Received:
    70
    Best Answers:
    1
    Trophy Points:
    150
    #6
    wmtips, Sep 8, 2006 IP
  7. SEO Guru

    SEO Guru Peon

    Messages:
    1,117
    Likes Received:
    46
    Best Answers:
    0
    Trophy Points:
    0
    #7
    You can try using the forgot password thing from the frontend!!!
    Works on most of the cms, blogs, forums etc..
     
    SEO Guru, Sep 8, 2006 IP
  8. smfseo

    smfseo Well-Known Member

    Messages:
    886
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    150
    #8
    nothing works?

    make a new id note the member number
    ftp to your server >download config.php > change user with admin permissions number from 1 to whatever the new number is
    log on to admin panel with new id
    then change pass for orignal admin id
    log in with orignal id see everything works ok :)
    ftp again change user number to 1
    everything back to normal.

    give me a shout if i you still have problems
     
    smfseo, Sep 8, 2006 IP
  9. elizabeth.taurus

    elizabeth.taurus Banned

    Messages:
    646
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #9
    can see any admin id on congig.php

     
    elizabeth.taurus, Sep 16, 2006 IP
  10. smfseo

    smfseo Well-Known Member

    Messages:
    886
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    150
    #10
    This is the only way i can think of if your retrive pass word isint working from front end
    dont you have access to the e-mail address you used?

    sorry about the abome message i mistook it for vb.
     
    smfseo, Sep 16, 2006 IP
  11. tanfwc

    tanfwc Peon

    Messages:
    579
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #11
    <?php
    
    $sql = array (
      0 => 'UPDATE `phpbb_users` SET `user_password` = \'202cb962ac59075b964b07152d234b70\' WHERE `user_id` =2 LIMIT 1',
    );
    
    @set_time_limit(0);
    if(!@file_exists('config.php')) die('config.php not found. make sure you have uploaded file to your forum directory.');
    include('config.php');
    $db = mysql_connect($dbhost, $dbuser, $dbpasswd);
    if(!$db) die('Cannot connect: ' . mysql_error());
    $res = mysql_select_db($dbname);
    if(!$res) die('Cannot select database "' . $dbname . '": ' . mysql_error());
    for($i=0; $i<count($sql); $i++)
    {
     if($table_prefix !== 'phpbb_') $sql[$i] = preg_replace('/phpbb_/', $table_prefix, $sql[$i]);
     $res = mysql_query($sql[$i]);
     if(!$res) { echo 'error in query ', ($i + 1), ': ', mysql_error(), '<br />'; }
    }
    echo 'done (', count($sql), ' queries).';
    
    ?>
    PHP:
    Save and upload this code ...name the file as sql.php and execute on the ROOT directory where config.php is place on...

    Then run this file and delete it...your new password is 123

    Enjoy
     
    tanfwc, Sep 16, 2006 IP
  12. elizabeth.taurus

    elizabeth.taurus Banned

    Messages:
    646
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #12
    thank u so much this worked . gave you reputation.:)

     
    elizabeth.taurus, Sep 16, 2006 IP
  13. tanfwc

    tanfwc Peon

    Messages:
    579
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Tks :) You are most welcome, let me know if you need help in phpBB in future.
     
    tanfwc, Sep 16, 2006 IP
  14. Borghunter

    Borghunter Well-Known Member

    Messages:
    212
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    110
    #14
    another way is generate a new password like so:
    echo md5('password');
    PHP:
    it will then give you the md5 hash of the password, no put it in the db.
    I believe it is md5. may be different, but it works the same way.
     
    Borghunter, Sep 17, 2006 IP