mirror of
https://github.com/j3ssie/osmedeus.git
synced 2026-08-24 08:32:27 +02:00
69 lines
1.4 KiB
YAML
69 lines
1.4 KiB
YAML
name: test-decision-switch
|
|
kind: module
|
|
description: Test workflow demonstrating switch/case decision syntax
|
|
|
|
params:
|
|
- name: target_type
|
|
type: string
|
|
default: "domain"
|
|
|
|
steps:
|
|
- name: detect-type
|
|
type: bash
|
|
command: echo "{{target_type}}"
|
|
exports:
|
|
detected_type: "{{target_type}}"
|
|
decision:
|
|
switch: "{{detected_type}}"
|
|
cases:
|
|
"domain":
|
|
goto: subdomain-enum
|
|
"ip":
|
|
goto: port-scan
|
|
"cidr":
|
|
goto: network-scan
|
|
"url":
|
|
goto: web-scan
|
|
default:
|
|
goto: generic-recon
|
|
|
|
- name: subdomain-enum
|
|
type: bash
|
|
command: echo "Running subdomain enumeration for {{target}}"
|
|
decision:
|
|
switch: "always"
|
|
cases:
|
|
"always":
|
|
goto: _end
|
|
|
|
- name: port-scan
|
|
type: bash
|
|
command: echo "Running port scan for {{target}}"
|
|
decision:
|
|
switch: "always"
|
|
cases:
|
|
"always":
|
|
goto: _end
|
|
|
|
- name: network-scan
|
|
type: bash
|
|
command: echo "Running network scan for {{target}}"
|
|
decision:
|
|
switch: "always"
|
|
cases:
|
|
"always":
|
|
goto: _end
|
|
|
|
- name: web-scan
|
|
type: bash
|
|
command: echo "Running web scan for {{target}}"
|
|
decision:
|
|
switch: "always"
|
|
cases:
|
|
"always":
|
|
goto: _end
|
|
|
|
- name: generic-recon
|
|
type: bash
|
|
command: echo "Running generic reconnaissance for {{target}}"
|