Piping

Home Getting Started Commands Concepts Data Sets Tools

What Is Piping

5hell supports piping, similar to other command-line environments. Piping sends the output of one command into the input of the next command on the same line.

Why It Matters

Example

With a file named targets in /root:

enum targets | enum -d dig

Result:

Dig executes on every IP on each new line in targets.

Walkthrough

  1. enum targets reads each target entry.
  2. The operator forwards that output.
  3. enum -d dig appends each entry to dig and executes.

Takeaway

Piping allows command chains where each stage transforms or consumes the previous stage output.