UPDATED
I just update my post:
I have been trying all night, I think I fairly far but I can not get the querys to check and update properly… Right now the pass = pass thing works, it just won't say that you beat the challenge after you already got your user_basic1 updated… I think my problem is that it is not updating and that the elseif that checks to see if user_basic1 = 'Completed' doesn't work. I am not sure though there could be more.
<center> .: Basic 1 :. <center>
<br>
<hr>
<?php
$pwd = basic1done;
if (!isset($_POST['user']))
{
?>
.: <b> LOGIN <b> :.
<br>
<br>
<form action="viewpage.php?page_id=22" METHOD="post" name="login">
Password
<br/>
<input class="textbox" type="password" style="width: 100px;" name="pass"/>
<br/>
<input type='submit' value='<login>'>
</form>
<!------ The first challenges are easy, your password is: basic1done ------>
<br>
<br>
<?php
mysql_select_db('unrealcomps_game');
if ($_POST['pass'] == $pwd and $sql = 'SELECT user_basic1 = \'Uncompleted\' FROM fusion_users WHERE user_id LIMIT 0, 30 ')
{
print "<center><font color='white'><br><br>Congrats 5 points will be added!<br /><br /><font /><center />";
$sql = 'UPDATE fusion_users SET user_basic1 = \'Completed\' WHERE 1';
}
elseif ($_POST['pass'] == $pwd and $sql = 'SELECT user_basic1 = \'Completed\' FROM fusion_users WHERE user_id LIMIT 0, 30 ')
{
print "<center><font color='white'><br><br>Congrats 5 points will be added!<br /><br /><font /><center />";
}
elseif ($_POST['pass'] == $pwd)
{
print "<center><font color='white'><br><br>Your password was incorrect!<br /><br /><font /><center />";
}
}
print "<center><font color='white'><br><br><br><br>If your lost <i>go here<i /><br /><br /><br /><br /><font /><center />";
?>
P.S. This is not the right catagory so if an admin could more it to general I would be grateful
Try DJ Java Decompiler, it decompiles your classes into humanized readable java files unless it's obfuscated and javac.exe, etc. can be downloaded, of course, from www.java.sun.com. Better try looking for its J2SE download sections to find your wanted stuffs. And, mostly java progs usually use MD5, DES algo by default… better check its Crypto package…
Cheers!
masta_hacks wrote: W / E I already decrypted it no thanks to anyone other than lum0s. If you don't like my posts then don't read them. I already said I was gonna edit this one.
STFU, don't waste our time.
50 fucking threads that can be done in one google search.
Fuck off, bitch.
(Sorry for uncensored naughty words. I had to use them.)
the second line of php you check a variable which doesnt exist, namely $sql. if youre trying to query the database you need to first: $query=mysql_query("SELECT * FROM tablename WHERE username=[persons username]"); $result=mysql_fetch_assoc($query); if($result['fieldname']=="somevalue") { carry on code here }
I know, but I must learn some how. And I like hands-on beater.
Okay this is what I have at the moment:
<center> .: Basic 1 :. <center>
<br>
<hr>
<?php
$pwd = basic1done;
if (!isset($_POST['user']))
{
?>
.: <b> LOGIN <b> :.
<br>
<br>
<form action="viewpage.php?page_id=22" METHOD="post" name="login">
Password
<br/>
<input class="textbox" type="password" style="width: 100px;" name="pass"/>
<br/>
<input type='submit' value='<login>' name="submit">
</form>
<!------ The first challenges are easy, your password is: basic1done ------>
<br>
<br>
<?php
mysql_select_db('unrealcomps_hak');
if ($_POST['pass'] == $pwd and $sql = 'SELECT user_basic1 = \'Uncompleted\' FROM unrealcomps_users WHERE user_id LIMIT 0, 30 ')
{
print "<center><font color='white'><br><br>Congrats 5 points will be added!<br /><br /><font /><center />";
dbquery("UPDATE unrealcomps_users SET user_basic1 = 'Completed' WHERE user_id=('".$userdata['user_id']."')");
}
elseif ($_POST['pass'] == $pwd and $sql = 'SELECT user_basic1 = \'Completed\' FROM unrealcomps_users WHERE user_id LIMIT 0, 30 ')
{
print "<center><font color='white'><br><br>Sorry you already beat this challenge!<br /><br /><font /><center />";
}
elseif ($_POST['submit'] and $_POST['pass'] <> $pwd)
{
print "<center><font color='white'><br><br>Your password was incorrect!<br /><br /><font /><center />";
}
}
print "<center><font color='white'><br><br><br><br>If your lost <i>go here<i /><br /><br /><br /><br /><font /><center />";
?>
For it to be workable all I need it to do is check to see if user_basic1='Completed' or not, then it will work and I can fix it has people begin to hack it ;)
i didnt notice that…. masta_hacks you have some serious learning to do, and just stop making a site right now unless you want postings of goatse all over your site O.o