abhisharma404/vault

URL parsing in vault.py

abhisharma404 opened this issue · 3 comments

Currently user can pass URL as -u 'www.url...' in vault.py.
We do not modify or try to check the URL and the URL is straightly forwarded to other modules.

List of URLs passed by user that seem right but they result in error :

  1. example.com
  2. www.example.com

The correct form is:
http://www.example.com

We can implement an intelligence system that modifies the URL passed by the user accordingly.
This intelligence system is meant to be in the vault.py file itself.

mzfr commented

@abhisharma404 We use regex to parse the entered URL and then see if the scheme is missing or not.

Yes that's great, can you work on this and send a PR?

mzfr commented

sure will do that 😄