Skip to content
This repository was archived by the owner on Mar 8, 2026. It is now read-only.
This repository was archived by the owner on Mar 8, 2026. It is now read-only.

The PowerShell Reaper is not able to collect the variables from the remote configfile #5

@raf181

Description

@raf181

It is capable of reading "Active=true" but not the other variable, it uses the same method as Executer, but for some reason it does not work here

code:

# Initialize variables
$robo_flags = $null


# Get variables from config file
foreach ($line in $configFile) {
    $key, $value = $line -split '=', 2
    switch ($key.Trim().ToLower()) {
        "$robo_flags" {
            $roboflags = $value.Trim()
        }
    }
}
Write-Host "robo_flags: $roboflags"


# Check variables are set
if ($null -eq $roboflags) {
    $roboflags = "/E /COPY:DAT /NP /NFL /NDL /NJH /NJS /NC /NS /MT:32 /TEE /R:5 /W:10 /BYTES"
    Write-Host "robo_flags not found in config file. Using default flags: $roboflags"
}

Metadata

Metadata

Labels

bugSomething isn't workinghelp wantedExtra attention is neededquestionFurther information is requested

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions