block someone to ban id=0

Started on the old forum in January 2010 · view the original in the archive · old links redirect here

13 replies · 1,041 views · started 16 years ago · 1 min read

9 participants
ewanz Developer · 187 posts #1

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...🤨

our lfe is simple words.... 😌 http://mygenkz.net ewanz06@yahoo.com

$output="i am NOoob....";
$newfile="ewanz.txt";
$file = fopen ($newfile, "w");
fwrite($file, $output);
fclose ($file); 
thunderwap Developer · 169 posts #2

what script u using?

WANT GOOD CHEAP HOSTING WITH 99% UPTIME? THEN PM ME FOR DETAILS!!

sham08 Newbie · 1 posts #4

if(($who=0) || ($who="")){ echo"You Cannot bann a user that Cant exist"; exit(); }

thanatos Senior · 261 posts #6

why not just use

$who = int($_GET['who']); $user = SELECT COUNT(*) FROM users WHERE id='".$who."' if($user[0]=='0'){ user does not exist } 

tell me if i uses int function incorrectly..

CreativityKills Lead · 833 posts #7

Wrong. $who = (int) $_GET['who']; $who = is_user($who) ? $who : FALSE; if( ! $who) exit('Stupid ****, ure being logged out and locked out. Heeheehee');

ewanz Developer · 187 posts #9

thanatos wrote: why not just use

$who = int($_GET['who']); $user = SELECT COUNT(*) FROM users WHERE id='".$who."' if($user[0]=='0'){ user does not exist } 

tell me if i uses int function incorrectly..

yeah..i mean i like this.. staff can't ban user id=0 and the user id that over the count of user..

our lfe is simple words.... 😌 http://mygenkz.net ewanz06@yahoo.com

$output="i am NOoob....";
$newfile="ewanz.txt";
$file = fopen ($newfile, "w");
fwrite($file, $output);
fclose ($file); 
ewanz Developer · 187 posts #10

lavalair...

our lfe is simple words.... 😌 http://mygenkz.net ewanz06@yahoo.com

$output="i am NOoob....";
$newfile="ewanz.txt";
$file = fopen ($newfile, "w");
fwrite($file, $output);
fclose ($file); 
djlee Developer · 224 posts #11

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

ewanz Developer · 187 posts #13

djlee wrote: 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

yeah...it is true.. i have try before.. that is stupid trick to ban sql statement on valid id record

our lfe is simple words.... 😌 http://mygenkz.net ewanz06@yahoo.com

$output="i am NOoob....";
$newfile="ewanz.txt";
$file = fopen ($newfile, "w");
fwrite($file, $output);
fclose ($file); 
Anthony Developer · 82 posts #14

lol i have seen sites with this function but so far none works

FREE International SMS

GYSMS.com Provides FREE International sms Reach over 775 networks in more than 221 countries at no cost to you. and the Good News is we own our SMS Hardware so there is no third party SMS API involved our services are completely Ad supported.....

http://gysms.com

Send FREE International MMS and Share Files worldwide using our MMS Service.

http://gysms.net

GTriddim Live Online Radio Station

http://www.gtriddim.com

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close