P4wnP1 icon indicating copy to clipboard operation
P4wnP1 copied to clipboard

Mac payloads

Open gleeman2 opened this issue 7 years ago • 3 comments
trafficstars

Is there an example payload to run Mac HID commands that will wget a file and execute it? I saw some mention of adding a delay before the keyboard is brought up, but not sure there in the script that should go.

gleeman2 avatar Jun 01 '18 01:06 gleeman2

Unfortunately, there is no Mac payload yet. The issue you are talking about was that osx doesn't "properly" enumerates the Keyboard which is why onKeyboardUp never gets called. The workaround just involved calling the Code after a delay so osx has time to setup the Keyboard.

Swiftb0y avatar Jun 01 '18 05:06 Swiftb0y

Follow up on your comment, if I mod the keyboard (USB_PID) to mac in hid_keyboard.txt, where exactly will I place the delay? I the beginning of the function or even earlier?

gleeman2 avatar Jun 01 '18 13:06 gleeman2

The function never gets called. So you have to place it in another function and add the delay in there.

Swiftb0y avatar Jun 01 '18 13:06 Swiftb0y