June 9, 2022 at 4:54 PM
Hey,
Let's say I have a website that has a SQL injection vulnerability inside an insert query. So i.e.:
Initially SQLmap found the database name and the table name. I got the column names through a manual
method but eventually I got it also working through SQLmap with the -technique=B parameter (blind) to get
the columns of the table "login".
The last step is to get the actual data using these values but SQLmap isn't helping me. I get the following
message: "unable to retrieve the number of entries for table 'login' in database [database]". Isn't that strange
as it is able to get the database/table/column names?
The thing is that I found a way to do this manually with a script, but I also want to learn SQLmap. So does
anyone have a way to exploit such vulnerability with SQLmap?
One of the commands I did is as following:
sqlmap -r request.txt --random-agent --technique=B -p username --dump-all -D [database] -T login -C id,username
If it's not possible then I could make a tutorial on how this can be manually done, but I prefer SQLmap because
I have the feeling it should be possible.
Let's say I have a website that has a SQL injection vulnerability inside an insert query. So i.e.:
Insert into login(username, password) values ('[injection point]','')Initially SQLmap found the database name and the table name. I got the column names through a manual
method but eventually I got it also working through SQLmap with the -technique=B parameter (blind) to get
the columns of the table "login".
The last step is to get the actual data using these values but SQLmap isn't helping me. I get the following
message: "unable to retrieve the number of entries for table 'login' in database [database]". Isn't that strange
as it is able to get the database/table/column names?
The thing is that I found a way to do this manually with a script, but I also want to learn SQLmap. So does
anyone have a way to exploit such vulnerability with SQLmap?
One of the commands I did is as following:
sqlmap -r request.txt --random-agent --technique=B -p username --dump-all -D [database] -T login -C id,username
If it's not possible then I could make a tutorial on how this can be manually done, but I prefer SQLmap because
I have the feeling it should be possible.



