mirror of
https://github.com/SpecterOps/Nemesis
synced 2026-06-08 12:36:42 +00:00
772b3ad3d3
- Fix for nemesis-submit container
17 lines
921 B
Bash
Executable File
17 lines
921 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Pulls down the specterops/nemesis-submit image that has the necessary Poetry/reqs
|
|
# installed for ./script/submit_to_nemesis.sh, which functions as the entry point
|
|
|
|
if ! test -f submit_to_nemesis.yaml; then
|
|
# first download the submit config if it doesn't exist
|
|
wget https://raw.githubusercontent.com/SpecterOps/Nemesis/e8a75a5adac1ca93d3ddc5f144306071c302064c/cmd/enrichment/enrichment/cli/submit_to_nemesis/submit_to_nemesis.yaml
|
|
fi
|
|
|
|
echo -e "\nEdit './submit_to_nemesis.yaml' to reflect your Nemesis instance."
|
|
echo -e " NOTE: localhost/127.0.0.1 will not work for the Nemesis URL within the container."
|
|
echo -e " You must use a proper IP/hostname resolvable from the Docker container.\n"
|
|
echo -e "Files copied into $PWD/submit/ will be submitted to Nemesis.\n"
|
|
|
|
docker run -it -v "$PWD/submit_to_nemesis.yaml":/config.yaml -v "$PWD/submit/":/submit/ specterops/nemesis-submit
|