# Rayder | A Lightweight Tool For Orchestrating And Organizing Your Bug Hunting Recon

**URL:** <https://onehack.st/t/rayder-a-lightweight-tool-for-orchestrating-and-organizing-your-bug-hunting-recon/273584>\
**Category:** Tools & Scripts\
**Tags:** programming, hacking, self-improvement\
**Created:** [January 27, 2024, 9:08pm UTC](https://onehack.st/t/rayder-a-lightweight-tool-for-orchestrating-and-organizing-your-bug-hunting-recon/273584 "2024-01-27T21:08:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BlueHacker](https://onehack.st/user_avatar/onehack.st/bluehacker/32/174721_2.png) [@BlueHacker](https://onehack.st/u/BlueHacker)\
**Post date:** [January 27, 2024, 9:08pm UTC](https://onehack.st/t/rayder-a-lightweight-tool-for-orchestrating-and-organizing-your-bug-hunting-recon/273584/1 "2024-01-27T21:08:30Z")

</div>

![image](https://onehack.st/uploads/default/original/3X/3/7/3749cf6891d76f6d04ba7ecb524cb10019c2e5d1.png)

# Rayder

**A lightweight tool for orchestrating and organizing your command-line workflows**

[About](https://github.com/devanshbatham/rayder#about) • [Installation](https://github.com/devanshbatham/rayder#installation) • [Usage](https://github.com/devanshbatham/rayder#usage) • [Workflow Configuration](https://github.com/devanshbatham/rayder#workflow-configuration) • [Parallel Execution](https://github.com/devanshbatham/rayder#parallel-execution) • [Workflows](https://github.com/devanshbatham/rayder#workflows)

[![rayder](https://github.com/devanshbatham/rayder/raw/main/static/banner.png?raw=true)](https://github.com/devanshbatham/rayder/blob/main/static/banner.png?raw=true)

## About

Rayder is a command-line tool designed to simplify the orchestration and execution of workflows. It allows you to define a series of modules in a YAML file, each consisting of commands to be executed. Rayder helps you automate complex processes, making it easy to streamline repetitive modules and execute them parallelly if the commands do not depend on each other.

## Installation

To install Rayder, ensure you have Go (1.16 or higher) installed on your system. Then, run the following command:

go install [github.com/devanshbatham/rayder@v0.0.4](http://github.com/devanshbatham/rayder@v0.0.4)

## Usage

Rayder offers a straightforward way to execute workflows defined in YAML files. Use the following command:

rayder -w path/to/workflow.yaml

## Workflow Configuration

A workflow is defined in a YAML file with the following structure:

vars: VAR\_NAME: value # Add more variables… parallel: true|false modules: - name: task-name cmds: - command-1 - command-2 # Add more commands… silent: true|false # Add more modules…

## Using Variables in Workflows

Rayder allows you to use variables in your workflow configuration, making it easy to parameterize your commands and achieve more flexibility. You can define variables in the `vars` section of your workflow YAML file. These variables can then be referenced within your command strings using double curly braces (`{{}}`).

### Defining Variables

To define variables, add them to the `vars` section of your workflow YAML file:

vars: VAR\_NAME: value ANOTHER\_VAR: another\_value # Add more variables…

### Referencing Variables in Commands

You can reference variables within your command strings using double curly braces (`{{}}`). For example, if you defined a variable `OUTPUT_DIR`, you can use it like this:

modules: - name: example-task cmds: - echo “Output directory {{OUTPUT\_DIR}}”

### Supplying Variables via the Command Line

You can also supply values for variables via the command line when executing your workflow. Use the format `VARIABLE_NAME=value` to provide values for specific variables. For example:

rayder -w path/to/workflow.yaml VAR\_NAME=new\_value ANOTHER\_VAR=updated\_value

If you don’t provide values for variables via the command line, Rayder will automatically apply default values defined in the `vars` section of your workflow YAML file.

Remember that variables supplied via the command line will override the default values defined in the YAML configuration.

## Example

### Example 1:

Here’s an example of how you can define, reference, and supply variables in your workflow configuration:

vars: ORG: “[example.org](http://example.org)” OUTPUT\_DIR: “results” modules: - name: example-task cmds: - echo “Organization {{ORG}}” - echo “Output directory {{OUTPUT\_DIR}}”

When executing the workflow, you can provide values for `ORG` and `OUTPUT_DIR` via the command line like this:

rayder -w path/to/workflow.yaml ORG=custom\_org OUTPUT\_DIR=custom\_results\_dir

This will override the default values and use the provided values for these variables.

### Example 2:

Here’s an example workflow configuration tailored for reverse whois recon and processing the root domains into subdomains, resolving them and checking which ones are alive:

vars: ORG: “Acme, Inc” OUTPUT\_DIR: “results-dir” parallel: false modules: - name: reverse-whois silent: false cmds: - mkdir -p {{OUTPUT\_DIR}} - revwhoix -k “{{ORG}}” \> {{OUTPUT\_DIR}}/root-domains.txt - name: finding-subdomains cmds: - xargs -I {} -a {{OUTPUT\_DIR}}/root-domains.txt echo “subfinder -d {} -o {}.out” | quaithe -workers 30 silent: false - name: cleaning-subdomains cmds: - cat \*.out \> {{OUTPUT\_DIR}}/root-subdomains.txt - rm \*.out silent: true - name: resolving-subdomains cmds: - cat {{OUTPUT\_DIR}}/root-subdomains.txt | dnsx -silent -threads 100 -o {{OUTPUT\_DIR}}/resolved-subdomains.txt silent: false - name: checking-alive-subdomains cmds: - cat {{OUTPUT\_DIR}}/resolved-subdomains.txt | httpx -silent -threads 1000 -o {{OUTPUT\_DIR}}/alive-subdomains.txt silent: false

To execute the above workflow, run the following command:

rayder -w path/to/reverse-whois.yaml ORG=“Yelp, Inc” OUTPUT\_DIR=results

## Parallel Execution

The `parallel` field in the workflow configuration determines whether modules should be executed in parallel or sequentially. Setting `parallel` to `true` allows modules to run concurrently, making it suitable for modules with no dependencies. When set to `false`, modules will execute one after another.

## Workflows

Explore a collection of sample workflows and examples in the [Rayder workflows repository](https://github.com/devanshbatham/rayder-workflows). Stay tuned for more additions!

## Inspiration

Inspiration of this project comes from Awesome [taskfile](https://taskfile.dev/) project.

## GitHub:

> **[GitHub - devanshbatham/rayder: A lightweight tool for orchestrating and...](https://github.com/devanshbatham/rayder)**
>
> A lightweight tool for orchestrating and organizing your bug hunting recon / pentesting command-line workflows
