Commit Graph

161 Commits

Author SHA1 Message Date
Liz Rice
af83103d45 Merge pull request #32 from kinvolk/schu/fix-shebang-env-path
kube-hunter: fix `env` path in shebang
2018-08-22 10:35:16 +01:00
Michael Schubert
d90c75a8f0 kube-hunter: fix env path in shebang
Currently, `./kube-hunter.py` results in:

```
-bash: ./kube-hunter.py: /bin/env: bad interpreter: No such file or directory
```
2018-08-22 10:50:19 +02:00
Liz Rice
c0d6ff1fc1 Include link to EULA for containerised version
Fixes #31
2018-08-21 14:30:08 +01:00
Liz Rice
52c29ab220 Merge pull request #30 from cclauss/patch-1
Travis CI: Test on Python 2.7 and 3.6
2018-08-21 14:24:03 +01:00
cclauss
a7269c5a9b Travis CI: Test on Python 2.7 and 3.6
The Python 3.7 on Travis CI stuff is still a bit too experimental for consistent builds.
2018-08-21 14:39:23 +02:00
Liz Rice
5c2e9afb14 Tweak to get python 3.7 build running. I hope. 2018-08-21 13:20:41 +01:00
Liz Rice
973815bc92 Merge pull request #27 from cclauss/patch-1
Add automated testing on Travis CI
2018-08-21 13:14:03 +01:00
Liz Rice
d050f18cd4 Merge pull request #29 from aquasecurity/menu-order
Shouldn’t rely on the order of a dictionary
2018-08-21 09:58:30 +01:00
Liz Rice
afd3563fc4 Shouldn’t rely on the order of a dictionary 2018-08-21 09:57:09 +01:00
cclauss
6fd15f6555 Add automated testing on Travis CI
Fixes #26 Travis CI needs to be turned ON for this repo at https://travis-ci.org/aquasecurity

