hak5 / usbrubberducky-payloads

The Official USB Rubber Ducky Payload Repository
https://usbrubberducky.com
3.99k stars 1.31k forks source link

Same value for two characters. #369

Open emilbuss opened 1 year ago

emilbuss commented 1 year ago

The se lang json file has # and ~ as the same value. This makes it imposible to use ~ in a rubber ducky script since the output becomes # Is there a fix for this?

https://github.com/hak5/usbrubberducky-payloads/blob/95aab5627a6bd352650715be27c14994c7c0a8f5/languages/se.json#L134-L135

cribb-it commented 1 year ago

My guess is it should be "~":"02,00,21", but you would need to test this. if you have payload studio pro. you can edit in browser (this only effects your browsers version). if you use community then I believe you need to download it make changes and upload it back in (this only effects your browsers version).

Once you know it to work then make a pull request to update this file.

emilbuss commented 1 year ago

My guess is it should be "~":"02,00,21", but you would need to test this. if you have payload studio pro. you can edit in browser (this only effects your browsers version). if you use community then I believe you need to download it make changes and upload it back in (this only effects your browsers version).

Once you know it to work then make a pull request to update this file.

I tried modifying the json with the following:

cribb-it commented 1 year ago

"#":"02,00,20", is right that's why when you where ~ you where getting # what keys do you press to get ~? at the moment it's set to SHIFT + 3 which is #

emilbuss commented 1 year ago

"#":"02,00,20", is right that's why when you where ~ you where getting # what keys do you press to get ~? at the moment it's set to SHIFT + 3 which is #

I have a Swedish keyboard so ~ for me is a bit weird. See picture. It is ALTGR and this key image

cribb-it commented 1 year ago

as a wild guess it could be "~":"40,00,30",

emilbuss commented 1 year ago

Sadly that gave me an extra enter key :D

cribb-it commented 1 year ago

then this one might be wrong too "^":"02,00,30",

darkpyrro commented 1 year ago

"~":"40,00,30", should be the correct one, however, when you use that char on a physical keyboard, I seem to remember that you need to hit space for it to actually appear

emilbuss commented 1 year ago

DELAY 1000 STRING ~ SPACE STRING ^ SPACE

Gives output: ~^

with json config: "^": "02,00,30" "~": "40,00,30"

Pressing space fixes the issue. Thank you!