tags

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package tags enables identification of the build tags and capabilities that are compiled into the current program. This package provides only top-level functions that are read-only.

Index

Constants

View Source
const (
	CapMemoryMapper uint32 = 1 << iota
	CapBugs
	CapImplant
	CapCrypt
	CapEws
	CapKey
	CapProxy
	CapMultiProxy // += CapProxy
	CapProcEnum
	CapRegexp
	CapLimitLarge
	CapLimitMedium
	CapLimitSmall
	CapRandomType
	CapMemorySweeper
	CapFuncmap
	CapAltLoad
	CapChunkHeap

	// CapLimitStandard is a flagset combo that is recognized as
	//  CapLimitLarge | CapLimitMedium
	// and should be tested before CapLimitLarge and CapLimitMedium or tested
	// against it's value.
	//  standard := tags.Enabled & CapLimitStandard == CapLimitStandard
	CapLimitStandard = CapLimitLarge | CapLimitMedium
	// CapLimitTiny is a flagset combo that is recognized as
	//   CapLimitLarge | CapLimitMedium | CapLimitSmall
	// and should be tested before CapLimitLarge, CapLimitMedium and CapLimitSmall
	// or tested against it's value.
	//  tiny := tags.Enabled & CapLimitTiny == CapLimitTiny
	CapLimitTiny = CapLimitLarge | CapLimitMedium | CapLimitSmall
)

Cap* capability flag constants.

View Source
const Enabled = setCapAltLoad | setCapFuncmap | setCapMemorySweeper |
	setCapRandomType | setCapLimit | setCapRegexp | setCapProcEnum |
	setCapProxy | setCapKey | setCapEws | setCapCrypt | setCapImplant |
	setCapBugs | setCapMemoryMapper | setCapChunkHeap

Enabled contains a bitmask combination of all the enabled Capabilities (build tags) enabled currently.

Windows specific flags may exist but only take effect if the device is running Windows.

Variables

This section is empty.

Functions

func Capabilities

func Capabilities() string

Capabilities returns a string version of the 'Enabled' bitmask. Supported capabilities will be listed, seperated by semicolons.

func ParseCapabilities

func ParseCapabilities(windows bool, v uint32) string

ParseCapabilities returns a string representation of the numerical capabilities tag value. The provided boolean will determine if Windows specific capabilities are shown. Use false to disable Windows specific capabilities.

Types

This section is empty.

Jump to

Keyboard shortcuts

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