Utilities
Write an inline string to a file for downstream nodes
Workflow utility that writes a string to a file artifact.
overview
What string-to-file does
string-to-file takes one string and writes it to a FILE (plus FOLDER). Multi-line text becomes a multi-line file, so a handful of hosts or paths is a seed list in one step.
Operators use it when a downstream tool expects a file but the value is still a typed literal: one domain, a short config, a header block, or a tiny wordlist.
It is plumbing, not a scanner. Place it upstream of nodes that read a target file from disk (nuclei, masscan, ffuf). Prefer anew when you need to append and dedupe many files instead of writing one.
use cases
Where string-to-file fits
Seed a scan with one target
Write a single domain, URL, or IP to a file so a scanner that reads targets from disk can run without a separate input node.
Supply an inline config or header
Turn a short config, header block, or template into a file for a node that reads its settings from disk, without checking a file into a repo.
Create a small wordlist on the fly
Paste a handful of paths or words as a multi-line string to drive ffuf or another fuzzer without sourcing and mounting a full wordlist.
Bridge a literal into a file pipeline
Convert a typed value into a FILE artifact so downstream file-consuming nodes connect cleanly in the graph instead of expecting a raw string.
reference
string-to-file inputs and flags
| Name | Type | Flag | Description |
|---|---|---|---|
| string | STRING | · | The string to write to the output file. Multi-line text is written line for line, so it doubles as a quick target list or wordlist. |
Showing key inputs. string-to-file exposes 1 inputs in total.
example
Run string-to-file
# write a small seed list to a file the next node reads (nuclei -l, ffuf -input-file)string-to-file "example.comapp.example.comapi.example.comstaging.example.com198.51.100.10198.51.100.11203.0.113.5"$ cat out.txtexample.comapp.example.comapi.example.comstaging.example.com198.51.100.10198.51.100.11203.0.113.5guidance
Choosing string-to-file
Reach for string-to-file whenever a downstream node needs a FILE but you only have a literal string. It is plumbing, not a scanner. For combining or deduplicating many files instead of writing one, use a list utility like anew.
anew
Appends only new, unique lines to a file. Use it to grow a list; string-to-file creates one from a literal.
assert-tool
Small workflow utility that validates a condition rather than materializing a string as a file.
faq
string-to-file questions
related
More Utilities tools
cewl
Spider a URL and return a wordlist for password crackers.
dnsgen
Wordlist and mined-word subdomain permutation.
pup
CSS selectors over HTML, the jq counterpart for markup.
unfurl
Extract chosen URL parts from stdin into clean line lists.
whisper
Speech to txt, vtt, srt, and json from an audio file or folder.
youtube-transcript
Public caption tracks to transcript.txt and results.jsonl.
Run string-to-file yourself
A string feeds string-to-file, which writes it to disk as a file artifact the rest of the workflow can read.
Facts on this page come from the live Trickest tool library.