Identifier / Programs / Linux and Unix
pyright
GTFOBins file-read 3 documented commands
How pyright is abused
file-read
--outputjsonfile-read
-wEach abuse is GTFOBins's category and the options and words it uses; the full write-up is on GTFOBins's page for pyright.
3 documented commands
file-read unprivileged, with sudo
Content is leaked as error messages.
pyright /path/to/input-fileIdentifyfile-read unprivileged, with sudo
Content is leaked as error messages in JSON format.
pyright --outputjson /path/to/input-fileIdentifyfile-read unprivileged, with sudo
Recursively walks directories, parsing all Python files and leaking some contents through diagnostics.
pyright -w /path/to/input-dir/IdentifyNone of the 3 commands the identifier reads trips a Sigma process-creation rule. These commands are, with GTFOBins’ notes, from GTFOBins, at commit acd524623f9c of 2026-05-27, under the GPL-3.0, with no warranty. Changed: Markdown is shown formatted. The source is in lolbas-gtfobins-commands.json.gz, and the full entry is on GTFOBins’s page for pyright. The identifier reads the line of each that runs pyright.