SQL Hack

Started on the old forum in July 2010 · view the original in the archive · old links redirect here

27 replies · 3,491 views · started 16 years ago · 1 min read

14 participants
ewanz Developer · 187 posts #21

thanks all the inf0.. I will try it..

Added after 5 minutes:

thanks mate.. That mean i must str replace all the bad c0de f0r the br0wser..

our lfe is simple words.... 😌 http://mygenkz.net ewanz06@yahoo.com

$output="i am NOoob....";
$newfile="ewanz.txt";
$file = fopen ($newfile, "w");
fwrite($file, $output);
fclose ($file); 
firemax Developer · 221 posts #22

In some cases hacker does not know the name of the table or the column names, but he can use the same techniques to find these out.

He need to find out the name of the database that you are using. The function DATABASE() will give you that value. When he know the name of the database being used he can take guesses at the names of the tables.

Does the current database contain the letter j?

' OR EXISTS(SELECT 1 FROM dual WHERE database() LIKE '%j%') AND ''='

Is there a table called one in database test?

' OR EXISTS(SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' AND TABLE_NAME='one') AND ''='

Is there more than one table in the database(s) containing a j?

 ' OR (SELECT COUNT(*) FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA LIKE '%j%')>1 AND ''='

External image (may be gone) Free Mobile Web Scripts by me: Free Youtube Downloader, Tweets Reader, Facebook Wall Posts Reader PHP Tutorials: [How to Secure Your PHP Script (PHP SECURITY)](http://coding-talk.com/f14/how-to-secure-you…

GiLL Senior · 356 posts #23

he is not injecting from browser he is injecting from edit profile like where you change your password and user name etc he put query there and update all users name or password etc

left wap stuff

rayjee Developer · 99 posts #24

ewanz wrote: thanks all the inf0.. I will try it..

Added after 5 minutes:

thanks mate.. That mean i must str replace all the bad c0de f0r the br0wser..

yup friend. . Put the mysql_real_escape(). . . . . UPDATE ubr and ip . .Tnx to Wap metal f0r teach me how to secured dat injecti0n. .

ewanz Developer · 187 posts #25

bef0re this i had used cleanQuery like 0zzie had p0sted in t0pic.. I put f0r all get, p0st and request t0 secure fr0m injecti0n... N0w, is it i must rem0ve it n replace with the new 0ne..

our lfe is simple words.... 😌 http://mygenkz.net ewanz06@yahoo.com

$output="i am NOoob....";
$newfile="ewanz.txt";
$file = fopen ($newfile, "w");
fwrite($file, $output);
fclose ($file); 
icen01 Developer · 72 posts #26

Thankz for some info, tnt,..

pin0y likes wap

sm4rtgl0b3 Junior · 11 posts #27

Clean your post and get method., its simple and you dont have any problem of sqli by that.,

frostymarvelous Senior · 266 posts #28

Don't forget your cookies, and useragents.. Useragents especially are used Cos ppl tend to forget that they are also user input.

Perfection comes at a cost

I accept liberty!

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