a0xnirudh / WebXploiter

WebXploiter - An OWASP Top 10 Security scanner !
http://webxploiter.readthedocs.org/
GNU General Public License v3.0
74 stars 21 forks source link

Running WebXploiter without any arguments produce AttributeError #10

Closed tuarjun closed 8 years ago

tuarjun commented 8 years ago

Issue::

When WebXploiter.py is run without any arguments, instead of asking the user to provide any valid arguments, an AttributeError is raised. This is probably due to fact that the argument string is null.

Example to reproduce error:

Run WebXploiter.py using no arguments.

python WebXploiter.py

Traceback (most recent call last):
  File "WebXploiter.py", line 109, in <module>
    main()
  File "WebXploiter.py", line 84, in main
    webxpoit.parse_target(args.u)
  File "WebXploiter.py", line 43, in parse_target
    flag = urlparse(target)
  File "/usr/lib/python2.7/urlparse.py", line 143, in urlparse
    tuple = urlsplit(url, scheme, allow_fragments)
  File "/usr/lib/python2.7/urlparse.py", line 182, in urlsplit
    i = url.find(':')
AttributeError: 'NoneType' object has no attribute 'find'