Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatical keystrokes to exploit #8

Open
DanielVolz opened this issue Feb 2, 2022 · 6 comments
Open

Automatical keystrokes to exploit #8

DanielVolz opened this issue Feb 2, 2022 · 6 comments
Labels
enhancement New feature or request

Comments

@DanielVolz
Copy link
Contributor

I know it is kind of an over engineering. But what about an automation of this "manual labor" to execute the exploit?

https://github.com/PaulJenkin/PS4RaspberryPi.git is offering this possibility. Unfortunately the approach is not open source.

How can one do this automatically? What is required?

Do you have an idea?

@Shivelight
Copy link
Owner

We can use USB HID gadget to emulate a keyboard. Need to enable it as a module first.
https://github.com/torvalds/linux/blob/88808fbbead481aedb46640a5ace69c58287f56a/drivers/usb/gadget/legacy/Kconfig#L453

Documentation with example: https://github.com/torvalds/linux/blob/master/Documentation/usb/gadget_hid.rst

@Shivelight Shivelight added the enhancement New feature or request label Feb 3, 2022
@Shivelight
Copy link
Owner

Shivelight commented Feb 3, 2022

After trial and error, I managed to get it working. I'm using configfs as it is easier to setup. g_hid module is way too complicated to setup; platform driver, platform code, hid descriptor, etc 😩

I will write a keystroke helper based on g_hid documentation.

@DanielVolz
Copy link
Contributor Author

You're fast!

Maybe you can push your progress to a new branch or to the dev branch so I can test it too.

But no pressure. I can look into it earliest on the weekend.

@Shivelight
Copy link
Owner

Just a heads-up, I have a flight tomorrow and I'm not bringing my PS4 with me.

Will commit my findings on sunday.

@Shivelight
Copy link
Owner

Pushed to dev branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants