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

Add support for random user agent and specified agent (#41) #48

Merged
merged 4 commits into from
Oct 2, 2017

Conversation

DeKaN
Copy link
Contributor

@DeKaN DeKaN commented Oct 2, 2017

No description provided.

@codingo
Copy link
Owner

codingo commented Oct 2, 2017

Got the following exception when testing this:

+-+-+-+-+-+-+-+-+-+  v. 1.3
|V|H|o|s|t|S|c|a|n|  Developed by @codingo_ & @__timk
+-+-+-+-+-+-+-+-+-+  https://github.com/codingo/VHostScan

[+] Starting virtual host scan for <redacted> using port 80 and wordlists: ./wordlists/virtual-host-scanning.txt
[>] Ignoring HTTP codes: 404
Traceback (most recent call last):
  File "./VHostScan.py", line 113, in <module>
    main()
  File "./VHostScan.py", line 99, in main
    scanner.scan()
  File "/root/source/testing/VHostScan/lib/core/virtual_host_scanner.py", line 74, in scan
    'User-Agent': random.choice(self.user_agents),
  File "/usr/lib/python2.7/random.py", line 275, in choice
    return seq[int(self.random() * len(seq))]  # raises IndexError if seq is empty
IndexError: list index out of range

Having a look into this now but potentially something stands out to you @DeKaN? Only passed a target.

@DeKaN
Copy link
Contributor Author

DeKaN commented Oct 2, 2017

@codingo Fixed

@codingo codingo merged commit 3ec18a4 into codingo:master Oct 2, 2017
@codingo
Copy link
Owner

codingo commented Oct 2, 2017

Thank-you @DeKaN - I've added the hacktoberfest (hacktoberfest.digitalocean.com) tag for you and added your changes to the master readme.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants