Payload Title
Ducky-Harvest
Payload URL
https://github.com/hak5/usbrubberducky-payloads/blob/master/payloads/library/credentials/Duckie-Harvest/payload.txt
Payload Setup
In Payload.txt changed the following:
$_OS = WINDOWS
DEFINE #DUCKY_DRIVER_LABEL DUCKY
In sy_cred.ps1 changed the following:
$DRIVE = 'OUTPUT' # Drive letter of the USB Rubber Ducky
$IP = '' # IP address of the attacker machine
$PORT = '' # Port to use for the reverse shell
Problem Description
In Payload.txt on this row:
$duckletter = (Get-CimInstance -ClassName Win32_LogicalDisk | Where-Object { $_.VolumeName -eq '#DUCKY_DRIVER_LABEL' }).DeviceID;cd $duckletter
Question 1: How can it identify a driveletter for "#DUCKY_DRIVER_LABEL" when it isn't mounted as a storage device?
The error we get is that it can't "cd" to "$duckletter" since the variable duckletter is NULL.
"Cannot process the argument because of the value of argument 'path' is null".
Question 2: If we change #DUCKY_DRIVER_LABEL to a recognized storage device which returns a driveletter we get a lot of other errors which is due to malformed input. For instance "Get-CimInstance" is written as "et-CimInstance" for some reason.
Question 3: How exactly is the:
# IP address of the attacker machine
# Port to use for the reverse shell
meant to work?
Then we need to have another device on the network which runs some application / service and that device isn't a RubberDucky?
Troubleshooting steps
Changing the "DEFINE #DUCKY_DRIVER_LABEL" from "DUCKY" to "OUTPUT" which is a recognized storage device.
Suspected Cause
No response
Screenshots or additional information
No response
Checklist ✅ - READ CAREFULLY
Agreement
Payload Title
Ducky-Harvest
Payload URL
https://github.com/hak5/usbrubberducky-payloads/blob/master/payloads/library/credentials/Duckie-Harvest/payload.txt
Payload Setup
In Payload.txt changed the following:
$_OS = WINDOWS
DEFINE #DUCKY_DRIVER_LABEL DUCKY
In sy_cred.ps1 changed the following:
$DRIVE = 'OUTPUT' # Drive letter of the USB Rubber Ducky
$IP = '' # IP address of the attacker machine
$PORT = '' # Port to use for the reverse shell
Problem Description
In Payload.txt on this row:
$duckletter = (Get-CimInstance -ClassName Win32_LogicalDisk | Where-Object { $_.VolumeName -eq '#DUCKY_DRIVER_LABEL' }).DeviceID;cd $duckletter
Question 1: How can it identify a driveletter for "#DUCKY_DRIVER_LABEL" when it isn't mounted as a storage device?
The error we get is that it can't "cd" to "$duckletter" since the variable duckletter is NULL.
"Cannot process the argument because of the value of argument 'path' is null".
Question 2: If we change #DUCKY_DRIVER_LABEL to a recognized storage device which returns a driveletter we get a lot of other errors which is due to malformed input. For instance "Get-CimInstance" is written as "et-CimInstance" for some reason.
Question 3: How exactly is the:
meant to work?
Then we need to have another device on the network which runs some application / service and that device isn't a RubberDucky?
Troubleshooting steps
Changing the "DEFINE #DUCKY_DRIVER_LABEL" from "DUCKY" to "OUTPUT" which is a recognized storage device.
Suspected Cause
No response
Screenshots or additional information
No response
Checklist ✅ - READ CAREFULLY
Agreement