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

Using outdated requests import #5

Open
PenguinzTech opened this issue Feb 17, 2019 · 2 comments
Open

Using outdated requests import #5

PenguinzTech opened this issue Feb 17, 2019 · 2 comments

Comments

@PenguinzTech
Copy link

PenguinzTech commented Feb 17, 2019

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

@PenguinzTech
Copy link
Author

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).

@PenguinzTech
Copy link
Author

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

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

No branches or pull requests

1 participant