dejavuln-autoroot/README.md

74 lines
2.8 KiB
Markdown
Raw Permalink Normal View History

2024-04-20 18:33:31 +01:00
# dejavuln-autoroot
This is a tool to root LG TVs and automatically install
[Homebrew Channel](https://github.com/webosbrew/webos-homebrew-channel).
It uses [DejaVuln](https://twitter.com/jcxdev/status/1781668313958945132),
which works on webOS 3.5 and newer.
## Instructions
2024-04-24 03:47:03 +01:00
1. Download the latest release (*not* the files named "Source code") from the
2024-04-24 01:46:02 +01:00
[Releases](https://github.com/throwaway96/dejavuln-autoroot/releases)
page.
2. Extract the archive to the root directory of a USB drive. (It should be
2024-04-23 02:56:45 +01:00
formatted with FAT32 or NTFS and only have one partition.)
2024-04-24 01:46:02 +01:00
3. Plug the USB drive into your TV. (Make sure it's the only USB drive
2024-04-20 18:33:31 +01:00
connected.)
2024-04-24 01:46:02 +01:00
4. Open the USB drive in the Music app and browse to
2024-04-24 02:07:37 +01:00
`lol$(sh$IFS$(find$IFS/tmp`.
5. Try to play the MP3 file
(`usb$IFS-maxdepth${IFS}3$IFS-name${IFS}autoroot.sh)).mp3`).
2024-04-24 01:46:02 +01:00
6. After the pop-up messages tell you rooting is complete, eject the USB
2024-04-20 18:33:31 +01:00
drive.
If you have the LG Developer Mode app installed, you *must* remove it before
rebooting. **Do not** install it while your TV is rooted.
2024-04-20 19:09:33 +01:00
## Troubleshooting
If the script fails, you must delete `autoroot.once` from the USB drive and/or
reboot the TV before it will run again.
2024-04-20 19:09:33 +01:00
2024-04-20 19:19:01 +01:00
A log file named `autoroot.log` should be created on the USB drive.
You can enable additional logging by creating a file named `autoroot.debug` in
the root directory of the USB drive.
2024-04-23 02:55:32 +01:00
On webOS 8 (webOS 23), you may have to try multiple times; it seems that
restarting `appinstalld` does not reliably make it detect the existence of
`devmode_enabled`.
2024-04-24 03:47:03 +01:00
Toasts from the script may be hidden by system messages (like the one about
the MP3 file not being recognized).
2024-04-20 18:33:31 +01:00
## Support
You can find more information at [webosbrew.org](https://www.webosbrew.org/).
If you need help rooting your TV, try the
[OpenLGTV Discord](https://discord.gg/hXMHAgJC5R). Before you ask a question,
2024-04-20 19:19:01 +01:00
check the FAQ (#faq) to see if it is answered there! Attach your `autoroot.log`
when asking for help.
2024-04-20 18:33:31 +01:00
## Credits
* DejaVuln was discovered by [Jacob Clayden](https://jacobcx.dev/).
* The very similar CVE-2023-6319 was discovered by
[Bitdefender](https://www.bitdefender.com/blog/labs/vulnerabilities-identified-in-lg-webos/).
## License
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along
with this program. If not, see <https://www.gnu.org/licenses/>.
See `COPYING` for details.