utils

package
v0.0.0-...-d90d797 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckProcessRunning

func CheckProcessRunning(processName string) bool

CheckProcessRunning checks if a process is running

func ExecuteCommand

func ExecuteCommand(name string, args ...string) (string, error)

ExecuteCommand executes a system command in stealth mode

func FileExists

func FileExists(path string) bool

FileExists checks if a file exists in the matrix

func GetCurrentUser

func GetCurrentUser() (*user.User, error)

GetCurrentUser returns the current neural interface user

func GetNetworkInterfaces

func GetNetworkInterfaces() ([]string, error)

GetNetworkInterfaces returns available network interfaces

func GetSystemInfo

func GetSystemInfo() (string, string, string)

GetSystemInfo returns comprehensive system intelligence

func GetSystemLoad

func GetSystemLoad() (string, error)

GetSystemLoad returns current system load

func GlitchText

func GlitchText(text string, intensity int) string

GlitchText creates cyberpunk text glitch effect

func HexDump

func HexDump(data []byte, address uint64) string

HexDump creates a cyberpunk-style hex dump display

func IsExecutable

func IsExecutable(path string) bool

IsExecutable checks if a file has executable neural pathways

func IsRoot

func IsRoot() bool

IsRoot checks if the current user has root access level

func MatrixEffect

func MatrixEffect(duration time.Duration)

MatrixEffect displays the iconic matrix digital rain

func ProgressBar

func ProgressBar(message string, duration time.Duration)

ProgressBar displays a cyberpunk progress bar

func ReadLines

func ReadLines(filename string) ([]string, error)

ReadLines reads all lines from a neural data file

func ScanOpenPorts

func ScanOpenPorts(host string, ports []int) map[int]bool

ScanOpenPorts performs a basic port scan

func StealthExecute

func StealthExecute(name string, args ...string) (string, error)

StealthExecute executes a command without leaving traces

func TypewriterPrint

func TypewriterPrint(c *color.Color, text string, delay time.Duration)

TypewriterPrint prints text with cyberpunk typewriter effect

Types

type CyberpunkLogger

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

CyberpunkLogger provides themed logging functionality

func NewCyberpunkLogger

func NewCyberpunkLogger(verbose, stealth bool) *CyberpunkLogger

NewCyberpunkLogger creates a new themed logger

func (*CyberpunkLogger) Critical

func (cl *CyberpunkLogger) Critical(message string, args ...interface{})

Critical logs critical errors with special effects

func (*CyberpunkLogger) Debug

func (cl *CyberpunkLogger) Debug(message string, args ...interface{})

Debug logs debug information if verbose mode is enabled

func (*CyberpunkLogger) Error

func (cl *CyberpunkLogger) Error(message string, args ...interface{})

Error logs errors with cyberpunk styling

func (*CyberpunkLogger) Info

func (cl *CyberpunkLogger) Info(message string, args ...interface{})

Info logs information with cyberpunk styling

func (*CyberpunkLogger) Warning

func (cl *CyberpunkLogger) Warning(message string, args ...interface{})

Warning logs warnings with cyberpunk styling

Jump to

Keyboard shortcuts

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