Results 1 to 10 of 10

Thread: Uncheck obfuscate in thinbundle dialog

  1. #1

    Uncheck obfuscate in thinbundle dialog

    Hi Roberto,

    I think it is dangerous to have the obfuscate option checked by default in the thinbundle dialog, or? I can easily loose the source if I don't save after it, I guess.

    If that is true, then I would suggest to have it unchecked by default.

    Michael

  2. #2

    Re: Uncheck obfuscate in thinbundle dialog

    Ok, it seems it creates a copy of the source. So my request is invalid. You can delete this topic.

  3. #3
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10

    Re: Uncheck obfuscate in thinbundle dialog

    Mike,

    your indication is interesting because it can really be dangerous that flag. When? When you do not obfuscate!
    Why? thinBundle create and exe that is like a black box filled with all the needed files for the engine to work plus the script to be executed.
    If the script to be executed is bundled in obfuscated way, its name is different from the original one but if not obfuscated, its name will be the same.

    Now, if you create the bundled exe in the same directory of the original script and you do not flag obfuscate flag, when bundled exe is executed, bundled script overwrite your master script and delete it after execution (if flag "Delete after run" was ON). In this case you will loose you script!

    So, better and safer solution is to leave Obfuscate flag always on

    We have to better think about that.
    An idea can be to generate a random name for the bundled script source even if obfuscated. File extension will remain the same. This will make quite impossible to overwrite original scripts even if there in clear or obfuscated form.

    Thanks for pointing it.
    Eros

    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  4. #4

    Re: Uncheck obfuscate in thinbundle dialog

    Ouch, indeed, that is bad. Creating a radom name doens't help much with include files, or? I would say use a random named folder where the bundled exe extracts the sources to. Or like you said, have obfuscating allways on and not be optional.

  5. #5
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10

    Re: Uncheck obfuscate in thinbundle dialog

    I think for the moment obfuscate flag always on is the best.
    Also for another important reason: obfuscated scripts have all included files already exploded inside the main script so even if your script uses many #INCLUDE directives, the obfuscated version is the sum of all included sources and there will be no dependancies.

    What do you think Roberto?
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  6. #6

    Re: Uncheck obfuscate in thinbundle dialog

    First of all my idea is add a new Bundle option tab where user can specify the four bundles' flag, BUNDLE CREATION FOLDER and BUNDLE EXTRACTION FOLDER, so this can make more comfortable the bunde use since all of these settings are already configurable by thinBasic_Bundle.dll.
    Then in addition I can do one of following things:

    • Do not delete eventually existing main script but just rename it (MyExistingScript.tbasic -> MyExistingScript.tbasic.bak)
    • Add a string or a counter to the main script name before bundled it (MyMainScript.tbasic -> MyMainScript_@_.tbasic)


    Ciao,
    Roberto
    http://www.thinbasic.com

  7. #7

    Re: Uncheck obfuscate in thinbundle dialog

    Sounds good to me.

  8. #8
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10

    Re: Uncheck obfuscate in thinbundle dialog

    Roberto,

    adding more tabs in thinBundle is good. More oprions will come so having a tab control can simplify a lot. Thanks

    Regarding script name, we have to think that original script is property of the programmer who made it so we have to do all we can in order to avoid to touch it in any way. I do not like programs of any type touching my personal files and I'm sure you think the same. Something more: we have to think about the possibility to have 2 bundled exe executed at the same time from the same directory. A not so far possibility.
    Keeping that in mind and thinking that the name of the script when bundled is not important (because generally it will be hidden to user when executed) option number 2 is ok. I still prefer to generate a random unique name of the script before bundling it but adding a number is better than nothing.

    Thanks a lot
    Eros
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  9. #9

    Re: Uncheck obfuscate in thinbundle dialog

    Eros,

    you are right, better avoid to limitate multiple bundled executiones, so opaque unique name is generate for the script, I'm still working on bundle's option.

    Ciao,
    Roberto
    http://www.thinbasic.com

  10. #10

    Re: Uncheck obfuscate in thinbundle dialog

    Also fineshed to add bundle option tab in ThinAir, so you can choose your favourites default values for bundle window.
    You'll find these update in the next ThinBASIC release.

    Regards,
    Roberto
    http://www.thinbasic.com

Similar Threads

  1. Obfuscate is not working ?
    By Petr Schreiber in forum thinAir General
    Replies: 2
    Last Post: 01-11-2005, 19:10

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

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