{"action":"opened","issue":{"url":"https://api.github.com/repos/TrinityCore/TrinityCore/issues/17484","repository_url":"https://api.github.com/repos/TrinityCore/TrinityCore","labels_url":"https://api.github.com/repos/TrinityCore/TrinityCore/issues/17484/labels{/name}","comments_url":"https://api.github.com/repos/TrinityCore/TrinityCore/issues/17484/comments","events_url":"https://api.github.com/repos/TrinityCore/TrinityCore/issues/17484/events","html_url":"https://github.com/TrinityCore/TrinityCore/issues/17484","id":163425298,"number":17484,"title":"[3.3.5] Autokick with LuaUnlockers","user":{"login":"Aknunx","id":10106495,"avatar_url":"https://avatars.githubusercontent.com/u/10106495?v=3","gravatar_id":"","url":"https://api.github.com/users/Aknunx","html_url":"https://github.com/Aknunx","followers_url":"https://api.github.com/users/Aknunx/followers","following_url":"https://api.github.com/users/Aknunx/following{/other_user}","gists_url":"https://api.github.com/users/Aknunx/gists{/gist_id}","starred_url":"https://api.github.com/users/Aknunx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aknunx/subscriptions","organizations_url":"https://api.github.com/users/Aknunx/orgs","repos_url":"https://api.github.com/users/Aknunx/repos","events_url":"https://api.github.com/users/Aknunx/events{/privacy}","received_events_url":"https://api.github.com/users/Aknunx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-01T15:58:21Z","updated_at":"2016-07-01T15:58:21Z","closed_at":null,"body":"**Description**: You can use Lua Unlocker programs to execute protected functions that shouldn't be avalaible, like http://wowprogramming.com/docs/api/CastSpellByName\r\n\r\n**Current behaviour**: Using addons or external programs you're able to create lua scripts to automatize multiple ingame functions, such as kick instantly whenever your target/focus/whatever is casting a spell, by calling protected Blizzard UI functions such as \"CastSpell\", \"CastSpellByName\", \"CastSpellByID\".\r\n\r\n**Expected behaviour**: Those lua scripts shouldn't be able to call protected functions.\r\n\r\n**Steps to reproduce the problem**:\r\n\r\n1.  Download https://mega.nz/#!bp51zRYC!_lBtpfQ6sr7SWQSv3xE7U9gWqqIJryEnpFZsW937qzc and extract it\r\n2. With wow closed, execute the .exe, select the Process \"Edit Mode\" and press Select\r\n3. Press \"Ability And Rotation Editor\"\r\n4. On the new tab, select mage, for example, then press \"New Profile\", introduce a profile name, do the same with \"New Rotation\" and close the tab.\r\n5. Back in the main menu press \"Ability Editor\"\r\n6. Again, select our class, mage, type any name on the \"Name\" field and any id on the \"Spell Id\" field.\r\n7. Then in the \"Test\" tab copy our lua script and press \"Save\":\r\nif ((select(2, GetSpellCooldown(\"Counterspell\")))==0) and (UnitCastingInfo(\"focus\") or UnitChannelInfo(\"focus\")) then CastSpellByName(\"Counterspell\",\"focus\") end\r\n8. Go back to the \"Ability and Rotation Editor\", select mage and the profile that we've created, our spell should now appear under \"Avalaible Abilities\".\r\nPress \"->\" and uncheck \"Require combat to execute rotation\" box.\r\n9. Close the tab and close the entire program.\r\n10. Execute your wow client, log in with a mage and /focus someone.\r\n11. Execute again the PQR .exe, instead of \"Edit Mode\" from step 2 you'll see your character profile, select it.\r\n12. Deploy rotation 1 and select your spell profile.\r\n13. Go back to the wow client and do the rotation 1 (alt X), a message will appear telling you that PQR is now active, whenever your /focus casts something you'll instantly counterspell it.\r\n\r\n**Branch(es)**: 3.3.5\r\n\r\n**TC hash/commit**:  https://github.com/TrinityCore/TrinityCore/commit/3213e4712c75dc09f44bc7dc3fca32efb0f94bc1\r\n\r\n**TDB version**:  335.61\r\n\r\n**Operating system**:  Ubuntu\r\n\r\n\r\n[//]: # (This template is for problem reports, for other type of reports edit it accordingly)\r\n[//]: # (If this is a crash report, include the crashlog with https://gist.github.com/)\r\n[//]: # (For fixes containing c++ create a Pull Request)\r\n"}}
{"actor":{"display_login":"Aknunx"}}