Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > Web Development
You last visited: Today at 07:41

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



pw ändern sha1

Discussion on pw ändern sha1 within the Web Development forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2009
Posts: 73
Received Thanks: 2
Post pw ändern sha1

Hallo,

Ich versuche gerade via Homepage sha1 paswörter zu ändern
bis zum mysql_query funktioniert alles doch er übergibt die daten zum Ändern
nicht zur datenbank -,-

ich habe das alles in 1 script gemacht und noch eine kontrolle erstmal für mich mit eingebaut damit ich auch sehe das der das pw ändert aber nix

Code:
<head>
<title>Account Bearbeiten!!!</title>
<link rel="stylesheet" type="text/css" href="Style.css" />
</HEAD>
</head>

<BODY bgcolor="black">
<center>
<Table cellpadding=0 cellspacing=0 style="margin-top:-100px;"><tr><td class="account" width=846 height=687 valign="top" align="middle">
<table cellpadding=0 cellspacing=0 style="margin-top:250px;"><tr><td class="account2" width=330 height=300 valign="top">
<form action="" method="POST">
ACCOUNT NAME<br>
<input type="text" name="benutzer" class="account4" size="40"><br><br>
ALTES PASSWORT<br>
<input type="password" name="pwalt" class="account4" size="40"><br><br>

----------------------------------------------<br><br><br>

NEUES PASSWORD<br>
<input type="password" name="pwn1" class="account4" size="40"><br><br>

WIEDERHOLEN<br>
<input type="password" name="pwn2" class="account4" size="40"><br><br>
<input type="submit" name="sub" value="Passwort &Auml;ndern">|<input type="button" value="ZUR&Uuml;CK" onClick="window.location.href='http://google.de'">
</form>

<?php
$host="localhost";
$user="-_-_-_-_-_-";
$pw="-_-_-_-_-";
$db="test";
mysql_connect ($host,$user,$pw) or die ("VERBINNDUNGS ERROR");
mysql_select_db ($db) or die ("DB ERROR");



if(isset($_POST['sub']))
{
$pw1 = $_POST['pwn1'];
$pw2 = $_POST['pwn2'];
if($pw1 == $pw2)
{
// daten überprüfen!!!
$sql = mysql_query ("SELECT * FROM `account` WHERE `username` = '".mysql_real_escape_string($_POST['benutzer'])."' AND `passwd` = '".mysql_real_escape_string($_POST['pwalt'])."'");
$num_rows       =      mysql_num_rows($sql);
if($num_rows == '0')
{
?>
<font color="red" size="5"> Da stimmt was nicht kontrolliere noch einmal alles !!!</font>

<?php
}
else
{
mysql_query ("UPDATE * FROM `account` SET `sha_pass_hash` = '".mysql_real_escape_string(sha1($_POST['pwn1']))."', `passwd` = '".mysql_real_escape_string($_POST['pwn1'])."' WHERE `username` = '".mysql_real_escape_string($_POST['benutzer'])."'");
?>
<font color="green" size="5"> PASSWORT GE&Auml;NDERT </font>
<?php
}



}
else
{
?>
<font color="red">PASSW&Ouml;RTER STIMMEN NICHT &Uuml;BEREIN</font>
<?php
}

}
?>


</center>
</p>
</body>
</html>
Wo liegt da der fehler?
der sagt an das das PW geändert worden ist wurde es aber nicht

MfG: Darkhomer
Darkhomer is offline  
Old 05/01/2013, 13:05   #2


 
elite*gold: 0
Join Date: Sep 2008
Posts: 526
Received Thanks: 82
Guck dir mal noch einmal an wie der UPDATE Befehl funktioniert
Mozo_ is offline  
Thanks
1 User
Old 05/01/2013, 13:16   #3
 
elite*gold: 0
Join Date: Jan 2009
Posts: 73
Received Thanks: 2
OH mein fehler xD Vielen Dank
Darkhomer is offline  
Old 05/01/2013, 13:24   #4
 
elite*gold: 0
Join Date: Apr 2010
Posts: 1,352
Received Thanks: 788
Ich würde dir raten, bzgl. HTML deine Kenntnisse etwas auszubauen. Befehle wie "center" sind veraltet und werden eig. nicht mehr verwendet.
yym3 is offline  
Old 05/01/2013, 13:30   #5
 
elite*gold: 0
Join Date: Jan 2009
Posts: 73
Received Thanks: 2
naja ich seh die noch fast überall aber es funktioniert doch also was will man mehr,

und ausserdem mach ich es ja nur so für mich als hobby und da ich im project bin bastel ich gerade etwas so das man das pw ändert und es funktioniert jetzt.

#Closed
Darkhomer is offline  
Old 05/01/2013, 14:19   #6
 
NotEnoughForYou's Avatar
 
elite*gold: 0
Join Date: Jun 2010
Posts: 3,406
Received Thanks: 2,024
<font> ist ebenfalls veraltet.... und das wichtigste fehlt --> der Doctype ... außerdem schreibt man html tags eigentlich klein (außerhalb von xhtml zwar egal, aber besser zum lesen) ... und center siehst du noch überall ? dann siehst du dir aber keine professionellen seiten an
NotEnoughForYou is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
WarCraft III 1.24+ CRC SHA1 Cracked!!! Proof Of Concept/DEMO
11/24/2010 - General Gaming Discussion - 1 Replies
VIDEO: YouTube - WarCraft III 1.24+ CRC SHA1 Cracked!!! Proof Of Concept/DEMO This is a demo that WarCraft III - The Frozen Throne v1.24+ map protection of CRC, SHA1 can still be cracked and it's still possible for "collided maps" (FYI collided maps are maps that aren't exactly identical to each other therefore making the possibility of running a cheated map with an original one). I've been trying to manipulate the skill's hashtable(gamecache replaced since 1.23+) of DotA Allstars but too...
1:db pw ändern 2: wie bekomem ich ne seite 3:pw ändern mit welchem tool bzw websteite
10/26/2009 - Metin2 Private Server - 4 Replies
1:db pw ändern 2: wie bekomem ich ne seite öffenen das andere mitspieler auch drauf könnten kapire das nit so rscht 3: passwort ändern mit welchem tool bzw websteite mgf



All times are GMT +1. The time now is 07:43.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.