testelf

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package testelf builds the small ELF executables the sshole tests read.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ELF

func ELF(interp string, needed []string, extra ...string) []byte

ELF builds a little-endian ELF64 executable with an optional PT_INTERP, a .dynamic section listing needed libraries, and extra bytes (the strings an sshd carries) in a data section.

func SSHDStrings

func SSHDStrings(release string, helpers ...string) []string

SSHDStrings are what an Alpine 10.0 listener carries.

Types

This section is empty.

Jump to

Keyboard shortcuts

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