-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from dreadnode/examples/info-gathering-katana
docs: katana example
- Loading branch information
Showing
1 changed file
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} |