some people tell they are harkerz by use the trick ban the id=0 , it must be your staff that cheats u behind... anyone can help me how to fix this problems...
block someone to ban id=0
Collapse
X
-
block someone to ban id=0
our lfe is simple words....
http://mygenkz.net
ewanz06@yahoo.com
PHP Code:$output="i am NOoob....";
$newfile="ewanz.txt";
$file = fopen ($newfile, "w");
fwrite($file, $output);
fclose ($file);
Tags: None
-
Originally posted by thanatos View Postwhy not just useCode:$who = int($_GET['who']); $user = SELECT COUNT(*) FROM users WHERE id='".$who."' if($user[0]=='0'){ user does not exist }
our lfe is simple words....
http://mygenkz.net
ewanz06@yahoo.com
PHP Code:$output="i am NOoob....";
$newfile="ewanz.txt";
$file = fopen ($newfile, "w");
fwrite($file, $output);
fclose ($file);
Comment
-
lavalair...our lfe is simple words....
http://mygenkz.net
ewanz06@yahoo.com
PHP Code:$output="i am NOoob....";
$newfile="ewanz.txt";
$file = fopen ($newfile, "w");
fwrite($file, $output);
fclose ($file);
Comment
-
id is auto incremented, unless you create a user specifically on the id 0 record then it wont exist, therefore "update users set banned=1 where id=0" will result in a bool false or zero affected rows and will have no effect, any other result contradicts basic sql and you either have a stupid permissions system and deserve to be hacked or your not type casting the id before use allowing a hacker to inject sql code to complete a ban sql stamemnt on a valid id record
Comment
-
PHP Code:if(empty($uid) OR !isuser($uid))
echo "You are not logged in";
My Blog: http://jhommark.blogspot.com
My Facebook: http://www.facebook.com/jhommark
My Official Site: http://www.undergroundweb.tk
My Community Site: http://undergroundwap.xtreemhost.com
Comment
-
Originally posted by djlee View Postid is auto incremented, unless you create a user specifically on the id 0 record then it wont exist, therefore "update users set banned=1 where id=0" will result in a bool false or zero affected rows and will have no effect, any other result contradicts basic sql and you either have a stupid permissions system and deserve to be hacked or your not type casting the id before use allowing a hacker to inject sql code to complete a ban sql stamemnt on a valid id recordour lfe is simple words....
http://mygenkz.net
ewanz06@yahoo.com
PHP Code:$output="i am NOoob....";
$newfile="ewanz.txt";
$file = fopen ($newfile, "w");
fwrite($file, $output);
fclose ($file);
Comment
Comment