Luk.Online
Neues Mitglied
Ich hab was! ;)
Hallo zusammen.
Ich habe bezüglich der phpbb3 verschlüsselung einen Fortschritt gemacht :)
Mit folgendem Code schaffe ich es, einen Hash zu erzeugen der denen in der DB gleicht (z.B.: $H$9iqmois/HqseXtnNcdazhHX0/tIBh5. ).
Ich include folgende Datei in meine login.php und rufe in ihr die von mir erstellte funktion PHPBB3_PW() auf.
login.php:
Nur leider habe ich noch ein Problem: Der erstelle Hash ist jedes mal anders.
Das "warum" hab ich auch schon ergründet.
die funktion phpbb_hash greift auf unique_id() zu (functions.php)
dort findet man in zeile 222 folgendes
if ($dss_seeded !== true && ($config['rand_seed_last_update'] < time() - rand(1,10)))
es kommt halt immer etwas anderes heraus weil time() und rand() ich verändern...
nur wie "baut das form den hash das eingegebenen passwortes nach"??
wer kann helfen?
Hallo zusammen.
Ich habe bezüglich der phpbb3 verschlüsselung einen Fortschritt gemacht :)
Mit folgendem Code schaffe ich es, einen Hash zu erzeugen der denen in der DB gleicht (z.B.: $H$9iqmois/HqseXtnNcdazhHX0/tIBh5. ).
Ich include folgende Datei in meine login.php und rufe in ihr die von mir erstellte funktion PHPBB3_PW() auf.
Code:
<?php
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : '../../FORUM/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
require($phpbb_root_path . 'common.' . $phpEx);
$user->session_begin();
$auth->acl($user->data);
$user->setup();
function PHPBB3_PW($Password)
{
@include_once("FORUM/includes/db/mysqli.php");
@include_once("FORUM/includes/utf/utf_normalizer.php");
@include_once("FORUM/includes/utf/utf_tools.php");
@include_once("FORUM/includes/functions.php");
$Password = phpbb_hash($Password);
return $Password;
}
?>
login.php:
Code:
$Password = PHPBB3_PW($_POST["Password"]);
Nur leider habe ich noch ein Problem: Der erstelle Hash ist jedes mal anders.
Das "warum" hab ich auch schon ergründet.
die funktion phpbb_hash greift auf unique_id() zu (functions.php)
dort findet man in zeile 222 folgendes
if ($dss_seeded !== true && ($config['rand_seed_last_update'] < time() - rand(1,10)))
es kommt halt immer etwas anderes heraus weil time() und rand() ich verändern...
nur wie "baut das form den hash das eingegebenen passwortes nach"??
wer kann helfen?