Skip to content

Commit

Permalink
Update monitor_folder_docker.sh script
Browse files Browse the repository at this point in the history
- Update script with more general Docker host addressing
  • Loading branch information
HarmJ0y committed Apr 1, 2024
1 parent 772b3ad commit 19561c9
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions scripts/monitor_folder_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@
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
sed -i 's|http://127.0.0.1:8080/api/|https://host.docker.internal:8080/api/|g' 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"
echo -e "\nEdit './submit_to_nemesis.yaml' to reflect your Nemesis instance and then restart this script!"
echo -e "\nFiles 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
docker run -it -v "$PWD/submit_to_nemesis.yaml":/config.yaml -v "$PWD/submit/":/submit/ --add-host=host.docker.internal:host-gateway -t specterops/nemesis-submit

0 comments on commit 19561c9

Please sign in to comment.