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

cannot run KubiScan #69

Closed
kamal2222ahmed opened this issue Jun 1, 2023 · 2 comments
Closed

cannot run KubiScan #69

kamal2222ahmed opened this issue Jun 1, 2023 · 2 comments
Labels

Comments

@kamal2222ahmed
Copy link

Summary

Cannot run kubiscan -rr or any kubiscan command
Provide brief overview and context for the discovered bug.

Steps to Reproduce

$kubiscan -rr
File "/root/KubiScan/KubiScan.py", line 105
match cve_severity:
^
SyntaxError: invalid syntax

@gmaran23
Copy link

gmaran23 commented Jun 12, 2023

I encountered the same issue when I cloned from the KibiScan repo.

Downloading from the releases seem to work though.

wget https://github.com/cyberark/KubiScan/archive/refs/tags/v1.5.zip
apt update && apt install unzip -y
unzip v1.5.zip
cd KubiScan-1.5
pip3 install -r requirements.txt
python3 KubiScan.py --help

@g3rzi g3rzi closed this as completed in b298581 Jun 22, 2023
@g3rzi
Copy link
Contributor

g3rzi commented Jun 22, 2023

Hi @kamal2222ahmed and @gmaran23 , sorry for the late response.
The current version of KubiScan is 1.6 (I still didn't release it yet) but from my checks it is stable and it worked for me.

I think you received the error because match is only supported by Python 3.10.
What version of Python are you using?

Anyway, I changed the code from match and case to if else so it should work for you now.
Please check the latest current version from the GitHub page (version 1.6).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants