mirror of
https://github.com/ramottamado/eval-gjs.git
synced 2026-01-25 00:22:28 +01:00
main
Caution
Potential security breach
This extension enables arbitrary code execution via
Eval()dbus method. This means when you enable this extension, malicious apps, extensions or scripts can call the said dbus method and run malicious GJS codes on your machine.
Warning
Beware of impersonators
The extension at https://extensions.gnome.org/extension/5952/eval-gjs/ was not uploaded nor maintained by me. Please refrain from installing this extension at all.
Tip
Legacy version (GNOME 41-44)
For the legacy version (GNOME 41-44), check out the
legacybranch first before installing.
Eval GJS GNOME Shell extension
As of GNOME 41, the dbus method Eval() is now restricted with MetaContext:unsafe-mode property (see this commit). This extension provides unrestricted Eval() dbus method for running arbitrary code in the compositor.
Features
- Run arbitrary GJS code like you would with GNOME
Eval()dbus method. Main,Gio,GLibandMetaavailable by default.
Installation
git clone git://github.com/ramottamado/eval-gjs.git
cd eval-gjs
make install
Example usage
gdbus call \
--session \
--dest org.gnome.Shell \
--object-path /dev/ramottamado/EvalGjs \
--method dev.ramottamado.EvalGjs.Eval "Main.overview.show();"
Description
Languages
JavaScript
92.5%
Makefile
7.5%