cheetz / sslScrape

SSLScrape | A scanning tool for scaping hostnames from SSL certificates.
328 stars 102 forks source link

Using outdated requests import #5

Open PenguinzPlays opened 5 years ago

PenguinzPlays commented 5 years ago
root@shades-virtual-machine:/opt/sslScrape# python --version
Python 2.7.12
root@shades-virtual-machine:/opt/sslScrape# pip install --upgrade --force-reinstall python
Collecting python
  Could not find a version that satisfies the requirement python (from versions: )
No matching distribution found for python
root@shades-virtual-machine:/opt/sslScrape# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.5 LTS
Release:        16.04
Codename:       xenial
root@shades-virtual-machine:/opt/sslScrape# python sslScrape.py 172.16.01.15    Traceback (most recent call last):
  File "sslScrape.py", line 26, in <module>
    from requests.packages.urllib3.exceptions import InsecureRequestWarning, InsecurePlatformWarning, SNIMissingWarning
ImportError: cannot import name InsecurePlatformWarning

PenguinzPlays commented 5 years ago

It may be usefull to consider using a Desired State Configuration tool like Ansible to ensure the environment is setup as you request, or to provide OS versions you have tried this on. Currently I am on BackBox (Ubuntu 16.04.5).

PenguinzPlays commented 5 years ago

Also, your book states I can provide an NMAP XML file? not seeing an option or really an import in the script.