Comments (18)
I can reproduce the issue as follows for Python3.9 and Python3.11. The issue is being faced by setup.py file :
Steps to Reproduce the issue for Python version 3.11 from non-user scenario:
- Checking the output of Python Version by the following command :
python3 -V
Referring the Installation guide from the Installation section of the repository.
- Firstly cloning the repository using the following command :
git clone https://github.com/r0oth3x49/ghauri.git
- Changing directory to the ghauri directory.
cd ghauri
- Running the following command to install requirements :
python3 -m pip install --upgrade -r requirements.txt
As in the above screenshot, you can observe that the requirements are being already satisfied as some of the python libraries are already installed. Now, moving forward to the 3rd step of the Installation section.
- Run
python3 setup.py install
orpython3 -m pip install -e .
So I did followed the same as follows :
First I ran the python3 setup.py install
and then the second one which is python3 -m pip install -e
. Let's see in which command the given issue was for mentioned in the Issue #119 .
Now, in the above screenshot, you can observe that setup.py failed due to permission denied error and setup tools being deprecated.
Now, let's try the second command which is python3 -m pip install -e .
So, from the above screenshot, the second command did work and installed ghauri tool successfully. So, let's proceed with the next step from the installation section.
- As per the last step, you will be able to access and run the ghauri with simple
ghauri --help
command. Let's try that.
So, from the above screenshot, we can observe that it worked and we can use tool with python3.11 but what about Python version 3.9. Let's find out.
Now for Python version 3.9, I will skip 3 steps from the steps to reproduce for Python version 3.11. So I will basically start with step 1 and steps 4 to 6.
Steps to Reproduce the Issue for Python Version 3.9 from non-user scenario:
Note : Using Google Cloud Shell for Python Version 3.9.
- Checking the output of Python Version by the following command :
python3 -V
-
Skipped
-
Skipped
-
Running the following command to install requirements :
python3 -m pip install --upgrade -r requirements.txt
As in the above screenshot, you can observe that some of the requirements are upgraded to newer versions and some of the python libraries are already installed. Now, moving forward to the 3rd step of the Installation section.
- Run
python3 setup.py install
orpython3 -m pip install -e .
So I did followed the same as follows :
First I ran the python3 setup.py install
and then the second one which is python3 -m pip install -e
. Let's see in which command the given issue was for mentioned in the Issue #119 .
Root user scenario :
In root user scenario, you will observe that setup.py will be successful and will installed ghauri tool successfully but it throws a warning for setup.py install and easy_install command being deprecated which is quite advisable but what about non-user.
Non-root user :
In non-root user, there is a scenario where it fails and throws a error like it throws in the following screenshot for Python version 3.9.
- As per the last step, you will be able to access and run the ghauri with simple
ghauri --help
command. Let's try that.
So, from the above screenshot, we can observe that it throws a command not found error for ghauri tool. So, to fix that I used the following commands as mentioned one-by-one :
python3 -m pip install -e . --upgrade
sudo python3 setup.py install
ghauri --help
I hope your issue is being resolved by these comment of mine. @blackcodersec
Also I hope you @r0oth3x49 sir you add this to the installation section so that if anyone faces the same issue can reference this issue to get their tool working.
from ghauri.
try installing with pip?
apt install python3-pip
python3 -m pip install -e . --upgrade
from ghauri.
from ghauri.
The error is more specific to python than ghauri. Try searching Google for the solution
from ghauri.
I not able to reproduce this issue
from ghauri.
Related Issues (20)
- Add more table extraction payloads on time-based HOT 1
- Cyber security tools
- --prefix doesnt work HOT 3
- -m and --batch option for providing a list of urls to scan HOT 1
- -m and --batch options for list of urls and automatic reply with Y on Ghauri HOT 1
- What is wrong? HOT 2
- When use `--level 3` its start testing all headers and cookies param
- --db support multi dbs
- Ignore Code Feature Request HOT 5
- Timebased Database retrieval use in Between HOT 2
- UnboundLocalError: local variable 'REGEX_MULTIPART_INJECTION' referenced before assignment HOT 2
- TypeError HOT 4
- ghauri asks for user input (y/n) even when I have used --batch argument HOT 4
- Query table name error HOT 1
- sqlite3.OperationalError: disk I/O error | attempt to write a readonly database
- How to force to use get methord??? HOT 11
- auto closing script!! HOT 1
- ghauri asks for user input (y/n) even when I have used --batch argument [303 Redirect] HOT 3
- target URL content is not stable even if it's stable HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ghauri.