Skip to content

Unable to use $SWITCH_POSITION on Mark I #700

@AleksaMCode

Description

@AleksaMCode

I’m encountering the error cannot find path payloads\\exfil.txt when running the following payload:

POSITION=$SWITCH_POSITION

CMD="Set-Clipboard -Value (gc((gwmi win32_volume -f 'label=''BashBunny''').Name + '\\payloads\\${POSITION}\\exfil.txt'))"

Q WINDOWS r
Q DELAY 1500
Q STRING powershell
Q ENTER
Q DELAY 1500

Q STRING $CMD

It appears that the $SWITCH_POSITION variable is empty. Am I overlooking something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions