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

docs: katana example #14

Merged
merged 1 commit into from
Nov 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions cybersecurity/offensive/information-gathering/katana.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
description: Katana is a fast crawler focused on execution in automation pipelines offering both headless and non-headless crawling.

functions:
katana_headless_crawler:
description: "Crawls a target or list of targets in headless mode"
parameters:
target:
type: string
description: "target url / list to crawl"
examples:
- https://target.tld
- https://tesla.com,https://google.com

container:
image: projectdiscovery/katana # https://github.com/projectdiscovery/katana
args:
- --net=host

cmdline:
- katana
- -u
- ${target}
- -system-chrome
- -headless
- -sb
- -jsonl

katana_proxied_crawler_scope:
description: "Crawls a target or list of targets with a proxy and defined crawl scope using regex"
parameters:
target:
type: string
description: "target url / list to crawl"
examples:
- https://target.tld
- https://tesla.com,https://google.com
proxy:
type: string
description: The upstream proxy dstip and dstport
examples:
- http://127.0.0.1:8080 # burp default
crawl_scope:
type: string
description: For advanced scope control, -cs option can be used that comes with regex support.
examples:
- login

container: # https://github.com/projectdiscovery/katana
image: projectdiscovery/katana
args:
- --net=host

cmdline:
- katana
- -u
- ${target}
- -proxy
- ${proxy}
- -cs
- ${crawl_scope}