PDA

View Full Version : Cutenews tutorial: Can't get into admin acount?



Luckyrare
22-10-2005, 07:22 PM
In this tutorial you will learn how to get your admin acount back, if you have forgoten your password!

As the system is flatfile, it is very easy to do.

Edit this file /data/users.db.php

All the data is seperated by "|"

After between the third and fourth "|"replace the old code with


a906449d5769fa7361d7ecc6aa3f6d28

That is the MD5 translation of 123abc

Now you can login with your username and the password 123abc

Change your password as soon as you log in!

And your done!

Digital
22-10-2005, 07:30 PM
Nice danny :p + rep

splintercell!
22-10-2005, 07:30 PM
of you could write a md5 translator which would take 5 seconds and change it to the p/w you want..

Luckyrare
22-10-2005, 07:33 PM
Yes that is true.

I think there's one on cutenew's site somewhere...

Ill try make one "/ ;P

Mentor
22-10-2005, 07:47 PM
You could also just serch md5 tranlor, and it brings up a few net based ones, not that i forget my passwords enogh to have to use this techique alot *shifty eyes*

splintercell!
22-10-2005, 07:50 PM
<html>
<head><title>MD5 Encoder!</title></head>
<body>
<form action="<?php $_SERVER['PHP_SELF']; ?>" method="post" name="encoder">
Password: <input name="password" type="text" /> <input name="submit" value="Encript" type="submit" />
</form>
</body>
</html>
<?php
if ($_SERVER['REQUEST_METHOD'] != 'GET'){
$password = $_POST['password'];
if(!$password) {
echo "You did not enter a password";
exit();
} else {
$pass = md5($password);
echo "Your md5 encripted password is ".$pass."";
}
?>

that should work although ive just written it in two seconds so im not sure..

Luckyrare
22-10-2005, 07:50 PM
You could also just serch md5 tranlor, and it brings up a few net based ones, not that i forget my passwords enogh to have to use this techique alot *shifty eyes*

Lol "_"

www.cutephp.com/md5.php

If you want to make the password custom...


Spliter... It didnt work



<html>
<head><title>MD5 Encoder!</title></head>
<body>
<form action="<?php $_SERVER['PHP_SELF']; ?>" method="post" name="encoder">
Password: <input name="password" type="text" /> <input name="submit" value="Encript" type="submit" />
</form>
</body>
</html>
<?php
if ($_SERVER['REQUEST_METHOD'] != 'GET'){
$password = $_POST['password'];
if(!$password) {
echo "You did not enter a password";
exit();
} else {
$pass = md5($password);}
echo "Your md5 encripted password is $pass";
}
?>


That works ;)

http://www.xenigma.co.uk/md5/index.php

You missed out a "}"

Flisker
23-10-2005, 05:04 PM
But how do you make it Encript flatfile to the Password itself :s

Luckyrare
23-10-2005, 08:17 PM
What? De encript?

I thought you couldnt do that...

I may be wrong...

Want to hide these adverts? Register an account for free!