Travis CI will run [flake8](http://flake8.pycqa.org) tests on Python 2.7 and 3.7 to find Python syntax errors and undefined names.

__E901,E999,F821,F822,F823__ are the "_showstopper_" flake8 issues that can halt the runtime with a SyntaxError, NameError, etc. Most other flake8 issues are merely "style violations" -- useful for readability but they do not effect runtime safety.
* F821: undefined name `name`
* F822: undefined name `name` in `__all__`
* F823: local variable name referenced before assignment
* E901: SyntaxError or IndentationError
* E999: SyntaxError -- failed to compile a file into an Abstract Syntax Tree
2018-08-21 10:17:23 +02:00
Liz Rice
1f43ee0ee5 Merge pull request #25 from cclauss/patch-1
print() is a function in Python 3
2018-08-21 09:04:28 +01:00
cclauss
effcbc15c9 print() is a function in Python 3
Just like #15 and #19 but in a new file this time.  Perhaps it is time to add some automated testing like Travis CI, Circle CI, Appveyor, etc.  https://github.com/marketplace/category/continuous-integration
2018-08-21 09:53:24 +02:00
Liz Rice
d126211d6b Merge pull request #20 from ccojocar/yaml_report
Refactor the reporter and add YAML report format
2018-08-20 10:05:37 +01:00
Cosmin Cojocar
de1508dfc7 Add tcpdump and wireshark into the Docker image to make scapy happy 2018-08-20 10:03:26 +02:00
Cosmin Cojocar
74943f10d1 Refactor the reporter and add an YAML report format
Separate the events collection from report rendering, in order
to allow different type of reports.
2018-08-20 10:03:26 +02:00
Liz Rice
e9de79b330 Merge pull request #19 from cclauss/patch-1
print() is a function in Python 3
2018-08-20 08:39:39 +01:00
Liz Rice
7caec3e0c7 Merge pull request #24 from eranbibi/master
change the menu options title
2018-08-18 19:40:21 +01:00
Liz Rice
aedc4767cc Merge pull request #22 from jaxxstorm/kubeadm_port
Add kubeadm API port to API Server discovery
2018-08-18 19:39:00 +01:00
danielsagi
45ca408082 Merge pull request #23 from aquasecurity/danielsagi-plugins-readme-patch
Added explanation about plugins
2018-08-18 19:05:53 +03:00
Eran Bibi
e2038276a5 change the menu options title 2018-08-17 20:04:17 +03:00
Eran Bibi
a45220b753 change the menu options title 2018-08-17 19:58:37 +03:00
danielsagi
ec8bb8689a Added explanation about plugins
Added explanation in readme about the smart usage of adding arguments in a plugins, rather from changing the main file.
2018-08-17 19:21:08 +03:00
Lee Briggs
4e72112339 Add kubeadm API port to API Server discovery 2018-08-17 08:17:23 -07:00
Liz Rice
67abe9156b Merge pull request #21 from lizrice/kubeadm-port
Look on port 6443 as well
2018-08-17 15:44:40 +01:00
Liz Rice
94822d1178 Look on port 6443 as well 2018-08-17 15:42:28 +01:00
cclauss
305e724894 print() is a function in Python 3 2018-08-17 15:29:18 +02:00
Liz Rice
dc4c1d5eaa Document new Job YAML file 2018-08-17 10:15:55 +01:00
Liz Rice
75ffd52080 Merge pull request #18 from ccojocar/deployment
Add a Dockerfile and a job definition which runs the kube-hunter from inside the cluster
2018-08-17 10:09:15 +01:00
Liz Rice
87a498d432 Merge branch 'master' into deployment 2018-08-17 10:08:43 +01:00
Liz Rice
e39ca98177 Merge pull request #15 from cclauss/patch-1
print() is a function in Python 3
2018-08-17 09:34:07 +01:00
Cosmin Cojocar
80f03c9990 Does not have to be blocked forever when executed in 'pod' mode in a job
The logs of the job can be retrieved even when the job is completed.
2018-08-17 10:16:35 +02:00
Cosmin Cojocar
afc4dd0803 Add a job definition which runs the kube-hunter from inside the cluster 2018-08-17 09:58:07 +02:00
Cosmin Cojocar
8fa842ae18 Add a dockerfile 2018-08-17 09:58:07 +02:00
cclauss
a771c05903 print() is a function in Python 3
Also defined raw_input() in Python 3.
2018-08-16 23:51:18 +02:00
danielsagi
271554a684 Merge pull request #14 from aquasecurity/not-interactive-error-on-container
controlling the -it option
2018-08-16 19:12:06 +03:00
danielsagi
db7e054753 added comment 2018-08-16 19:11:36 +03:00
danielsagi
86ec960cf7 Merge pull request #13 from foldingbeauty/patch-1
Update README.md
2018-08-16 19:08:56 +03:00
daniel_sagi
03b81a9b8f added an error message when runnning container without -it 2018-08-16 19:03:16 +03:00
Daniël van Gils
bb0d2d49c0 Update README.md
tell docker to run an interactive and add a tty
2018-08-16 10:57:00 +00:00
danielsagi
c10235f747 Merge pull request #12 from aquasecurity/chmod-kube-hunter
chmod +x on kube-hunter.py
2018-08-15 17:49:23 +03:00
daniel_sagi
958e243279 added chmod 2018-08-15 17:26:03 +03:00
Liz Rice
469cb3460b Wording updates and typos 2018-08-15 15:14:39 +01:00
danielsagi
63fdd961b2 Merge pull request #11 from aquasecurity/api-server-discovery
API server discovery
2018-08-15 16:47:35 +03:00
daniel_sagi
a4dbaaf446 added an API Server event, also added port 443 to ports discovery 2018-08-15 16:46:21 +03:00
daniel_sagi
615f3d3ace Merge branch 'master' of https://github.com/aquasecurity/kube-hunter 2018-08-14 20:10:19 +03:00
daniel_sagi
7017146b5a added TablesPrinted event publishing in default report module 2018-08-14 20:10:03 +03:00
danielsagi
d0cdec4a46 Merge pull request #10 from aquasecurity/lizrice-patch-3
Document --list option
2018-08-12 14:39:40 +03:00
danielsagi
1a4221fac8 Merge pull request #9 from aquasecurity/lizrice-patch-2
Change to kube-hunter throughout
2018-08-12 14:39:01 +03:00
Liz Rice
e3a9a3170d Document --list option 2018-08-10 09:10:42 +03:00
Liz Rice
19c9e145ba Change to kube-hunter throughout 2018-08-10 09:00:29 +03:00