run

package
v0.0.0-...-f0a4a60 Latest Latest
Warning

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

Go to latest
Published: May 9, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Copyright © 2020 GUILLAUME FOURNIER

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

View Source
var SSHProbeCmd = &cobra.Command{
	Use:   "ssh-probe",
	Short: "ssh-probe is a ssh session tracker based on eBPF, that can be used to mitigate the impact of stolen credentials",
	Long: `ssh-probe is a ssh session tracker based on eBPF, that can be used to mitigate the impact of stolen credentials

ssh-probe relies on eBPF to track ssh sessions at runtime. More information about the project can be found on github: https://github.com/Gui774ume/ssh-probe`,
	RunE:    runSSHProbeCmd,
	Example: "sudo ssh-probe --profiles /tmp/profiles",
}

SSHProbe represents the base command of ssh-probe

Functions

This section is empty.

Types

type AccessControlEventsLevelSanitizer

type AccessControlEventsLevelSanitizer struct {
	// contains filtered or unexported fields
}

func NewAccessControlEventsLevelSanitizer

func NewAccessControlEventsLevelSanitizer(sanitizedLevel *model.Action) *AccessControlEventsLevelSanitizer

NewAccessControlEventsLevelSanitizer creates a new instance of AccessControlEventsLevelSanitizer.

func (*AccessControlEventsLevelSanitizer) Set

func (*AccessControlEventsLevelSanitizer) String

func (*AccessControlEventsLevelSanitizer) Type

type CLIOptions

type CLIOptions struct {
	AccessControlEventsLevel model.Action
	LogLevel                 logrus.Level
	Profiles                 string
	DisableGlobalMFAScope    bool
	AgentURL                 string
}

CLIOptions are the command line options of ssh-probe

type LogLevelSanitizer

type LogLevelSanitizer struct {
	// contains filtered or unexported fields
}

LogLevelSanitizer is a log level sanitizer that ensures that the provided log level exists

func NewLogLevelSanitizer

func NewLogLevelSanitizer(sanitizedLevel *logrus.Level) *LogLevelSanitizer

NewLogLevelSanitizer creates a new instance of LogLevelSanitizer. The sanitized level will be written in the provided logurs level

func (*LogLevelSanitizer) Set

func (lls *LogLevelSanitizer) Set(val string) error

func (*LogLevelSanitizer) String

func (lls *LogLevelSanitizer) String() string

func (*LogLevelSanitizer) Type

func (lls *LogLevelSanitizer) Type() string

type PathSanitizer

type PathSanitizer struct {
	// contains filtered or unexported fields
}

PathSanitizer is a path sanitizer that ensures that the provided path exists

func NewPathSanitizer

func NewPathSanitizer(sanitizedPath *string) *PathSanitizer

NewPathSanitizer creates a new instance of PathSanitizer. The sanitized path will be written in the provided string

func (*PathSanitizer) Set

func (ps *PathSanitizer) Set(val string) error

func (*PathSanitizer) String

func (ps *PathSanitizer) String() string

func (*PathSanitizer) Type

func (ps *PathSanitizer) Type() string

Jump to

Keyboard shortcuts

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