Wow Hacked?

Results 1 to 9 of 9
  1. #1
    Account Upgraded | Title Enabled! rhys918 is offline
    MemberRank
    Apr 2009 Join Date
    EnglandLocation
    377Posts

    Wow Hacked?

    Can somone Please Give me the most updated or safest anti sql because i use wizkids regpage obc v2 and my database is stilll getting hacked but the hackers only can change the levels and names please provide me with good anti sql and how to use thanks


  2. #2
    Account Upgraded | Title Enabled! CrashPoint is offline
    MemberRank
    Sep 2008 Join Date
    VietNamLocation
    706Posts

    Re: Wow Hacked?

    [mod]removed .[/mod]
    Last edited by Rotana; 08-07-09 at 05:18 AM.

  3. #3
    Account Upgraded | Title Enabled! Trilest is offline
    MemberRank
    Apr 2009 Join Date
    The NetherlandsLocation
    549Posts

    Re: Wow Hacked?

    Quote Originally Posted by rhys918
    Can somone Please Give me the most updated or safest anti sql
    He was asking of an anti sql script not how to sql inject ..

  4. #4
    Member Girbicid is offline
    MemberRank
    Apr 2007 Join Date
    UkraineLocation
    72Posts

    Re: Wow Hacked?

    try this
    PHP Code:
        function escape($string)
            {
            if(
    ini_get('magic_quotes_gpc'))
                {
                
    $string stripslashes($string);
                }
            if(!
    function_exists('mssql_real_escape_string'))
                {
                
    $string mysql_escape_string($string);
                }
                else
                {
                
    $string mssql_real_escape_string($string);
                }
            return 
    $string;
            } 

  5. #5
    Account Upgraded | Title Enabled! Guy is offline
    MemberRank
    Apr 2009 Join Date
    919Posts

    Re: Wow Hacked?

    For MSSQL, none of the proposed solutions are safe; rather:

    Code:
      function sanitizeQuery( $data )
      {
        return( str_replace( "'", "''", $data ) );
      }
    The above escapes data being entered as a MSSQL query.

  6. #6
    Account Upgraded | Title Enabled! rhys918 is offline
    MemberRank
    Apr 2009 Join Date
    EnglandLocation
    377Posts

    Re: Wow Hacked?

    will this stop injections tho? if not plz post one what does

  7. #7
    Account Upgraded | Title Enabled! Tman151 is offline
    MemberRank
    May 2009 Join Date
    CaliforniaLocation
    306Posts

    Re: Wow Hacked?

    Yes rhys918, that will stop many forms of injection.

  8. #8
    Account Upgraded | Title Enabled! Trilest is offline
    MemberRank
    Apr 2009 Join Date
    The NetherlandsLocation
    549Posts

    Re: Wow Hacked?

    Quote Originally Posted by gWX0 View Post
    For MSSQL, none of the proposed solutions are safe; rather:

    Code:
      function sanitizeQuery( $data )
      {
        return( str_replace( "'", "''", $data ) );
      }
    The above escapes data being entered as a MSSQL query.
    You also released an anti-sql that only allowed A-Z a-z and 0-9 right ?
    Issn't that one better than replacing the ' ?
    I'm just guessing tho.

  9. #9
    Sultan of Yolo Demantor is offline
    MemberRank
    May 2008 Join Date
    GermanyLocation
    1,266Posts

    Re: Wow Hacked?

    Rhys, come msn i will say you what to edit in HG Functions.php :)



Advertisement