WoW sudo addon Shadowlands/Burning Crusade Classic 2021
logo
wow addon sudo

sudo

Game Version: 2.5.2
Total Downloads: 409
Updated: Oct 4, 2021
Created: May 8, 2021
download sudoDownload
download sudo classic 1.14.1Download
for Classic BC
Earlier Versions

Earlier Versions

Name Size Uploaded Game Version Downloads
1.0.12-bcc release 2.01 KB Oct 4, 2021 2.5.2 0 download sudo 1.0.12-bcc releaseDownload
1.0.12-classic release 2.01 KB Oct 4, 2021 1.14.0 0 download sudo 1.0.12-classic releaseDownload
1.0.12 release 2.01 KB Oct 4, 2021 9.1.0 0 download sudo 1.0.12 releaseDownload
1.0.11-bcc release 2.02 KB May 27, 2021 2.5.1 62 download sudo 1.0.11-bcc releaseDownload
1.0.11-classic release 2.02 KB May 27, 2021 1.13.7 29 download sudo 1.0.11-classic releaseDownload
1.0.11 release 2.02 KB May 27, 2021 9.0.5 20 download sudo 1.0.11 releaseDownload
1.0.10-bc release 2.00 KB May 15, 2021 2.5.1 44 download sudo 1.0.10-bc releaseDownload
1.0.10-classic release 2.00 KB May 15, 2021 1.13.7 27 download sudo 1.0.10-classic releaseDownload
1.0.10 release 2.00 KB May 15, 2021 9.0.5 13 download sudo 1.0.10 releaseDownload
1.0.11-1-g58f97c0-bcc alpha 2.06 KB Oct 4, 2021 2.5.2 0 download sudo 1.0.11-1-g58f97c0-bcc alphaDownload
1.0.11-1-g58f97c0-classic alpha 2.05 KB Oct 4, 2021 1.14.0 0 download sudo 1.0.11-1-g58f97c0-classic alphaDownload
1.0.11-1-g58f97c0 alpha 2.05 KB Oct 4, 2021 9.1.0 0 download sudo 1.0.11-1-g58f97c0 alphaDownload
1.0.10-5-g1f2bae9-bcc alpha 2.07 KB May 27, 2021 2.5.1 8 download sudo 1.0.10-5-g1f2bae9-bcc alphaDownload
1.0.10-5-g1f2bae9-classic alpha 2.07 KB May 27, 2021 1.13.7 7 download sudo 1.0.10-5-g1f2bae9-classic alphaDownload
1.0.10-5-g1f2bae9 alpha 2.07 KB May 27, 2021 9.0.5 7 download sudo 1.0.10-5-g1f2bae9 alphaDownload
1.0.10-4-ge0d61af-classic alpha 2.07 KB May 27, 2021 1.13.7 4 download sudo 1.0.10-4-ge0d61af-classic alphaDownload
1.0.10-4-ge0d61af alpha 2.07 KB May 27, 2021 9.0.5 5 download sudo 1.0.10-4-ge0d61af alphaDownload
1.0.10-3-g019f928-classic alpha 2.07 KB May 27, 2021 1.13.7 24 download sudo 1.0.10-3-g019f928-classic alphaDownload
1.0.10-3-g019f928 alpha 2.07 KB May 27, 2021 9.0.5 8 download sudo 1.0.10-3-g019f928 alphaDownload
1.0.10-2-g54ae9eb-classic alpha 2.06 KB May 27, 2021 1.13.7 5 download sudo 1.0.10-2-g54ae9eb-classic alphaDownload
1.0.10-2-g54ae9eb alpha 2.06 KB May 27, 2021 9.0.5 24 download sudo 1.0.10-2-g54ae9eb alphaDownload
1.0.10-1-g3afb6fc-classic alpha 2.04 KB May 27, 2021 1.13.7 20 download sudo 1.0.10-1-g3afb6fc-classic alphaDownload
1.0.10-1-g3afb6fc alpha 2.04 KB May 27, 2021 9.0.5 6 download sudo 1.0.10-1-g3afb6fc alphaDownload

Screenshots

Description

Share this:

sudo

A framework for allowing / denying a WeakAuras request to specific API calls that have been previously blocked by default.

This is like unlocking Developer Mode in Android, it can allow you to do exactly what you want … but it also allows you to pwn yourself if you don’t read the code of the weakauras you import.

The following functions are available:

sudo.add(API_NAME, _G)

API_NAME (string) is any World of Warcraft API (see: WorldofWarcraft_API)

_G (table) is the restricted global object made available within weakauras custom code sandbox, more info can be found here, but in most cases this will simply be _G

This function will prompt the user, and if allowed will add the specified api to the global object within the weakauras sandbox. It would be nice to be able to pick and choose which weakauras could get access to which api, but currently the global object is shared between all weakauras and thus it is not possible to determine which weakaura is calling sudo.add or restrict which weakaura has access to the enabled API within the global object. You could instead pass locally scoped objects rather than the global object to restrict access to just your weakaura, but that is up to the individual weakaura dev to decide.

sudo.su(_G)

_G (table) is the restricted global object made available within weakauras custom code sandbox, more info can be found here, but in most cases this will simply be _G

This function will prompt the user, and if allowed will replace the restricted global object with a direct reference to the real _G global object that was accessible to the sudo addon at load time. This is more of a sledge hammer approach, but is made available all the same.

Settings can be saved per Account or per Character by running the following commands:

Default sudo.su to always approved for entire account:

/script sudoSavedAccount["Remove WeakAura Safety Features for the Blizzard API: 'ALL THE THINGS'?"] = true

Default sudo.su to always denied for entire account:

/script sudoSavedAccount["Remove WeakAura Safety Features for the Blizzard API: 'ALL THE THINGS'?"] = false

Default sudo.su to always prompt for entire account:

/script sudoSavedAccount["Remove WeakAura Safety Features for the Blizzard API: 'ALL THE THINGS'?"] = nil

Default sudo.add of a specific API to approved for entire account:

/script sudoSavedAccount["Remove WeakAura Safety Features for the Blizzard API: 'DeleteCursorItem'?"] = true

Default sudo.su to always approved for specific character:

/script sudoSavedChar["Remove WeakAura Safety Features for the Blizzard API: 'ALL THE THINGS'?"] = true

Default sudo.add of a specific API to approved for a specific character:

/script sudoSavedChar["Remove WeakAura Safety Features for the Blizzard API: 'DeleteCursorItem'?"] = true

By default everything is set to prompt, Character settings take priority over Account settings.

A note about wow addon security

All api commands that this addon exposes are published and approved by Blizzard. Weakauras has taken it upon themselves to block some of this API to protect users from themselves. Some users need to be protected from themselves, while others can be trusted to know what they are doing and/or take ownership for screwing up if they don’t. Every weakaura you install has the potential of doing nasty stuff, just like every addon you install has the potential of doing nasty stuff. The protections imposed by the weakaura dev team, while a valiant effort on their part are flimsy at best and a false sense of security at worst. As this project clearly demonstrates, those security measures can be bypassed via another addon or in some cases by clever use of a weakaura itself (though I will not publish how).

If some weakaura told you that you need to download this addon, you should be extremely skeptical of that weakaura and its author(s) unless you know EXACTLY why it’s needed. That is not to say that the project that directed you here is necessary evil, just that it has a higher likelihood of being evil … here be dragons, beware.

Comments

Add a comment