Sinisterly
My SQL injection complete tutorial :) - Printable Version

+- Sinisterly (https://sinister.ly)
+-- Forum: Hacking (https://sinister.ly/Forum-Hacking)
+--- Forum: Tutorials (https://sinister.ly/Forum-Tutorials)
+--- Thread: My SQL injection complete tutorial :) (/Thread-My-SQL-injection-complete-tutorial)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39


RE: My SQL injection complete tutorial :) - RogueCoder - 05-29-2013

(05-29-2013, 08:08 AM)apmahmad Wrote: I got to the admin log in page but i got this
Not Found

The requested URL /adminpage/admin-request was not found on this server.
Apache/2.2.14 (Ubuntu) Server at www.leadacidbatteryinfo.org Port 80
i tried admin name:admin
and for the password iam using free hivij but it is good
so what we do here is in the username we always type "Admin"
and for our password we type our sql injection
i tried

[... snip ...]

i tried like half of them
and ny facebook name is my same name Apm A hmad

First, these won't work on Facebook or any other high profile open source project.

Second, you should instead try these in the username field since passwords most of the times are hashed meaning the attack string won't work.


RE: My SQL injection complete tutorial :) - redN00ws - 06-05-2013

As I am new to all this, I searched the internet for some learning projects and found some.
But at the point of asking the colums of an interesting table I get the following error:
Error performing query: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '115,115,99,109,97,110,97,103,101,114 -' at line 1

This is the url I used :
http://[SITEURL.COM]/actiontools/getThisTopic.php?id=-8771 union all select 1,2,column_name,4,5,6,7,8,9,10 from information_schema.columns where table_name=char(115,115,99,109,97,110,97,103,101,114)--

I can't see the mistake... can you help me out?


RE: My SQL injection complete tutorial :) - redN00ws - 06-05-2013

Ok, my question is solved... My Tor web browser was blocking unsafe url's (potential XSS-scripts). I didn't know that. I just saw a warning on top of my browser.


RE: My SQL injection complete tutorial :) - ilvae - 06-10-2013

There is a password to downloading the dork.... Can I haz it via PM please? Biggrin


RE: My SQL injection complete tutorial :) - cbriger - 06-11-2013

Thanks dude !
finally a sql tut that makes sense
no offence to other tuts or anything :-)


RE: My SQL injection complete tutorial :) - redN00ws - 06-13-2013

A question... Maybe it is an old question but it is hard to read all previous 33 pages of this thread.
What if the dbase name isn't "information_schema". I tried all kind of solutions but ... snif...
Is there a way to find the dbase name?

found it...
http://www.[url].php?id=-62 union all select 1,2,database(),4,5,6,7,8,9--


RE: My SQL injection complete tutorial :) - smoochy - 06-17-2013

(12-28-2010, 11:06 PM)lashai Wrote: put again your tutorial for noobs or USE Havij Biggrin

its better to use manual injection than to use Havij.... using Havij is like you're waiting for someone to feed you...

(06-05-2013, 10:42 PM)redN00ws Wrote: As I am new to all this, I searched the internet for some learning projects and found some.
But at the point of asking the colums of an interesting table I get the following error:
Error performing query: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '115,115,99,109,97,110,97,103,101,114 -' at line 1

This is the url I used :
http://[SITEURL.COM]/actiontools/getThisTopic.php?id=-8771 union all select 1,2,column_name,4,5,6,7,8,9,10 from information_schema.columns where table_name=char(115,115,99,109,97,110,97,103,101,114)--

I can't see the mistake... can you help me out?

instead of:
http://[SITEURL.COM]/actiontools/getThisTopic.php?id=-8771 union all select 1,2,column_name,4,5,6,7,8,9,10 from information_schema.columns where table_name=char(115,115,99,109,97,110,97,103,101,114)--

try this:
http://[SITEURL.COM]/actiontools/getThisTopic.php?id=-8771 union all select 1,2,group_concat(column_name),4,5,6,7,8,9,10 from information_schema.columns where table_name=char(115,115,99,109,97,110,97,103,101,114)--

or

http://[SITEURL.COM]/actiontools/getThisTopic.php?id=-8771 and 1=2 union all select 1,2,group_concat(column_name),4,5,6,7,8,9,10 from information_schema.columns where table_name=char(115,115,99,109,97,110,97,103,101,114)--


RE: My SQL injection complete tutorial :) - fmaurica - 06-19-2013

DON'T REMOVE! I'll thank you as much as you want but please do not remove !!!


RE: My SQL injection complete tutorial :) - V1P3R - 06-22-2013

Lol i won't remove it man
thanks a lot


RE: My SQL injection complete tutorial :) - Bond_mybb_import13052 - 08-04-2013

This is a great tutorial. I've spent some time with it and I already hacked a few sites using the first method and one with the second. Your dork list won't download though, so I had to google for a different list. And also people will probably wonder how to find the admin login, which I'm doing with havij. If there's a better way let me know, but it could be a good thing to add to the tutorial. Apart from that though there's a few things I'm confused about.

First, although I was able to get in probably like 10 sites using the first method, most of the time I can't change anything around in the admin panel because these other SQL errors keep coming up. You literally can't do anything.

And second, I run into some problems when using the second method. It seems like there's a lot of other variables involved. The most common one is that when I type order by 3-- (or whatever number), sometimes the only number that doesn't yield an error is 1. Then if I type union all select 1-- it always gives me an error or loads normally. Never does it give me the vulnerable column. What does that mean?

Thank you.