-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add fetchuri example; fixed typo in ignore-errors
- Loading branch information
Showing
3 changed files
with
45 additions
and
1 deletion.
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,33 @@ | ||
# Using the FetchURI Step in TTPs | ||
|
||
Discover how to effectively employ the `FetchURI` step in TTPs to fetch content | ||
from a specific URI and store it in a file. | ||
|
||
--- | ||
|
||
## Running `fetchuri-example.yaml` Demonstration | ||
|
||
To observe the functionality of the `FetchURI` step in action, execute: | ||
|
||
```bash | ||
ttpforge run forgearmory//examples/fetchuri/fetchuri.yaml | ||
``` | ||
|
||
--- | ||
|
||
## Expected Output | ||
|
||
```text | ||
INFO [*] Validating Steps | ||
INFO [+] Finished validating steps | ||
INFO [+] Running current TTP: fetchuri_step_example | ||
INFO [+] Running current step: fetch-google-and-store-in-file | ||
INFO ========= Executing ========== | ||
INFO ========= Result ========== | ||
INFO [+] Finished running step: fetch-google-and-store-in-file | ||
INFO [*] Completed TTP | ||
INFO [*] Beginning Cleanup | ||
INFO ========= Executing ========== | ||
INFO ========= Result ========== | ||
INFO [*] Finished Cleanup | ||
``` |
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,11 @@ | ||
--- | ||
name: fetchuri_step_example | ||
description: Illustrates how to employ the FetchURI step. | ||
|
||
steps: | ||
- name: fetch-google-and-store-in-file | ||
fetch_uri: https://google.com | ||
location: ./google.txt | ||
overwrite: true | ||
cleanup: | ||
inline: rm google.txt |
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