Payload environment

From Azban Wiki
Revision as of 13:33, 21 February 2020 by Eresse (talk | contribs) (Created page with "== Introduction == To make it easier to write powerful payload scripts regardless of the host's operating system, the environment is somewhat standardized. == Shell == The...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Introduction

To make it easier to write powerful payload scripts regardless of the host's operating system, the environment is somewhat standardized.

Shell

The shell in which the payload runs is a classic Bourne shell.

This is not the same as Bash!

Why not Bash?

The point of Azban is to be able to run the same way on as many systems as possible.

Therefore, the lowest common denominator is the classic Bourne shell.

Only Windows-based systems require downloading it (which is taken care of by the bootstrap stage before the payload is actually run).


Environment variables

$DKEY

The $DKEY environment variable is set to the device key of the Azban device running the payload.

This allows calling the backend easily, for example to collect assets