Release v4.6.0

This commit is contained in:
j3ssie
2023-09-07 21:21:14 +07:00
commit 89a7d36df3
138 changed files with 18980 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
name: loop-step
report:
final:
- "/tmp/ott/source.txt"
steps:
- scripts:
- "ExecCmd('mkdir -p /tmp/ott/')"
- "ExecCmd('seq 4 > /tmp/ott/source.txt')"
- source: '/tmp/ott/source.txt'
threads: '{{ 9 / 2 }}'
commands:
- "echo '---> {{line}} '"
- "sleep 1 && echo '---> done {{line}}'"
- scripts:
- "ExecCmd('sleep 3')"
- "ExecCmd('echo '<======')"
@@ -0,0 +1,15 @@
name: markdown-generate
desc: HTML report generator based on markdown template
# go run main.go scan -m test-workflows/test-module/markdown-generate.yaml --debug -t target.io
report:
final:
- "{{Output}}/subdomain/final-{{Workspace}}.txt"
- "{{Output}}/vuln/active/{{Workspace}}-report.html"
- "{{Output}}/vuln/active/jaeles-summary.txt"
steps:
- scripts:
- GenMarkdownReport("{{Data}}/markdown/general-template.md", "{{Output}}/summary.html")
- GenMarkdownReport("{{Data}}/markdown/simple-template.md", "{{Output}}/simple.html")
+20
View File
@@ -0,0 +1,20 @@
name: test-ose
desc: test-ose
steps:
# get data from cdn
- ose:
# run the script directly
- |
if (FileLength('/tmp/ott/sam') > 0) {
ExecCmd('touch /tmp/ott/from-ose && sleep 10')
}
# run the script directly
- |
if (FileLength('/tmp/ott/sam') > 0) {
ExecCmdB('touch /tmp/ott/after-5-ose && sleep 10');
ExecCmdB('touch /tmp/ott/after-10-ose');
}
# this will get JS file from ~/osmedeus-plugins/ose/sample.js
- sample.js
+8
View File
@@ -0,0 +1,8 @@
name: s3-cdn
steps:
- scripts:
- "ExecCmd('mkdir -p /tmp/ott/')"
- "ExecCmd('seq 10 > /tmp/ott/source.txt')"
- "UploadToS3('/tmp/ott/on-s3.txt')"
- "DownloadFromS3('/tmp/ott/on-s3.txt', '/tmp/on-local-s3.txt')"
+9
View File
@@ -0,0 +1,9 @@
name: set OS Variable
steps:
- scripts:
- "SetOSVar('FROM_OSM', 'IS_TRUE')"
- commands:
- echo "=> \$FROM_OSM = $FROM_OSM"
@@ -0,0 +1,18 @@
name: partest
desc: partest
params:
- testFile: "/tmp/partest.txt"
- splitLines: "10"
steps:
- required:
- "{{testFile}}"
scripts:
- SplitFile("{{testFile}}", "{{Workspace}}-index", {{splitLines}}, "/tmp/pt")
- label: 'Parallel test'
source: "{{testFile}}"
parallel: 1
commands:
- "echo [[.line]]"
@@ -0,0 +1,14 @@
name: with-threads-hold
steps:
- commands:
- "echo 'calc ---> {{ 5555 * threads}} '"
scripts:
- "ExecCmd('mkdir -p /tmp/ott/')"
- "ExecCmd('seq 10 > /tmp/ott/source.txt')"
- source: '/tmp/ott/source.txt'
threads: '2'
commands:
- "echo '---> {{ 2 * threads}} '"
# - "sleep 1 && echo '---> done [[.line]]'"