windowsconf

package
v0.0.0-...-f7150f6 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: GPL-2.0 Imports: 19 Imported by: 0

README

# About WinRM NTLM issue

https://github.com/dpotapov/winrm-auth-ntlm/issues

https://github.com/ThomsonReutersEikon/go-ntlm/ntlm is no longer available(404)... 
I have my local copy of the git repo so I can still build, but this is certainly problematic

# ntlm source

https://github.com/ThomsonReutersEikon/go-ntlm/ntlm

# winrm-auth-ntlm source

NTLM Transporter for the [masterzen's Go WinRM](https://github.com/masterzen/winrm) client.

Documentation

Index

Constants

View Source
const (
	Cmd    = ExecType("Cmd")
	Cmdlet = ExecType("Cmdlet")
)
View Source
const Version = "0.1.4"

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecType

type ExecType string

type Metric

type Metric struct {
	Level int      `toml:"level"`
	Type  ExecType `toml:"type"`
	Id    string   `toml:"id"`
	Text  string   `toml:"text"`
}

func NewMetric

func NewMetric(level int, execType ExecType, id string, text string) *Metric

type Metrics

type Metrics struct {
	Metrics []*Metric
}

type Server

type Server struct {
	Server   string `toml:"server"`
	Url      string `toml:"url"`
	User     string `toml:"user"`
	Password string `toml:"password"`
	Insecure bool   `toml:"insecure"`
}

type Windows

type Windows struct {
	Server    string    `toml:"server"`
	LocalExec bool      `toml:"local_exec"`
	Servers   []*Server `toml:"servers"`
	Metrics   []*Metric `toml:"metrics"`

	ScriptPath string
	// contains filtered or unexported fields
}

func (*Windows) Config

func (e *Windows) Config() string

func (*Windows) CreateScript

func (e *Windows) CreateScript(templateCode string, script string, env *cfg.RunEnv) error

func (*Windows) Label

func (e *Windows) Label() string

func (*Windows) Run

func (e *Windows) Run(ctx context.Context, env *cfg.RunEnv) error

func (*Windows) RunCommands

func (e *Windows) RunCommands(ctx context.Context, env *cfg.RunEnv) error

func (*Windows) RunLocalServer

func (e *Windows) RunLocalServer(ctx context.Context, env *cfg.RunEnv) error

func (*Windows) RunRemoteServer

func (e *Windows) RunRemoteServer(ctx context.Context, env *cfg.RunEnv, sv *Server) error

Directories

Path Synopsis
Package NTLM implements the interfaces used for interacting with NTLMv1 and NTLMv2.
Package NTLM implements the interfaces used for interacting with NTLMv1 and NTLMv2.
md4
Package md4 implements the MD4 hash algorithm as defined in RFC 1320.
Package md4 implements the MD4 hash algorithm as defined in RFC 1320.

Jump to

Keyboard shortcuts

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