shell_anon

package
v0.0.0-...-8483bd9 Latest Latest
Warning

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

Go to latest
Published: May 18, 2025 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandObfuscator

type CommandObfuscator struct {
}

func NewCommandObfuscator

func NewCommandObfuscator() *CommandObfuscator

func (*CommandObfuscator) EncodeCommand

func (c *CommandObfuscator) EncodeCommand(command string) string

func (*CommandObfuscator) GetCommandObfuscationTips

func (c *CommandObfuscator) GetCommandObfuscationTips() []string

func (*CommandObfuscator) HideCommandOptions

func (c *CommandObfuscator) HideCommandOptions(command string, options map[string]string) string

func (*CommandObfuscator) ObfuscateCommand

func (c *CommandObfuscator) ObfuscateCommand(command string) string

type FileHider

type FileHider struct {
}

func NewFileHider

func NewFileHider() *FileHider

func (*FileHider) CleanLogFile

func (f *FileHider) CleanLogFile(logPath string, pattern string) error

func (*FileHider) GetFileHidingTips

func (f *FileHider) GetFileHidingTips() []string

func (*FileHider) HideFile

func (f *FileHider) HideFile(path string) error

func (*FileHider) SecureDelete

func (f *FileHider) SecureDelete(path string) error

type Module

type Module struct {
	Name        string
	Version     string
	Description string
	Author      string
	// contains filtered or unexported fields
}

func NewModule

func NewModule() *Module

func (*Module) ApplyFullAnonymization

func (m *Module) ApplyFullAnonymization() error

func (*Module) CleanLogFile

func (m *Module) CleanLogFile(logPath string, pattern string) error

func (*Module) DeobfuscateNetworkTraffic

func (m *Module) DeobfuscateNetworkTraffic(obfuscated []byte) []byte

func (*Module) DisableHistory

func (m *Module) DisableHistory() error

func (*Module) EncodeCommand

func (m *Module) EncodeCommand(command string) string

func (*Module) ExecuteCommand

func (m *Module) ExecuteCommand(command string, args []string) (interface{}, error)

func (*Module) GenerateHackShellScript

func (m *Module) GenerateHackShellScript(outputPath string) error

func (*Module) GetAnonymizationStatus

func (m *Module) GetAnonymizationStatus() map[string]interface{}

func (*Module) GetInfo

func (m *Module) GetInfo() *module.ModuleInfo

func (*Module) HideConnection

func (m *Module) HideConnection(port int) error

func (*Module) HideCurrentProcess

func (m *Module) HideCurrentProcess(newName string) error

func (*Module) HideFile

func (m *Module) HideFile(path string) error

func (*Module) HideFromPS

func (m *Module) HideFromPS() error

func (*Module) HideProcess

func (m *Module) HideProcess(pid int, newName string) error

func (*Module) Initialize

func (m *Module) Initialize() error

func (*Module) ObfuscateCommand

func (m *Module) ObfuscateCommand(command string) string

func (*Module) ObfuscateNetworkTraffic

func (m *Module) ObfuscateNetworkTraffic(data []byte) []byte

func (*Module) RestoreHistory

func (m *Module) RestoreHistory() error

func (*Module) SecureDelete

func (m *Module) SecureDelete(path string) error

func (*Module) SetupHackShell

func (m *Module) SetupHackShell() error

type NetworkHider

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

func NewNetworkHider

func NewNetworkHider() *NetworkHider

func (*NetworkHider) CreateDNSTunnel

func (n *NetworkHider) CreateDNSTunnel(domain string) string

func (*NetworkHider) DeobfuscateNetworkTraffic

func (n *NetworkHider) DeobfuscateNetworkTraffic(obfuscated []byte) []byte

func (*NetworkHider) FindCommonPort

func (n *NetworkHider) FindCommonPort() (int, error)

func (*NetworkHider) GetNetworkHidingTips

func (n *NetworkHider) GetNetworkHidingTips() []string

func (*NetworkHider) GetOpenPorts

func (n *NetworkHider) GetOpenPorts(host string, startPort, endPort int) []int

func (*NetworkHider) HideConnection

func (n *NetworkHider) HideConnection(port int) error

func (*NetworkHider) HideFromNetstat

func (n *NetworkHider) HideFromNetstat(port int) error

func (*NetworkHider) IsPortOpen

func (n *NetworkHider) IsPortOpen(host string, port int) bool

func (*NetworkHider) ObfuscateNetworkTraffic

func (n *NetworkHider) ObfuscateNetworkTraffic(data []byte) []byte

func (*NetworkHider) SetObfuscationKey

func (n *NetworkHider) SetObfuscationKey(key []byte)

type ProcessHider

type ProcessHider struct {
}

func NewProcessHider

func NewProcessHider() *ProcessHider

func (*ProcessHider) GetProcessHidingTips

func (p *ProcessHider) GetProcessHidingTips() []string

func (*ProcessHider) HideCurrentProcess

func (p *ProcessHider) HideCurrentProcess(newName string) error

func (*ProcessHider) HideFromPS

func (p *ProcessHider) HideFromPS() error

func (*ProcessHider) HideProcess

func (p *ProcessHider) HideProcess(pid int, newName string) error

type ShellAnonymizer

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

func NewShellAnonymizer

func NewShellAnonymizer() *ShellAnonymizer

func (*ShellAnonymizer) DisableHistory

func (s *ShellAnonymizer) DisableHistory() error

func (*ShellAnonymizer) ExecuteHiddenCommand

func (s *ShellAnonymizer) ExecuteHiddenCommand(command string) (string, error)

func (*ShellAnonymizer) GenerateHackShellScript

func (s *ShellAnonymizer) GenerateHackShellScript() string

func (*ShellAnonymizer) GetHiddenCommandTips

func (s *ShellAnonymizer) GetHiddenCommandTips() []string

func (*ShellAnonymizer) GetNetworkHidingTips

func (s *ShellAnonymizer) GetNetworkHidingTips() []string

func (*ShellAnonymizer) HideProcessName

func (s *ShellAnonymizer) HideProcessName(pid int, newName string) error

func (*ShellAnonymizer) RestoreHistory

func (s *ShellAnonymizer) RestoreHistory() error

func (*ShellAnonymizer) SetSecurePrompt

func (s *ShellAnonymizer) SetSecurePrompt(prompt string)

func (*ShellAnonymizer) SetSecureTempDir

func (s *ShellAnonymizer) SetSecureTempDir() error

func (*ShellAnonymizer) SetupHackShell

func (s *ShellAnonymizer) SetupHackShell() error

Jump to

Keyboard shortcuts

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