Jump to content

Jointy

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Jointy's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. hy... the problem is another.....not the script.... make an \"mysql -u root -p\" on your cmdline then \"use mysql\" and then \"UPDATE user SET host = \'%\' WHERE user = \'your_script_user\' LIMIT 1;\" now your can connect to your mysql server.... cya
  2. hallo, Ich habe folgene Situation... eine mysql tabelle (das passwort wird als sha1() hash abgelegt !!!) username password created ...... die abfrage dafür lautet [php:1:42abf792f6] $query = \"SELECT MD5(password+created) AS hash, username, created FROM user WHERE LOWER(username) = \".$strtolower($username); // mysql kramm // prüfung if( $buf[\"hash\"] != md5(sha1($password).$buf[\"created\"]) ) { // Failed Login } [/php:1:42abf792f6] der sha1 hash im password feld ist \"aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d\" und created ist \"2003-10-22 18:03:40\" der hash von mysql ist dann \"1bda96f9c3d659c31df37f7f58d2d8d9\" aber der von [php:1:42abf792f6] $password = \"hello\"; md5(sha1($password).$buf[\"created\"]) = \"eef482911243878d5668b7d9ea0323be\" [/php:1:42abf792f6] weis vieleicht jemand warum das so ist ?? ich benutze w2ksp4 apache 2.0.46 /w php 4.3.3 and mysql 3.23.57-nt thx & cya Jointy
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.