ICTU / zap2docker-auth-weekly

Zap baseline scanner in Docker with authentication
Apache License 2.0
104 stars 70 forks source link

No module named 'selenium' zap-full-scan.py with auth_hook.py #48

Open hamzaElharti opened 2 years ago

hamzaElharti commented 2 years ago

Hello, When running a scan with auth_hook I get an error:

docker command:

docker run --rm -v $(pwd):/zap/wrk/:rw -t ictu/zap2docker-weekly zap-full-scan.py -I -j -m 10 -T 60 \ -t http://localhost:3000 \ -r testreport.html \ --hook=/zap/auth_hook.py \ -z "auth.loginurl=http://localhost:3000/#/login \ auth.username="demo" \ auth.password="demo" \ auth.username_field="email" \ auth.password_field="password" \ auth.submit_field="loginButton"" \

The output:

Traceback (most recent call last): File "/zap/zap-full-scan.py", line 520, in main(sys.argv[1:]) File "/zap/zap-full-scan.py", line 214, in main load_custom_hooks(hook_file) File "/zap/zap_common.py", line 84, in load_custom_hooks loader.exec_module(hooks_module) File "", line 848, in exec_module File "", line 219, in _call_with_frames_removed File "/zap/auth_hook.py", line 1, in import zap_auth File "/zap/zap_auth.py", line 10, in from selenium import webdriver ModuleNotFoundError: No module named 'selenium'

hamzaElharti commented 2 years ago

Very kind reminder.

Hamza

dicksnel commented 2 years ago

Did you pull the latest version? I cannot reproduce the issue.

hamzaElharti commented 2 years ago

Did you pull the latest version? I cannot reproduce the issue.

Yes, I use the latest version and run it with podman.

erno1978 commented 3 months ago

Hello @hamzaElharti We are currently reviewing if there's still a usecase for this repository because in the meanwhile, ZAP seems to have included the same functionality. Do you (still) have a specific reason to use this repostory instead of the "original ZAP"?

Sorry, it's been a while before you got this answer.