Stop Hacking

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Stop Hacking

    open your login.php and find

    $uid = $_GET["loguid"];
    $pwd = $_GET["logpwd"];

    $tolog = false;

    replace it with

    $uid = mysql_real_escape_string( $_GET["loguid"] );
    $pwd = mysql_real_escape_string( $_GET["logpwd"] );

    $tolog = false;


    this must stop all the stupid sql injection in your script, if im wrong someone correct me
    Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!

    <span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>


    #2
    guess i m right
    Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!

    <span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>

    Comment


      #3
      yep makes data secure/safe by removing certain characters before sending the sql query to database

      Comment


        #4
        omg thank you immilee how about making the script more safe ? will you share how to fix all the holes?
        Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!

        <span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>

        Comment


          #5
          soon ill share the fixes with adminx too
          Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!

          <span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>

          Comment


            #6
            when i get time i&#39;ll recode my old script and release it on my webforum

            Comment


              #7
              that will be amazing. will help you lol as if pmpl i don&#39;t even know how to code
              Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!

              <span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>

              Comment


                #8
                In lavalair this is allready done for the superglobal arrays in php at the top of core.php

                Comment


                  #9
                  only put the code in all your php pages.

                  <?php error_reporting(0); ?>
                  <?php

                  Comment


                    #10
                    Correct me if im wrong but turning off all error reporting would b totaly useles if u didnt change names of ur sql database (rows and tables)? Cuz evry1 have lava sql copy.... Its good thng if u write ur own script nd sql, nd u wanna protect it by turning error reporting off....
                    sigpiceeeeerrr....

                    Comment


                      #11
                      error reporting has little r nothing to do with hacking, its to warn u of errors u might have in ur script

                      Comment


                        #12
                        Hmmm well.... If sum1 trying 2 **** u with sum sql injection, error reporting will help him out... Am i right?
                        sigpiceeeeerrr....

                        Comment


                          #13
                          wiz brou share site security codings for lava etc so no one can hack?
                          Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!

                          <span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>

                          Comment

                          Working...
                          X