assets

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2025 License: GPL-3.0 Imports: 27 Imported by: 0

README

server/assets

Overview

Server-side embedded assets such as default profiles and resources. Packages default configurations, templates, and scripts for distribution. Key routines cover assets helpers, assets darwin amd64, assets darwin arm64, and assets linux amd64 within the assets subsystem.

Go Files

  • assets-helpers.go – Provides helper functions for locating and loading embedded server assets.
  • assets.go – Registers asset bundles and exposes filesystem abstractions.
  • assets_darwin_amd64.go – Embeds macOS amd64 asset blobs.
  • assets_darwin_arm64.go – Embeds macOS arm64 asset blobs.
  • assets_linux_amd64.go – Embeds Linux amd64 asset blobs.
  • assets_linux_arm64.go – Embeds Linux arm64 asset blobs.
  • assets_windows_amd64.go – Embeds Windows amd64 asset blobs.

Sub-packages

  • traffic-encoders/ – Managed traffic encoder templates bundled with the server. Provides default encoder definitions and related tests.

Documentation

Index

Constants

View Source
const (
	// GoDirName - The directory to store the go compiler/toolchain files in
	GoDirName = "go"
)

Variables

This section is empty.

Functions

func English

func English() []string

English - Extracts the english dictionary for the english encoder

func GetChunkDataDir

func GetChunkDataDir() string

GetChunkDataDir - Get the Sliver chunk data dir, default is: ~/.sliver/crack/chunks/

func GetGPGPublicKey

func GetGPGPublicKey() (*packet.PublicKey, error)

GetGPGPublicKey - Return the GPG public key from assets

func GetRootAppDir

func GetRootAppDir() string

GetRootAppDir - Get the Sliver app dir, default is: ~/.sliver/

func GetTrafficEncoderDir

func GetTrafficEncoderDir() string

GetTrafficEncoderDir - Get the Sliver traffic encoder dir, default is: ~/.sliver/traffic-encoders/

func GetZigDir

func GetZigDir() string

GetZigDir

func Setup

func Setup(force bool, echo bool)

Setup - Extract or create local assets

func SetupGoPath

func SetupGoPath(goPathSrc string, includeDNS bool) error

SetupGoPath - Extracts dependencies to goPathSrc

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL