{"id":13841100,"url":"https://github.com/hahwul/mzap","last_synced_at":"2026-02-28T18:00:43.146Z","repository":{"id":54434021,"uuid":"289495089","full_name":"hahwul/mzap","owner":"hahwul","description":"⚡️ Multiple target ZAP Scanning","archived":false,"fork":false,"pushed_at":"2026-02-24T14:28:45.000Z","size":556,"stargazers_count":105,"open_issues_count":4,"forks_count":17,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-02-24T18:36:03.804Z","etag":null,"topics":["bugbounty","dast","hacking","security","zaproxy","zaproxy-automation"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hahwul.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"custom":["https://paypal.me/hahwul","https://www.buymeacoffee.com/hahwul"]}},"created_at":"2020-08-22T13:42:10.000Z","updated_at":"2025-10-15T02:22:37.000Z","dependencies_parsed_at":"2023-11-26T15:04:04.820Z","dependency_job_id":"e598735b-2130-45a6-a7f3-b247b82916b0","html_url":"https://github.com/hahwul/mzap","commit_stats":{"total_commits":78,"total_committers":4,"mean_commits":19.5,"dds":"0.11538461538461542","last_synced_commit":"9a6e0fe8ff2d1dc00f4ba74caeed920755cdfe51"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/hahwul/mzap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hahwul%2Fmzap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hahwul%2Fmzap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hahwul%2Fmzap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hahwul%2Fmzap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hahwul","download_url":"https://codeload.github.com/hahwul/mzap/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hahwul%2Fmzap/sbom","scorecard":{"id":452828,"data":{"date":"2025-08-11","repo":{"name":"github.com/hahwul/mzap","commit":"cd24ab36645b49ef70c9209ec3114da97e2af545"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/23 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Security-Policy","score":4,"reason":"security policy file detected","details":["Info: security policy file detected: SECURITY.md:1","Warn: no linked content found","Info: Found disclosure, vulnerability, and/or timelines in security policy: SECURITY.md:1","Info: Found text in security policy: SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'contents' permission set to 'read': .github/workflows/docker-publish.yml:26","Warn: no topLevel permission defined: .github/workflows/codeql-analysis.yml:1","Warn: no topLevel permission defined: .github/workflows/docker-image.yml:1","Warn: no topLevel permission defined: .github/workflows/docker-publish.yml:1","Warn: no topLevel permission defined: .github/workflows/go.yml:1","Warn: no topLevel permission defined: .github/workflows/greetings.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v1.3.1 not signed: https://api.github.com/repos/hahwul/mzap/releases/121538514","Warn: release artifact v1.3.0 not signed: https://api.github.com/repos/hahwul/mzap/releases/57937077","Warn: release artifact v1.2.0 not signed: https://api.github.com/repos/hahwul/mzap/releases/56691655","Warn: release artifact v1.1.4 not signed: https://api.github.com/repos/hahwul/mzap/releases/33907384","Warn: release artifact v1.3.1 does not have provenance: https://api.github.com/repos/hahwul/mzap/releases/121538514","Warn: release artifact v1.3.0 does not have provenance: https://api.github.com/repos/hahwul/mzap/releases/57937077","Warn: release artifact v1.2.0 does not have provenance: https://api.github.com/repos/hahwul/mzap/releases/56691655","Warn: release artifact v1.1.4 does not have provenance: https://api.github.com/repos/hahwul/mzap/releases/33907384"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Pinned-Dependencies","score":4,"reason":"dependency not pinned by hash detected -- score normalized to 4","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/hahwul/mzap/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/hahwul/mzap/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:53: update your workflow using https://app.stepsecurity.io/secureworkflow/hahwul/mzap/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:67: update your workflow using https://app.stepsecurity.io/secureworkflow/hahwul/mzap/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/docker-image.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/hahwul/mzap/docker-image.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/docker-publish.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/hahwul/mzap/docker-publish.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/docker-publish.yml:40: update your workflow using https://app.stepsecurity.io/secureworkflow/hahwul/mzap/docker-publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/hahwul/mzap/go.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/hahwul/mzap/go.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/greetings.yml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/hahwul/mzap/greetings.yml/master?enable=pin","Warn: containerImage not pinned by hash: Dockerfile:2","Warn: containerImage not pinned by hash: Dockerfile:10: pin your Docker image by updating debian:buster to debian:buster@sha256:58ce6f1271ae1c8a2006ff7d3e54e9874d839f573d8009c20154ad0f2fb0a225","Warn: containerImage not pinned by hash: github-action/Dockerfile:1: pin your Docker image by updating hahwul/mzap:v1.3.1 to hahwul/mzap:v1.3.1@sha256:0d8767c30fcb646b1395ecf1198b7e3e1b0438faa756ce6d444c4c5f89cb58bc","Warn: downloadThenRun not pinned by hash: .github/workflows/go.yml:31","Info:   0 out of   9 GitHub-owned GitHubAction dependencies pinned","Info:   4 out of   5 third-party GitHubAction dependencies pinned","Info:   0 out of   3 containerImage dependencies pinned","Info:   2 out of   2 goCommand dependencies pinned","Info:   0 out of   1 downloadThenRun dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":7,"reason":"SAST tool detected but not run on all commits","details":["Info: SAST configuration detected: CodeQL","Warn: 0 commits out of 8 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-19T08:38:59.357Z","repository_id":54434021,"created_at":"2025-08-19T08:38:59.357Z","updated_at":"2025-08-19T08:38:59.357Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29946463,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-28T17:57:52.716Z","status":"ssl_error","status_checked_at":"2026-02-28T17:57:31.974Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bugbounty","dast","hacking","security","zaproxy","zaproxy-automation"],"created_at":"2024-08-04T17:01:02.652Z","updated_at":"2026-02-28T18:00:43.128Z","avatar_url":"https://github.com/hahwul.png","language":"Go","funding_links":["https://paypal.me/hahwul","https://www.buymeacoffee.com/hahwul"],"categories":["Go (531)","Go"],"sub_categories":[],"readme":"# mzap\n\n`mzap` is a Crystal CLI for multi-target ZAP scanning.\nIt dispatches targets across one or more ZAP API hosts, supports optional wait mode, and can export reports.\n\n## Features\n\n- Multiple scan commands: `spider`, `ajaxspider`, `ascan`\n- Multi-host dispatch with round-robin scheduling\n- Optional wait/poll mode with timeout support\n- Report export (`html`/`pdf`) with fallback behavior\n- Stop commands for `spider`, `ajaxspider`, `ascan`, or `all`\n- Optional config loading from `$HOME/.config/mzap/config.toml` and legacy paths\n\n## Requirements\n\n- Crystal `\u003e= 1.19.1`\n- A running ZAP API endpoint (or endpoints)\n\n## Installation\n\n### Homebrew\n\n```bash\nbrew install hahwul/mzap/mzap\n```\n\n### Build From Source\n\n```bash\nshards install --frozen\ncrystal build --release src/mzap_cli.cr -o bin/mzap\n```\n\n### Run Without Building\n\n```bash\ncrystal run src/mzap_cli.cr -- version\n```\n\n### Docker Image\n\n```bash\ndocker build -t mzap .\ndocker run --rm -v \"$PWD:/work\" mzap spider --urls /work/samples/target.txt --apis http://host.docker.internal:8090\n```\n\n## Usage\n\n```text\nUsage:\n  mzap [command]\n\nSubcommands:\n  ajaxspider  Start Ajax Spider scans in ZAP\n  ascan       Start Active Scan jobs in ZAP\n  help        Show help for a command\n  spider      Start Spider scans in ZAP\n  stop        Stop running scans\n  version     Show mzap version\n\nFlags:\n  --apikey string        ZAP API key (omit when API key auth is disabled)\n  --apis string          Comma-separated ZAP API host URLs\n                         e.g. --apis http://localhost:8090,http://192.168.0.4:8090 (default \"http://localhost:8090\")\n  --config string        Config file path (TOML supported; default: $HOME/.config/mzap/config.toml)\n  --report-format        Report format after scan completion (html/pdf)\n  --report-out           Report output path (default: mzap-report-\u003ctimestamp\u003e.\u003cext\u003e)\n  --wait                 Wait for initiated scans to complete\n  --wait-interval        Poll interval in seconds while waiting (default 2)\n  --wait-timeout         Wait timeout in seconds (default 0: no timeout)\n  -h, --help             Show help for mzap\n  --urls string          Path to URL list file (e.g. --urls hosts.txt)\n```\n\n## Examples\n\n```bash\n# spider scan with two ZAP API hosts\nmzap spider --urls samples/target.txt --apis http://localhost:8090,http://192.168.0.4:8090\n\n# run scan, wait for completion, and generate an HTML report\nmzap spider --urls samples/target.txt --apis http://localhost:8090 --wait --report-format html --report-out reports/mzap.html\n\n# stop all running scan types\nmzap stop all --apis http://localhost:8090\n```\n\n## Config\n\n`mzap` automatically loads config when present.\nPriority is:\n\n1. Explicit `--config` path (if it exists)\n2. `$HOME/.config/mzap/config.toml`\n3. `$HOME/.config/mzap/config` + extension variants\n4. `$HOME/.mzap` + extension variants\n\nCLI flags always override config values.\n\n```toml\n[mzap]\napis = [\"http://localhost:8090\", \"http://192.168.0.4:8090\"]\napikey = \"your-zap-api-key\"\nurls = \"samples/target.txt\"\nwait = true\nwait_interval = 2\nwait_timeout = 0\nreport_format = \"html\"\nreport_out = \"reports/mzap.html\"\n```\n\n## GitHub Action\n\nThis repository includes a Docker-based GitHub Action (`action.yml`).\n\n```yaml\n- name: Run mzap\n  uses: hahwul/mzap@\u003ctag\u003e\n  with:\n    arguments: \"spider --urls samples/target.txt --apis http://localhost:8090\"\n```\n\n## Development\n\n```bash\n# tests\ncrystal spec\n\n# release build\ncrystal build --release src/mzap_cli.cr -o bin/mzap\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhahwul%2Fmzap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhahwul%2Fmzap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhahwul%2Fmzap/lists"}