Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Entire forum
➜ MUSHclient
➜ Lua
➜ luac precompile
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Renny
Canada (26 posts) Bio
|
Date
| Fri 17 Aug 2018 05:19 AM (UTC) |
Message
| |
Posted by
| Nick Gammon
Australia (23,120 posts) Bio
Forum Administrator |
Date
| Reply #1 on Fri 17 Aug 2018 05:53 AM (UTC) |
Message
| I can't reproduce that. Using the file in that link (luac5.1.exe) and compiling some test Lua code, and then running it in MUSHclient, it works perfectly. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Nick Gammon
Australia (23,120 posts) Bio
Forum Administrator |
Date
| Reply #2 on Fri 17 Aug 2018 06:09 AM (UTC) |
Message
| In any case, using luac only saves the compile time (converting the Lua source code into byte-code). It doesn't speed up execution. I never use it, personally. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Renny
Canada (26 posts) Bio
|
Date
| Reply #3 on Fri 17 Aug 2018 08:36 PM (UTC) |
Message
| Hmm, I tried to load it using the standalone interpreter and it worked, so I'm guessing it has something to do with mushclient.
This page https://www.lua.org/manual/5.1/luac.html mentions
Quote:
The binary files created by luac are portable only among architectures with the same word size and byte order.
| Top |
|
Posted by
| Nick Gammon
Australia (23,120 posts) Bio
Forum Administrator |
Date
| Reply #4 on Fri 17 Aug 2018 08:52 PM (UTC) |
Message
|
|
Please help us by advising the version of MUSHclient you are using. Use the Help menu -> About MUSHclient.
|
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Renny
Canada (26 posts) Bio
|
Date
| Reply #5 on Sat 18 Aug 2018 02:15 AM (UTC) |
Message
| Version 5.06-pre
You are using Aardwolf MUSHclient Package version: r1983 | Top |
|
Posted by
| Nick Gammon
Australia (23,120 posts) Bio
Forum Administrator |
Date
| Reply #6 on Sat 18 Aug 2018 05:13 AM (UTC) |
Message
| I think Aardwolf uses LuaJIT - that might not be compatible. It also should be faster anyway without precompiling. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Nick Gammon
Australia (23,120 posts) Bio
Forum Administrator |
Date
| Reply #7 on Sat 18 Aug 2018 06:28 AM (UTC) |
Message
| See this: http://lua-users.org/lists/lua-l/2011-06/msg01052.html
Quote:
The -b command line option saves LuaJIT bytecode (similar to 'luac'):
http://luajit.org/running.html#opt_b
It would seem therefore that to try to precompile for LuaJIT you need to use LuaJIT to do the compiling, not luac. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Fiendish
USA (2,533 posts) Bio
Global Moderator |
Date
| Reply #8 on Sun 19 Aug 2018 01:27 AM (UTC) Amended on Sun 19 Aug 2018 01:30 AM (UTC) by Fiendish
|
Message
|
Quote: I think Aardwolf uses LuaJIT
Yep
Quote: that might not be compatible
I was going to say probably not, but I guess we're actually beyond probably now. :-)
All of the preceding aside, why are you trying to pre-generate bytecode? |
https://github.com/fiendish/aardwolfclientpackage | Top |
|
Posted by
| Renny
Canada (26 posts) Bio
|
Date
| Reply #9 on Mon 20 Aug 2018 09:31 PM (UTC) |
Message
|
Fiendish said:
All of the preceding aside, why are you trying to pre-generate bytecode?
How else would I obfuscate my RAT?
err I mean... I was just curious. | Top |
|
Posted by
| Fiendish
USA (2,533 posts) Bio
Global Moderator |
Date
| Reply #10 on Mon 20 Aug 2018 10:44 PM (UTC) |
Message
|
Quote: How else would I obfuscate my RAT?
Your what? |
https://github.com/fiendish/aardwolfclientpackage | Top |
|
Posted by
| Nick Gammon
Australia (23,120 posts) Bio
Forum Administrator |
Date
| Reply #11 on Mon 20 Aug 2018 11:50 PM (UTC) |
Message
| I didn't want to ask for fear of looking like I didn't know all the recent acronyms, but maybe:
Quote:
"RAT" also refers to "Operation Shady RAT" in which RAT stands for "Remote Access Tool," a type of software that hackers and security experts use to access computer networks from afar.
Remotely Activated Trojan -or- Remote Access Tool |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Nick Gammon
Australia (23,120 posts) Bio
Forum Administrator |
Date
| Reply #12 on Mon 20 Aug 2018 11:58 PM (UTC) |
Message
| Personally I would be very wary of any code distributed as precompiled. There is no way to inspect it and see if it does anything malicious, like open files, send data over the Internet, or even delete files.
See the post about Lua security:
http://www.gammon.com.au/forum/?id=10503
I strongly advise MUSHclient users from installing any plugin or other module which is supplied in pre-compiled form. The same would apply if you are required to run a .exe or .dll file.
The speed improvements that might be obtained from precompiling would be minor, and the possible security breaches could be major.
At least when code is supplied in "normal" plugins, which are fairly human-readable, or Lua modules, which are readable if you know Lua, there is a reasonable chance that someone would detect any attempts to compromise the target computer.
See the link above for suggestions about being wary of certain plugins. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Renny
Canada (26 posts) Bio
|
Date
| Reply #13 on Tue 21 Aug 2018 05:23 AM (UTC) |
Message
|
Nick Gammon said:
I didn't want to ask for fear of looking like I didn't know all the recent acronyms, but maybe:
Sorry, that was a snide comment in response to the "why".
Initially I was looking at this thread, http://www.gammon.com.au/forum/?id=4914, and I couldn't get the compiled code to load. But now I know why!
Yes I agree never run compiled code from an untrusted source. | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
30,823 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top