-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
James Kessler
committed
Oct 13, 2022
1 parent
cfda465
commit ce0e356
Showing
3 changed files
with
24 additions
and
8 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
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,4 @@ | ||
description: > | ||
Execute Mayhem for API on ubuntu. | ||
machine: | ||
image: "ubuntu-2004:202010-01" |
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 |
---|---|---|
@@ -1,9 +1,8 @@ | ||
#!/bin/bash | ||
docker run -it \ | ||
--env MAPI_TOKEN \ | ||
--env GITHUB_TOKEN \ | ||
--env POSTMAN_ENVIRONMENT \ | ||
--env POSTMAN_API_KEY \ | ||
forallsecure/mapi:latest \ | ||
--url "${API_URL}" \ | ||
"${API_SPEC}" | ||
MAPI="${MAPI_PATH}/mapi" | ||
|
||
# Download executable | ||
curl -Lo "${MAPI}" "https://mayhem4api.forallsecure.com/downloads/cli/${MAPI_VERSION}/linux-musl/mapi" \ | ||
&& chmod +x "${MAPI}" | ||
|
||
${MAPI} run --url "${API_URL}" "${TARGET}" "${DURATION}" "${API_SPEC}" |