Decoding a Roblox backdoor

不羁岁月 提交于 2020-05-16 02:32:26

问题


I am working on a Roblox lua script that I found when searching for backdoors into a game I moderate. The backdoor loaded an external script that I got the source code for and I am working on decoding and reverse engineering it.

The line that I am having trouble with is

local varname = #{6133}

This is really confusing me because I have never encountered it before. I do very little Lua programming but I am experience in Java and C++, but even after research I don't know what the #{number} does.

I have also ran into #{num1, num2, num3, etc.} but I suspect that does practically the same as the first line in this post.

If anyone can help me understand what the above does that would be great, thank you.


回答1:


{6133} creates a sequence with one element: 6133. # is the length operator, which tells you how many elements are in a sequence. Putting them together, it becomes clear that #{6133} is just a complicated way of writing the number 1.



来源:https://stackoverflow.com/questions/61470481/decoding-a-roblox-backdoor

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!