Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Obfuscated scripts adding

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

    Obfuscated scripts adding

    Roberto,

    what about adding a flag in main screen to set if included script must be obfuscated before adding to bundle exe?
    I know user can manually obfuscate before and than add the obfuscated version but usually I (and you too I think) like to have all the options available when needed.

    Ciao
    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

  2. #2

    Re: Obfuscated scripts adding

    Eros,

    yes, I like to have the greater number of possible choices and select select the level of complexity on which operating, but sometimes isn't possible.

    http://community.thinbasic.com/index...sg4153#msg4153

    Roberto.
    http://www.thinbasic.com

  3. #3

    Re: Obfuscated scripts adding

    Added to thinbasic_bundle the following function:

    • Bundle_SetBundleName
    • Bundle_SetScriptName
    • Bundle_SetExtractionFolder
    • Bundle_SetScriptParameters
    • Bundle_SetFlagCompressAllFiles
    • Bundle_SetFlagDeleteAfterRun
    • Bundle_SetFlagAskBeforeExtract


    Also changed the Bundle behavior from ThinAir, now it takes bundle name and main script from ThinAir's project if opened else get Bundle Name and main script from selected script.

    You'll find these (plus other I hope) updates in the next release.

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

  4. #4
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,138
    Rep Power
    733

    Re: Obfuscated scripts adding

    Thanks,

    looks promising and powerful !


    Bye,
    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

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

    Re: Obfuscated scripts adding

    Yes,

    silently, step by step, Roberto is making a fantastic job I like it!
    I will document them for next update.

    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

  6. #6
    thinBasic MVPs kryton9's Avatar
    Join Date
    Nov 2006
    Location
    Naples, Florida & Duluth, Georgia
    Age
    68
    Posts
    3,869
    Rep Power
    404

    Re: Obfuscated scripts adding

    Thanks this will make it so much easier to share programs we make with friends.
    Acer Notebook: Win 10 Home 64 Bit, Core i7-4702MQ @ 2.2Ghz, 12 GB RAM, nVidia GTX 760M and Intel HD 4600
    Raspberry Pi 3: Raspbian OS use for Home Samba Server and Test HTTP Server

  7. #7

    Re: Obfuscated scripts adding

    Added function Bundle_SetFlagObfuscateMainScript to thinbasic_bundle.dll.

    Also ThinAIR's command line is passed to the bundle.

    User now could use a new flag for obfuscate the main script.

    The Add Folder now working but folders are created without hidden flag and not delete at the end of script execution. I'll fix it later :

    Here is a sample script for use of bundle module.

    [code=thinbasic]uses "BUNDLE"

    dim i as long

    Bundle_SetBundleName("Bundle")
    Bundle_SetScriptName("c:\thinbasic\samplescripts\bundle\Bundle.tbasic")
    Bundle_SetScriptParameters("Hello")
    Bundle_SetExtractionFolder("c:\temp")
    Bundle_SetFlagCompressAllFiles(%TRUE)
    Bundle_SetFlagAskBeforeExtract(%TRUE)
    Bundle_SetFlagDeleteAfterRun(%TRUE)
    Bundle_SetFlagObfuscateMainScript(%TRUE)

    i = Bundle_Builder()

    If i = 0 then
    msgbox 0, "Bundled Executable Created."
    else
    if i = %BUNDLE_BUILDER_CANCELLED then
    msgbox 0, "Bundle creation cancelled by user."
    else
    msgbox 0, "Error occured while creating bundle."
    end if
    end if[/code]

    As usual you'll find the updates in the next release.
    If you have time, please check out these update and let me know.

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

  8. #8

    Re: Obfuscated scripts adding

    Thanks Roberto.

    Very welcome additions.

    I will try when released.

    Regards,
    catventure
    http://tab.thinbasic.com - Home Of The ThinBasic Adventure Builder Project. (Interactive Fiction/Text Adventure Maker)

  9. #9
    thinBasic MVPs kryton9's Avatar
    Join Date
    Nov 2006
    Location
    Naples, Florida & Duluth, Georgia
    Age
    68
    Posts
    3,869
    Rep Power
    404

    Re: Obfuscated scripts adding

    Roberto, do I need to run the script to make a bundle or can I go in through thinAir's interface? Thanks, sorry for my confusion.
    Acer Notebook: Win 10 Home 64 Bit, Core i7-4702MQ @ 2.2Ghz, 12 GB RAM, nVidia GTX 760M and Intel HD 4600
    Raspberry Pi 3: Raspbian OS use for Home Samba Server and Test HTTP Server

  10. #10

    Re: Obfuscated scripts adding

    Hi Kryton9,

    both two way are valid.
    If you are in ThinAIR with an open project, just click on bundle icon and the bundle's window pops up with name, main script, and script's arguments pre filled.
    Instead if you are in ThinAIR and without open project the bundle name and main script are collected from current active script (I mean MDI window).
    But Bundle exist also as a standard ThinBASIC module so bundle creation is scriptable.
    So if you are in ThinAIR with my sample script opened you can choose to click on Go or Bundle icon with (almost) the same effect.

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

Page 1 of 2 12 LastLast

Similar Threads

  1. obfuscated scripts?
    By marcuslee in forum thinAir General
    Replies: 9
    Last Post: 22-03-2009, 11:18
  2. Do you know: Obfuscated scripts
    By ErosOlmi in forum Do you know ...
    Replies: 0
    Last Post: 03-08-2008, 21:00

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
  •