Open InfiniteBSOD opened 3 months ago
The drive label name, is the name used to identify the USB rubber Ducky's drive to a computer. You will see this name when you plug in the Ducky into a computer while its in arming mode or ATTACKMODE STORAGE
By default the name is DUCKY
this name will be persistent unless changed on the target machine.
That DEFINE
is used for the drive label name, and should be pointed to the drive label of the Ducky.
Yes, this powershell script exfiltrates data and also spawns a reverse shell on the target machine, this is stated in the README.md
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 Win32LogicalDisk | 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