RedVars - Live Target Variables

approvedunreviewed

by sideswipe

Collapsible side panel for filling in hacking/security variable values (LHOST, RHOST, passwords, hashes …) that are live-substituted inside code blocks in Reading View. Copy buttons paste the real values, not the placeholders.

Updated today

RedVars – Live Target Variables

An Obsidian plugin for penetration testers and security researchers.

Fill in target values once in the right-side panel — IP addresses, ports, hashes, domain names, credentials — and every {{VAR}} placeholder inside your notes' code blocks is replaced live in Reading View. Copy buttons on code blocks paste the substituted values, not the raw placeholders.

RedVars panel screenshot


Features

  • 70+ built-in variables across 10 security categories: Attacker, Target Network, Active Directory, Credentials & Hashes, Shells & Payloads, Lateral Movement, Exfiltration, Recon, Web Hacking, Wireless
  • Live substitution in Reading View — values update instantly as you type, no reload needed
  • Custom variables — add your own {{VAR}} names with descriptions, organised into custom sections you can create and rename
  • Smart copy — Obsidian's code block copy button pastes the real values (strips line numbers from themed code blocks too)
  • Compact collapsible panel — each category is a collapsible <details> block; fits neatly in a narrow side pane
  • Persistent — values survive Obsidian restarts via the plugin's data.json

Installation

Community Plugin Store (recommended)

  1. Open Obsidian → Settings → Community plugins → Browse
  2. Search for RedVars
  3. Click Install then Enable

Manual

  1. Download main.js, manifest.json, and styles.css from the latest release
  2. Create folder <your-vault>/.obsidian/plugins/redvars/
  3. Copy the three files into that folder
  4. Open Obsidian → Settings → Community plugins → enable RedVars – Live Target Variables

Usage

Opening the panel

  • Click the crosshair (⊕) icon in the left ribbon
  • Or run the command Open Live Target Variables panel from the Command Palette

Setting values

Type into the input next to any variable name. Changes are auto-saved after 400 ms and immediately reflected in all open Reading View notes.

Using placeholders in notes

Wrap any variable ID in double curly braces inside a fenced code block:

```bash
evil-winrm -u {{USERNAME}} -H {{NTLM_HASH}} -i {{RHOST}}
```

Filled variables render in green; empty ones stay orange so you know what still needs a value.

Custom variables & sections

At the bottom of the panel:

  • New section row — type a section name and press + Section to create a named group
  • Add variable row — type a VAR_NAME, optional description, pick a section from the dropdown, press + Var
  • Hover a custom section header to reveal ✎ rename and ✕ delete controls

Variable reference

CategoryExample variables
Attacker (Global)LHOST LPORT ATTACKER_IFACE WORDLIST_DIR
Target NetworkRHOST RPORT TARGET_HOSTNAME TARGET_FQDN DNS_IP
Active DirectoryDOMAIN DOMAIN_FQDN DC_IP AD_USER NTLM_HASH KERBEROS_TICKET DMSA_NAME SPN OU_PATH
Credentials & HashesUSERNAME PASSWORD HASH SSH_KEY TICKET_FILE
Shells & PayloadsPAYLOAD_OS PAYLOAD_FORMAT PAYLOAD_OUT CMD_PAYLOAD
Lateral MovementSERVICE_NAME SERVICE_PATH SHARE_IP TASK_NAME SESSION_ID
ExfiltrationEXFIL_IP EXFIL_PORT DATA_PATH
ReconTARGET_DOMAIN RECON_PROJECT SNMP_COMMUNITY
Web HackingWEB_URL WEB_PATH WEB_PARAM WORDLIST
WirelessBSSID CHANNEL ESSID WLAN_IFACE CAPTURE_FILE

License

MIT © sideswipeishacking

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.