Php Effective Anti Injection Script -> No symbol block

Page 4 of 4 FirstFirst 1234
Results 46 to 52 of 52
  1. #46
    Valued Member LuC1o08 is offline
    MemberRank
    Jul 2008 Join Date
    101Posts

    Re: [Release] Php Effective Anti Injection Script -> No symbol block

    don't use this script.. you will be hacked !

  2. #47
    Account Upgraded | Title Enabled! themad is offline
    MemberRank
    Dec 2004 Join Date
    BulgariaLocation
    1,018Posts

    Re: [Release] Php Effective Anti Injection Script -> No symbol block

    Quote Originally Posted by LuC1o08 View Post
    don't use this script.. you will be hacked !
    Care to bring some arguments to the table?

  3. #48
    Enthusiast andrelis34 is offline
    MemberRank
    Oct 2008 Join Date
    47Posts

    Re: [Release] Php Effective Anti Injection Script -> No symbol block

    i added this script to my config.php , is ir right?

  4. #49
    4ever Alone = my religion nanoman is offline
    MemberRank
    Jul 2006 Join Date
    568Posts

    Re: [Release] Php Effective Anti Injection Script -> No symbol block

    Big thanks for the script! Works perfectly! But how do I add a return text or redirection to other page if someone has been trying to inject?

  5. #50
    Apprentice Ness2233 is offline
    MemberRank
    Jan 2008 Join Date
    20Posts

    Re: [Release] Php Effective Anti Injection Script -> No symbol block

    el problema es que donde lo pongo?

    gracias

  6. #51
    {{ {{ {{ d[-_-]b }} }} }} Hacke is offline
    MemberRank
    Feb 2007 Join Date
    G to the ERMANYLocation
    318Posts

    Re: [Release] Php Effective Anti Injection Script -> No symbol block

    to add this to your web you need to add that scribt into EACH web file that connect with your DATABSE

    if there is already a script tag just add it above it if not you need add a sript tag blablabla... like

    <?
    ADD SQL INJECTION SCRIPT HERE
    ?>

    ok now some ppl may say just add it to index.php since it includes all other stuff (this helps only against total retards^^) but the point is ppl dont need to use index.php they can navigate in the website easy by using ip/characters.php blabla and so on so you need to add it to EACH and i like to repeat it EACH file with db connection to be sure that you are safe ^^

  7. #52
    Account Upgraded | Title Enabled! themad is offline
    MemberRank
    Dec 2004 Join Date
    BulgariaLocation
    1,018Posts

    Re: Php Effective Anti Injection Script -> No symbol block

    Rephrased:
    PHP Code:
    function xw_sanitycheck($str){ return strpos(str_replace('\'\'','',' '.$str),'\'') ? str_replace('\'''\'\''$str) : $str; }

    function 
    secure($str){
        if (
    is_array($str))
            foreach(
    $str AS $id => $value)
                
    $str["$id"] = secure($value);
        else
            
    $str xw_sanitycheck($str);

        return 
    $str;
    }

    function 
    secure2(&$str){
        return 
    secure($str);
    }

    secure2($_GET);
    secure2($_POST);
    secure2($_COOKIE); 
    Last edited by themad; 04-07-10 at 11:03 AM.



Page 4 of 4 FirstFirst 1234

Advertisement