SQL Hack
Collapse
X
-
Originally posted by ewanz View Posti have 4 times change the table name but it same happened like robzsky.. I also have put many anti sql in my script..why it still g0t hacked by injecti0n?You still have holes in your site use the below code and it will fix them:Originally posted by something else View PostThis is pointless if your not correctly protected as sql can be crashed easily to give out your new table names
This will stop the 2 main holes you are not protecting:
Add this to your config.php
PHP Code:if(isset($_GET)){foreach($_GET as $key=>$value){$_GET[$key]=addslashes(htmlspecialchars($value));}}
if(isset($_POST)){foreach($_POST as $key=>$value){$_POST[$key]=addslashes(htmlspecialchars($value));}}
if(isset($_SERVER)){foreach($_SERVER as $key=>$value){$_SERVER[$key]=addslashes(htmlspecialchars($value));}}
if(isset($_SESSION)){foreach($_SESSION as $key=>$value){$_SESSION[$key]=addslashes(htmlspecialchars($value));}}
Leave a comment:
-
i have 4 times change the table name but it same happened like robzsky.. I also have put many anti sql in my script..why it still g0t hacked by injecti0n?
Leave a comment:
-
This is pointless if your not correctly protected as sql can be crashed easily to give out your new table namesOriginally posted by leadiztah View Postsimply.. Just rename all your table name.. for ex.
from ibwf_users
to 7awt534_user
lol..
open a text editor.. and replace IBWF to (desire name of table) make sure that all of the php file changed!
Leave a comment:
-
pmpl, This is why i banned the noob ...
Also Note your using lavalair and yes its full of bugs you can't fix it pay a pro coder for a script that works ok
Leave a comment:
-
Damn! in my SQL ibwf_users.. Registered username a lot of fake1, fake02, fake03............fake10000000 users!
Leave a comment:
-
simply.. Just rename all your table name.. for ex.
from ibwf_users
to 7awt534_user
lol..
open a text editor.. and replace IBWF to (desire name of table) make sure that all of the php file changed!
Leave a comment:
-
this looks to be huwards doing again. he tries geting in via your puting some code in the user agent which if u havnt got htmlchars or mysql_real_escape will execute anything in the database you ask it to.
Leave a comment:
-
More like xml injection but my little code will block them doing it to you..
Leave a comment:
-
Okay thanks dude, well, How did the hackers that?
what kind of sql injection he used?
Leave a comment:
-
Open my username (subzero) search anti sql injection then do what it says
Enjoy!
Leave a comment:
Leave a comment: