zap-cli icon indicating copy to clipboard operation
zap-cli copied to clipboard

How to run a active scan attack on URLs from the loaded session?

Open pchen54627 opened this issue 6 years ago • 3 comments

I try the following commands: zap-cli session load myproject.session

zap-cli open-url https://www.myproject.com

zap-cli context import NewContext.context

zap-cli active-scan --recursive -c "NewContext" --user-name manager1 https://www.myproject.com

But session file not loaded, Can anyone know why and how to fix it ?

pchen54627 avatar Apr 12 '19 03:04 pchen54627

Can you try opening the ZAP GUI and then running zap-cli session load myproject.session and seeing if the session is successfully loaded?

Grunny avatar Apr 24 '19 10:04 Grunny

Any progress on this? I'm able to open the Zap GUI, load my context, and see it pop up in the UI. For session, nothing happens. My command line just has [DEBUG] Loading session from my.session but nothing shows in the UI. @Grunny

ambergkim avatar Apr 16 '20 00:04 ambergkim

Looks like I just needed to test and check the paths for the files. Going back to ~ and building the path from there helped.

ambergkim avatar Apr 16 '20 18:04 ambergkim