Comments (6)
Looks like you're missing the dependencies - you need to run pip install -r requirements.txt
from kube-hunter.
I ran it before I attempted to use kube-hunter. Now, if I run it again I get:
pez$ pip install -r requirements.txt --user
Requirement already satisfied: netaddr in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from -r requirements.txt (line 1)) (0.7.19)
Requirement already satisfied: netifaces in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from -r requirements.txt (line 2)) (0.10.9)
Requirement already satisfied: enum34 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from -r requirements.txt (line 3)) (1.1.6)
Requirement already satisfied: scapy in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from -r requirements.txt (line 4)) (2.4.2)
Requirement already satisfied: requests in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from -r requirements.txt (line 5)) (2.21.0)
Requirement already satisfied: PrettyTable in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from -r requirements.txt (line 6)) (0.7.2)
Requirement already satisfied: urllib3 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from -r requirements.txt (line 7)) (1.24.1)
Requirement already satisfied: ruamel.yaml in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from -r requirements.txt (line 8)) (0.15.87)
Requirement already satisfied: certifi>=2017.4.17 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from requests->-r requirements.txt (line 5)) (2018.11.29)
Requirement already satisfied: idna<2.9,>=2.5 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from requests->-r requirements.txt (line 5)) (2.8)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from requests->-r requirements.txt (line 5)) (3.0.4)
So, I assume it was good.
I do have python 2.7 and 3 installed...
pez$ python
Python 2.7.10 (default, Aug 17 2018, 19:45:58)
[GCC 4.2.1 Compatible Apple LLVM 10.0.0 (clang-1000.0.42)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
pez$ python3
Python 3.6.4 (v3.6.4:d48ecebad5, Dec 18 2017, 21:07:28)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
But I think that should not cause an issue in this case.
Pez
from kube-hunter.
from kube-hunter.
Thank you Liz. I do not know what I was looking at. Anyway, I did this
ez$ pip2 install -r requirements.txt
Collecting netaddr (from -r requirements.txt (line 1))
Could not fetch URL https://pypi.python.org/simple/netaddr/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:661) - skipping
Could not find a version that satisfies the requirement netaddr (from -r requirements.txt (line 1)) (from versions: )
No matching distribution found for netaddr (from -r requirements.txt (line 1))
got this error....
same things happen if I do python2 -m pip install -r requirements.txt...
If I go to URL via browser, I get the list of netaddr files...
will look further
from kube-hunter.
Try running:
python3 kube-hunter.py --cidr 192.168.70.143 --mapping
if that doesn't work,
try running:
pip2 install --trusted-host pypi.org --trusted-host files.pythonhosted.org netaddr
to install netaddr without the ssl error
from kube-hunter.
I'd like to close this as it's to do with installing requirements rather than an issue with kube-hunter
from kube-hunter.
Related Issues (20)
- With release: "error while loading shared libraries: libz.so.1: failed to map segment from shared object" HOT 2
- Please provide more information about running `kube-hunter` with a `ServiceAccount` for remote access (if it is possible) and describe more of the kube-hunter API (e.g. what arguments can be passed when starting a job)
- Kube hunter is not working as expected when using --kubeconfig
- The URL in ReadMe is invalid.
- How to get version of kube-hunter HOT 1
- The correct number of nodes in the k8s cluster cannot be listed.
- Kube-hunter report viewer not available?
- Add flag to hide sensitive data in results output
- Severity mismatch for KHV002 vulnerability HOT 1
- The opnfv/functest-kubernetes-security:v1.23 using kube_hunter test suite is not applicable on K8S cluster where strict PSP defined
- faulty kubectl verification
- build binary from source code HOT 1
- Enhanced logging for kube-hunter
- packaging issue: deployment of tests HOT 1
- Proposal: RBAC and Network Policy Misconfiguration
- Difference between scanning cluster using CLI and running it as a pod within the cluster
- Broken link to Trivy HOT 1
- critical vulnerabilities present in kube-hunter:0.6.8
- False Positive in KHV036 HOT 1
- kube-hunter results display different severity values for the same checks
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kube-hunter.