[Release] Anti SQL Injeced

MorgaN

New Member
Joined
Apr 23, 2008
Messages
708
Reaction score
101
Some codes

This anti sql injection no mine is the one I do not know how he thought
1.
Code:
//This prevents SQL Code injection / XSS Attacks.

function replace_meta_chars($string){
return @eregi_replace("([*])|([|])|([;]|([`])","",$string);
}

while(list($keyx,$valuex) = each($_REQUEST)){
if(eregi("([*])|([|])|([;])",$valuex)){
mail("camilo@cancun.com","Hack Alert","There's been a SQL Injection hacking attempt. $HTTP_REFERRER $REMOTE_ADDR","FROM:core@cancun.com,BCC:bernhardx@cancun.com");
}
}

reset ($_REQUEST);
while(list($keyx,$valuex) = each($_REQUEST)){
${$keyx} = replace_meta_chars($valuex);
echo "$keyx $valuex
";
}
//end anti SQL XSS script.

Note: Initially i used the escapeshellcmd() function, but we discovered it was messing with our e-commerce site, as it nukes EVERY metacharacter, included some that are used in credit card transactions; so i had to develop a little function that only nukes what i tell it to. :)
#############################################

First of all we have is the page where the input that shows something menu
1.
Code:
form method=post action=test.php input type=text name=search  input type=submit value=ok  form
2nd file is called test.php, which contains the following script

Code:
function anti_injection( $search ) { $banlist = array ( insert, select, update, delete, distinct, having, truncate, replace, handler, like, as, or, procedure, limit, order by, group by, asc, desc ); if ( eregi ( [a-zA-Z0-9]+, $search ) ) { $user = trim ( str_replace ( $banlist, '', strtolower ( $search ) ) ); } else { $user = NULL; } $array = array ( 'search' = $search ); if ( in_array ( NULL, $array ) ) { die ( 'Hacking attempt. Go play someplace else, you script kiddie.' ); } else { return $_POST['search']; } } print anti_injection ( $_POST['search'] );
Credits: MorgaN
 
Last edited:

ludlud

Active Member
Joined
Jun 27, 2008
Messages
917
Reaction score
101
И вие не знаете за кво става дума нали ? Ако знаете някой който е написал 10/10 да ми каже ! ;)
 
  • Like
Reactions: Milanoob

RhysFox

New Member
Joined
Jun 30, 2008
Messages
918
Reaction score
298
Става дума, че защитава... Просто прочрти заглавието и си го преведи :sun:.
 
  • Like
Reactions: Milanoob
Thread starter Similar threads Forum Replies Date
newguy [Release] Anti sql inject script + ip + command log + ban system Releases 28
KR373N [Release] [PHP] Anti SQL Injection Script Releases 6
noLove [Release] Antihack GameGuard (DLL) Releases 2
noLove [Release] SlineMU Antihack and Website premium Releases 17
DemonuMu [Release] MHP AntiHack MU Full Source Releases 3
DemonuMu [Release] H-Guard Anti-hack System Releases 11
S [Release] Play AntiCheat Releases 0
DemonuMu [Release] MuEMU Anti-Cheat Source Releases 0
DemonuMu [Release] Anti DDoS Guardian 3.4 Cracked Releases 0
DemonuMu [Release] Main 99b + Anti-Hack For Free Releases 15
L [Release] ExTeam Season 4 Ep 6 FULL + Stable AntiCheat, DDos, Customs, New Item Releases 9
D [Release] MuEMU Antihack + Video Guide 97D Releases 9
L [Release] ConnectServer + Anti Syn Flood + Port Change Option Releases 2
L [Release] ZyGuard Antihack Full Releases 8
DemonuMu [Release] MuEMU Anti-Hack For Free Releases 24
DemonuMu [Release] Main 97d+99i Free Anti-Hack Releases 106
DemonuMu [Release] MuOnline Anti-DDoS 2013 Releases 5
D [Release] Anti Hack Server & Client Side (Source Code) Releases 2
D [Release] Codex Anticheat v3 modified Releases 3
L [Release] ZyGuard Free Full MuOnline Antihack Releases 11
L [Release] NSEngine Anti-Cheat Releases 4
Deadman [Release] Anti ddos Guardian Plus Releases 20
P [Release] MuGuard Anti Flood Releases 1
Angerfist [Release] Main 99b + AntiHack Releases 6
ludaka [Release] Anti shadow bug Releases 2
D [Release] Pinkof Anticheat 3.0.3 Releases 12
hrisiz [Release] AntiDupe Script Update Releases 1
1 [Release] CheatShield Mu Online Antihack [Server & Client ] Releases 3
Angerfist [Release] Source Code - Dll Hide Main - Write Mem Serial - Anti SendPacket Releases 1
Angerfist [Release] LockSystem - Anti DoS Releases 0
Angerfist [Release] Cheats DB for any Dll Antihack Releases 3
tomas08 [Release] OMEGA Repack - Titan Tech 11.00.35 + Patch 1.04c + Antihack + AutoBackup Releases 3
GTI [Release] Main + AntiHack Releases 71
Toshy [Release] KiwiGuard Anti DDos System Releases 8
L [Release] AntiLag Patch V9 Releases 2
L [Release] ConnectServer + Anti SyN Flood + Port Change Option Releases 8
L [Release] Titans Tech 10.07.65 Season 6 By Antiferna Releases 5
Mr.Stoyanov [Release] Anti Dupe 99b+ Releases 6
GTI [Release] AntiHacks Releases 35
pafa7a [Release] Pinkof AntiCheats Releases 61
enemysss [Release] Линк за точки (по име) + Anti Proxy Releases 14
Dungeon [Release] AntiHack + main Releases 76
KR373N [Release] AntiHideToolz - Kill Process Hide And Kill Main Releases 4
pafa7a [Release] Repack SCFMT 10.03.96 by Antiferna Releases 8
LasTPr0 [Release] Anti-Dupe Script Releases 13
L [Release] Anti Proxy Script Releases 9
pafa7a [Release] Simply MuOnline Launcher + AntiCheat Releases 32
DarkMaster [Release] 99b Main + AntiHack & 100+ Items Support Releases 20
redfighterxp [Release] MuServer Season3 Episode1 By ANtiHazarD Releases 26
DarkMaster [Release] MuOnline AntiHack DLL Releases 136

Similar threads