XenoBot Forums - Powered by vBulletin

User Tag List

Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18

Thread: Camouflaging Lua Code

  1. #11
    Senior Member
    Join Date
    Jun 2012
    Location
    Glasgow
    Posts
    903
    Mentioned
    78 Post(s)
    Tagged
    0 Thread(s)
    Anyways, I think this doesn't really help the community. I always like to edit/change existing scripts to my needs. Adjusting the waits for the npc chats, using another dp spot sometimes when it has the old depositer, updating stuff and so on. Or I copy & learn from existing "hard parts" like going through tp's, using levers or anything else special. People can learn by looking on the code. This "obfuscation" which now some scripters use makes that impossible...

  2. #12

    Join Date
    Dec 2011
    Posts
    146
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    Could someone explain what should I put in these:

    lua code:
    buff=""
    for v=1,string.len(script) do --Convert our string into a hex string.
    file=io.open('encrypted.txt','w') --Output our bytecode into ascii format to encrypted.txt


    I am new and I do not understand it at all ;/ The only thing that I understand is that I have to paste my script where is "Content"

  3. #13
    Administrator
    Join Date
    Dec 2010
    Posts
    2,565
    Mentioned
    228 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by EverlasteR View Post
    Could someone explain what should I put in these:

    lua code:
    buff=""
    for v=1,string.len(script) do --Convert our string into a hex string.
    file=io.open('encrypted.txt','w') --Output our bytecode into ascii format to encrypted.txt


    I am new and I do not understand it at all ;/ The only thing that I understand is that I have to paste my script where is "Content"
    If you read this thread you'd know that this method of obfuscation is rather weak, but anyways, you don't need to do anything with that bit, just run the script and it will output your obfuscated string.

  4. #14

    Join Date
    Dec 2011
    Posts
    146
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Spectrus View Post
    If you read this thread you'd know that this method of obfuscation is rather weak, but anyways, you don't need to do anything with that bit, just run the script and it will output your obfuscated string.
    I have read the thread and many others about this but this is the only one that is working. If you don't mind I would love if you helped me with encrypting/obfuscating/coding my scripts.

  5. #15

    Join Date
    Jan 2014
    Location
    Poland kkkkk
    Posts
    106
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Same here, still can't get it working I can get the bytecode from working script, but code after obfuscating isn't working

    I'm getting something like that:
    Error: attempt to call method 'isOpen' (a nil value)


    It's the error when i'm trying to obfuscate script without obfuscating locals, when the script is fully obfuscated it works well? Any tips? I want to leave locals visible to be able configuring the script like backpack names etc.
    Last edited by xto94; 06-13-2014 at 02:20 PM.

  6. #16
    Senior Member ppgab's Avatar
    Join Date
    Mar 2014
    Location
    Brazil
    Posts
    986
    Mentioned
    86 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by xto94 View Post
    Same here, still can't get it working I can get the bytecode from working script, but code after obfuscating isn't working

    I'm getting something like that:
    Error: attempt to call method 'isOpen' (a nil value)


    It's the error when i'm trying to obfuscate script without obfuscating locals, when the script is fully obfuscated it works well? Any tips? I want to leave locals visible to be able configuring the script like backpack names etc.
    you cant have mixed script like that, doesnt work

    have a separate file for configuration and just dofile it on the main obfuscated file

    and why would you want to obfuscate your labels funcs? if it were your library of custom functions it would be reasonable , but...

  7. #17
    Lifetime Subscriber
    Join Date
    Mar 2011
    Location
    Sweden
    Posts
    214
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Someone should write a guide for this =) step by step , i'm really intrested.

    I got it, soon i guess. I filled buff = "" with buff = "Derp.lua" and ran the script. I got a txt file starting with derp.lua then alot of numbers.

    What should i do with it then? =) loadstring? and i got another script with Code= in beginning how does it work ?
    Last edited by Flummer; 08-10-2014 at 02:21 PM.

  8. #18

    Join Date
    Apr 2016
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    well excuse me but i am having error when i run the lua on the xenobot after encoding, does anyone help me?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •