Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix VHostScan installation issues #125

Merged
merged 2 commits into from
Dec 11, 2023
Merged

Conversation

ibitebyt3s
Copy link

@ibitebyt3s ibitebyt3s commented Nov 10, 2021

People seem to be struggling to install VHostScan as in issues #122 and #123 and I found that by removing the version numbers in requirements.txt The install and test scripts would run flawlessly.

I also updated test-requirements.txt to follow the same "version numbering" in both *.txt files.

Lastly, I removed pytest command example from the README.md because it uses python2 which is now deprecated. The problem with it is that it was trying to import the ipaddress module and since pip2 is not available, it would be problem to install it and keep building on top of it.

In conclusion the following commands should run without issues:

sudo python3 setup.py install
sudo python3 setup.py test

@ibitebyt3s ibitebyt3s changed the title Make VHostScan ready for installation once again Fix VHostScan installation issues Nov 10, 2021
@aps-kar
Copy link

aps-kar commented Nov 23, 2021

I had the same issues installing but your fork seems to work, thank you.

Edit: Installed fine but running VHostScan.py gives the following error:
image

@ibitebyt3s
Copy link
Author

ibitebyt3s commented Nov 23, 2021

You might be calling the script with:

python3 VHostScan/VHostScan.py                                  

instead, call it as any binary in the $PATH variable. Just type VHostScan and you should get the proper banner and usage information. Let me know if you have other issues.


user@hostname:~/VHostScan$ python3 VHostScan/VHostScan.py           
Traceback (most recent call last):
  File "VHostScan/VHostScan.py", line 8, in <module>
    from .lib.core.virtual_host_scanner import virtual_host_scanner
ImportError: attempted relative import with no known parent package
user@hostname:~/VHostScan$ VHostScan     
+-+-+-+-+-+-+-+-+-+  v. 1.21
|V|H|o|s|t|S|c|a|n|  Developed by @codingo_ & @__timk
+-+-+-+-+-+-+-+-+-+  https://github.com/codingo/VHostScan

usage: VHostScan [-h] -t TARGET_HOSTS [-w WORDLISTS] [-b BASE_HOST] [-p PORT] [--prefix PREFIX] [--suffix SUFFIX] [-r REAL_PORT] [--ignore-http-codes IGNORE_HTTP_CODES]
                 [--ignore-content-length IGNORE_CONTENT_LENGTH] [--first-hit] [--unique-depth UNIQUE_DEPTH] [--ssl] [--fuzzy-logic] [--no-lookups] [--rate-limit RATE_LIMIT] [--waf] [-v]
                 [-oN OUTPUT_NORMAL | -oJ OUTPUT_JSON | -oG OUTPUT_GREPABLE] [--random-agent | --user-agent USER_AGENT]
VHostScan: error: the following arguments are required: -t

@theguly
Copy link

theguly commented Mar 15, 2023

latest requests (2.26) breaks the code, using requests==2.20.0 works like a charm.

for the records, i had it working doing:

apt-get install subversion python3-venv
ln -s /usr/include/locale.h /usr/include/xlocale.h
fix requirements.txt

python3 -m venv .venv
. .venv/bin/activate
pip install wheel
pip install numpy
pip install requests==2.20.0
python3 setup.py install

@codingo codingo merged commit 2fd84a2 into codingo:master Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants