Anyone can help me about this code for autobanned for attempting hacking modcp and admin cp.. Help.
Auto banned for attempting hack modcp/admincp
Collapse
X
-
heres my autoban for sql injection ..... sure u can adjust it to work for admincp
$uid = getuid_sid($sid);
$who = getnick_uid($uid);
addonline(getuid_sid($sid),"If i register again please ban me straight away!","");
$timeto = 9999*24*60*60;
$ptime = $timeto + time();
mysql_query("INSERT INTO ibwf_penalties SET uid='".$uid."', penalty='2', exid='1', timeto='".$ptime."', pnreas='Auto Ban (Wannabe Hacker) ', ipadd='".$uip."', browserm='".$ubr."'");
mysql_query("UPDATE ibwf_users SET lastpnreas='Wannabe Hacker', shield='0' WHERE id='".$uid."'");
mysql_query("INSERT INTO ibwf_mlog SET action='Sql Injection', details='<b>".$who."</b> Tried Injecting Sql', actdt='".time()."'");
Comment
-
Originally posted by something else View Postheres my autoban for sql injection ..... sure u can adjust it to work for admincp
$uid = getuid_sid($sid);
$who = getnick_uid($uid);
addonline(getuid_sid($sid),"If i register again please ban me straight away!","");
$timeto = 9999*24*60*60;
$ptime = $timeto + time();
mysql_query("INSERT INTO ibwf_penalties SET uid='".$uid."', penalty='2', exid='1', timeto='".$ptime."', pnreas='Auto Ban (Wannabe Hacker) ', ipadd='".$uip."', browserm='".$ubr."'");
mysql_query("UPDATE ibwf_users SET lastpnreas='Wannabe Hacker', shield='0' WHERE id='".$uid."'");
mysql_query("INSERT INTO ibwf_mlog SET action='Sql Injection', details='<b>".$who."</b> Tried Injecting Sql', actdt='".time()."'");
R.M.C
----------
PHP Adovocate B)
Comment
-
Blimey Someone Can Code Lol
Originally posted by mcKeny View Posthuh? that code is pathetic lol......it would be a better shot...if you verify the user input.....and check for possible injection symbols......and if detect, you run your band code.....
Thats just an auto-ban code which i was saying could be adjust for admincp/modcp auto ban
__________________
Sometime You Hit Your Head So Hard Against The Wall
Didn`t Realize You Could See The Other Side lolLast edited by something else; 09.06.09, 08:23. Reason: The post above this one is so dumb that it makes sweetangel look like a genius
Comment
-
Guest
-
search here in forum.updated means modded version of lavalair. lol why are people so lazy to read and search on their own..LDSWAPWORLD sigpic
site closed.
im busy with other things in life like facebook , send me PM so i can add you
www.pinoySG.com
don't ask for help if you're not even helping yourself!
i am tired of seeing the line "best site", i want to see something NEW and UNIQUE. maybe if i find one, ill go back to my wap life again.
Comment
Comment