loading
loading
Utilities
Execute a custom shell script inside one or more Docker images.
overview
docker-exec-sh takes an image-list and a script-to-be-executed file, runs that script inside each image, and collects whatever it writes into a FOLDER.
Reach for it when a tool ships only as a container and has no dedicated node. The script owns the behavior: install, scan, transform, or chain commands in the image environment.
One image-list can fan the same script across multiple images, useful for comparing tool versions or checking a set of base images in a single pass.
use cases
Point the script at an image's binary and run it in place, so a tool that ships only as a Docker image becomes a reusable workflow step with folder output.
Feed an image-list to run the same script against each image, handy for comparing tool versions or checking a set of base images in a single pass.
Run a container-only scanner or parser mid-workflow and hand its output folder to the next node, with no rebuild of that tool as a native node.
Test a tool's command line inside its own image first, then promote it to a dedicated node once the workflow shape has settled.
reference
| Name | Type | Flag | Description |
|---|---|---|---|
| image-list | FILE | · | List of Docker images, one per line, where the script runs. |
| script-to-be-executed | FILE | · | Shell script executed inside each image from the list. |
Showing key inputs. docker-exec-sh exposes 2 inputs in total.
example
# docker-exec-sh runs script-to-be-executed inside each image in image-list# image-list: trickest/nuclei:latest# script-to-be-executed:nuclei -u https://example.com -severity critical,high -o /output/findings.txt[docker-exec-sh] image-list: 2 images[docker-exec-sh] trickest/httpx:latest -> running scripthttps://example.com [200] [Example Domain] [nginx]https://staging.example.com [200] [Staging] [nginx][docker-exec-sh] trickest/httpx:v1.6.0 -> running scripthttps://example.com [200] [Example Domain] [nginx][docker-exec-sh] collected output/ (2 images, exit 0)guidance
Use docker-exec-sh when the tool you need ships as a Docker image and has no native node. Write the script, list the image, and collect the FOLDER output. Prefer a dedicated node when one already exists for cleaner inputs and outputs.
Utilities helper for workflow checks. docker-exec-sh runs an arbitrary container command, not a check.
Stream utility for deduplicating lines. Sibling utility for a narrower job.
faq
related
Spider a URL and return a wordlist for password crackers.
Wordlist and mined-word subdomain permutation.
CSS selectors over HTML, the jq counterpart for markup.
Extract chosen URL parts from stdin into clean line lists.
Import, export, and upsert workflow data against an Airtable base.
Decode Android APK files into smali sources and resources.
An image list and a script feed docker-exec-sh, which runs the script inside each image and writes the collected output as a queryable folder.
Facts on this page come from the live Trickest tool library.