r0oth3x49 / ghauri

An advanced cross-platform tool that automates the process of detecting and exploiting SQL injection security flaws
MIT License
3.11k stars 311 forks source link

-r not working in ghauri #149

Closed Sachin85y closed 4 months ago

Sachin85y commented 5 months ago

└──╼ ❯❯❯ ghauri -r yahoo.txt --dbs --batch --confirm --level=3

____. . {1.3} / _/| |_ _____|_| / \ | | \ \ | | _ \ | \ _\ \ Y \/ | | /| | \/ | _____ /| ( // || || \/ \/ \/ https://github.com/r0oth3x49 An advanced SQL injection detection & exploitation tool.

[*] starting @ 19:09:38 /2024-06-08/

[19:09:38] [INFO] parsing HTTP request from 'yahoo.txt' Traceback (most recent call last): File "/data/data/com.termux/files/usr/bin/ghauri", line 33, in sys.exit(load_entry_point('ghauri==1.3', 'console_scripts', 'ghauri')()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/ghauri-1.3-py3.11.egg/ghauri/scripts/ghauri.py", line 450, in main resp = ghauri.perform_injection( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/ghauri-1.3-py3.11.egg/ghauri/ghauri.py", line 173, in perform_injection url = req.url ^^^^^^^ File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/ghauri-1.3-py3.11.egg/ghauri/common/utils.py", line 144, in url url = f"{self.protocol}://{self.host}" ^^^^^^^^^^^^^ File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/ghauri-1.3-py3.11.egg/ghauri/common/utils.py", line 177, in protocol referer = self.headers.get("Referer") ^^^^^^^^^^^^ AttributeError: 'HTTPRequest' object has no attribute 'headers'

r0oth3x49 commented 4 months ago

you should provide proper http request.