Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Unable to retrieve database names

Heyyy, guys i just ran an sql injection attack using sqlmap everything was working alright... back-end mysql... u know, the usual.. but for the first time happened to me, it is impossible to retrieve data i used everything
Any advice for future experiences like this)))
(Jun 3, 2022 06:44 PM)thegooDZguy Wrote:  Heyyy, guys i just ran an sql injection attack using sqlmap everything was working alright... back-end mysql... u know, the usual.. but for the first time happened to me, it is impossible to retrieve data i used everything
Any advice for future experiences like this)))

If you have found a SQL injection that does not provide any output of the data fetched, example if you have a license key validator that either outputs VALID or INVALID. Then you can still use another method, not really sure what the real term for it is (if anyone knows, please let me know), I call it the blindfold mode.
It’s like slowly brute forcing, since you can manipulate the where query to fit your needs and will be told wether or not this query got a result or not.
So for example, if you have a user and you need the email, you would do queries such as this until you find the match:
Code
WHERE email LIKE "a%”
This will success if the email starts with “a”, if not continue and try it with “b” and so on.
Once you find the first letter, continue to the next
Code
WHERE email LIKE "sa%”
In the above we know it starts with “s” and are now testing if the second letter is “a”.
And in the end you could end up with a query like this
Code
WHERE email LIKE "[email protected]%”
If you wanna test if you have the full email already, you simply remove the ending “%”
Code
WHERE email LIKE "[email protected]”
If this is successful, you have gathered the full email.
[Image: 6KMyuYs.png]
(Jun 4, 2022 12:19 AM)skull Wrote:  If you have found a SQL injection that does not provide any output of the data fetched, example if you have a license key validator that either outputs VALID or INVALID. Then you can still use another method, not really sure what the real term for it is (if anyone knows, please let me know), I call it the blindfold mode.
It’s like slowly brute forcing, since you can manipulate the where query to fit your needs and will be told wether or not this query got a result or not.
So for example, if you have a user and you need the email, you would do queries such as this until you find the match:
Code
WHERE email LIKE "a%”
This will success if the email starts with “a”, if not continue and try it with “b” and so on.
Once you find the first letter, continue to the next
Code
WHERE email LIKE "sa%”
In the above we know it starts with “s” and are now testing if the second letter is “a”.
And in the end you could end up with a query like this
Code
WHERE email LIKE "[email protected]%”
If you wanna test if you have the full email already, you simply remove the ending “%”
Code
WHERE email LIKE "[email protected]”
If this is successful, you have gathered the full email.
Sounds interesting, can you provide me the specific command line.. in my case i use SQLMAP for attaching
Thanks mate


Possibly Related Threads...
Thread / Author Replies Views Last Post
by night4peJun 30, 2023 02:35 AM 3 195 Jun 30, 2023 02:35 AM
Last Post: night4pe
by gjariolg1657Jun 2, 2020 12:47 AM 3 214 Jun 2, 2020 12:47 AM
Last Post: frank3nstien
by jalen_rayJan 25, 2020 07:02 AM 7 536 Jan 25, 2020 07:02 AM
Last Post: •^v^–[ bLacKn3x ]–^v^•