Stop Hacking

Started on the old forum in May 2008 · view the original in the archive · old links redirect here

12 replies · 1,811 views · started 18 years ago · 1 min read

5 participants
learner Lead · 587 posts #1

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!!

BEST MOBILE ADVERTISER

External image (may be gone)

amylee Principal · 1,092 posts #3

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

amylee Principal · 1,092 posts #6

when i get time i'll recode my old script and release it on my webforum

Guest #8

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

SiLeNce Developer · 138 posts #9

only put the code in all your php pages.

<?php error_reporting(0); ?> <?php
alesh Lead · 604 posts #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....

eeeeerrr....

alesh Lead · 604 posts #12

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

eeeeerrr....

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close