Jump to content

Recommended Posts

Posted (edited)

#AutoIt3Wrapper_Au3Check_Parameters= -d does work.

;;;https://www.autoitscript.com/forum/topic/206047-autoit-v33154-beta/?do=findComment&comment=1486095
;~ #AutoIt3Wrapper_Au3Check_Parameters= -d ; works
Opt("MustDeclareVars", 1) ; don't work
AutoItSetOption("MustDeclareVars", 1)  ; don't work
$Var1 = 0

 

Edited by argumentum

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

  • Developers
Posted

I didn't ask for longer code but rather all output. I have given up guessing version numbers for quit a while so simply want exact info before even start looking at any issue.

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted (edited)

Ok, I replaced the v3.3.15.4 ( failing ) with v3.3.14.5 ( ok ) and even 1.54.22.0 ( ok ).
So the issue started with this new version.
 

>"C:\PortableAU3\autoit-v3.3.15.4\SciTE\..\AutoIt3.exe" "C:\PortableAU3\autoit-v3.3.15.4\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3" /Prod /AU3check /in "C:\PortableAU3\autoit-v3.3.15.4\Examples\GUI\SampleControls.au3"
+>13:28:54 Starting AutoIt3Wrapper (21.316.1639.1) from:SciTE.exe (4.4.6.0)  Keyboard:00000409  OS:WIN_10/2004  CPU:X64 OS:X64  Environment(Language:0409)  CodePage:0  utf8.auto.check:4
+>         SciTEDir => C:\PortableAU3\autoit-v3.3.15.4\SciTE   UserDir => C:\PortableAU3\autoit-v3.3.15.4\SciTE\AutoIt3Wrapper   SCITE_USERHOME => C:\PortableAU3\autoit-v3.3.15.4\SciTE\SCITE_USERHOME 
>Running AU3Check (3.3.15.4)  from:C:\PortableAU3\autoit-v3.3.15.4  input:C:\PortableAU3\autoit-v3.3.15.4\Examples\GUI\SampleControls.au3
+>13:28:54 AU3Check ended.rc:0
+>13:28:54 AutoIt3Wrapper Finished.
>Exit code: 0    Time: 0.6618

I edited and added the code to "SampleControls.au3" for this test. 

Edited by argumentum
more info.

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

  • Developers
Posted

Think I've found the regression which was introduced by the changes I've made for 

  Quote

the check for MAX 9223372036854775807 and MIN -9223372036854775808 values for INTEGER

Expand  

Please check this Beta v3.3.15.5 of au3check to see what other things I've broken. :) 

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

  • 1 month later...
Posted

Hi John , could you make changes to the compiler so that the binary files look different than the previous versions of autoit - so now, after compiling, most anti-viruses detect programs as false positive. Now autoit refers to the PSAPI.dll library which makes decompilation easier for people who want to steal the source of the program. If you had added a function that would randomly reference psapi.dll it would be much safer. Check it out here: https://github.com/mrexodia/SimpleAutoItCrypter

  • Developers
Posted
  On 9/21/2021 at 2:40 PM, SzymonN said:

so now, after compiling, most anti-viruses detect programs as false positive.

Expand  

That battle is lost many moons ago and doing that won;t help other than a couple of days.

  On 9/21/2021 at 2:40 PM, SzymonN said:

Now autoit refers to the PSAPI.dll library which makes decompilation easier for people who want to steal the source of the program. If you had added a function that would randomly reference psapi.dll it would be much safer.

Expand  

Another battle that was lost and done with as this is an interpreter language so it will always be in a sort of readable form unless somebody is able to write a real compiler. (Just my humble opinion :) 

Jos

ps: its is Jon you wanted to address I guess ;)  

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted
  On 9/21/2021 at 4:00 PM, Jos said:

unless somebody is able to write a real compiler.

Expand  

Even then, a little play with Ghidra will ruin the hope of a software secret.

  Reveal hidden contents

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Posted
  On 9/21/2021 at 5:58 PM, jchd said:

Even then, a little play with Ghidra will ruin the hope of a software secret.

Expand  

I would even go one step further. 99.9% of all scripts created with AutoIt accomplish ordinary (daily) tasks. No one would ever think of using AutoIt to develop the control software for a Warp Drive, and so there is no serious motivation to decompile scripts at all ;).

Musashi-C64.png

"In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move."

Posted

My remark was more generic, but you're correct in the AutoIt case.

  Reveal hidden contents

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Posted
  On 9/21/2021 at 7:12 PM, Musashi said:

I would even go one step further. 99.9% of all scripts created with AutoIt accomplish ordinary (daily) tasks. No one would ever think of using AutoIt to develop the control software for a Warp Drive, and so there is no serious motivation to decompile scripts at all ;).

Expand  

if I rember well, decompilation of C# is also so easy.... but this wont stop the BIG CORP to develop BIG PROJECTS in this language.
Am I right or am I wrong?
 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted (edited)

Reverse engineering is possible as soon as you can get your hands on the software and have enough knowledge of the hardware platform it's intended to run on. Limited knowledge of the hardware can be compensated by educated guesswork.

Tamper-resistant hardware is expensive but many (if not most, given sufficient money) attempts have failed and have been successfully tampered with.
Look: you're powerful and want to develop a proprietary CPU to resist reverse-engineering. You must have a team of fully trusted specialized CPU/peripherals design engineers, have your own silicon foundry again with fully trusted specialized engineers and have a team of fully trusted system/application programmers. That's a very large number of people that you've to trust long-term for not leaking any internal secrets until they die or till when reverse engineering the thing has no remnant value. Moreover you need to avoid huge mistakes in the design in the first place (remember the Clipper chip!)

As an elementary example of how easy a non-trivial device can be reverse-engineered, look at how fast *one* resourceless retired hobbist is doing with a low-end (~120 US$) oscilloscope tablet: today about 85% of the thing is back to fixed running C source. https://www.eevblog.com/forum/testgear/fnirsi-1013d-100mhz-tablet-oscilloscope/1000/

This effort (only one guy actually working on that) arose with this guy receiving a DOA device and he decided to fix it. The device uses an oldish ARM CPU without available datasheet so you don't know its architecture nor its instruction set, a large FPGA and a handful of unmarked chips. He started rev-engineering hardware around mid-February (circa page 26 of the thread) and he's now almost done with most of the software functions, thanks to Ghidra. He's even writen his own emulator for this particular ARM processor to "speed up his understanding of how things work". I'm following the thread as I own such a device and I expect we have a fixed and enhanced open-source version by the end of the year. Give this task to a dozen hungry motivated young engineers working 18h/day with some good resources and you get the whole thing wide open in 1 - 2 weeks.

White-, grey-, black-hat conferences regularly show the power of teams fully involved and knowledgeable in rev-engineering of potentially "anything with software inside".

Edited by jchd
  Reveal hidden contents

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Posted
  On 9/21/2021 at 4:00 PM, Jos said:

That battle is lost many moons ago and doing that won;t help other than a couple of days.

Another battle that was lost and done with as this is an interpreter language so it will always be in a sort of readable form unless somebody is able to write a real compiler. (Just my humble opinion :) 

Jos

ps: its is Jon you wanted to address I guess ;)  

Expand  


Maybe two versions of the compiler, one that requires signing the program with a qualified signature. ?

Posted
  On 9/23/2021 at 10:06 AM, SzymonN said:


Maybe two versions of the compiler, one that requires signing the program with a qualified signature. ?

Expand  

I do not see any problem that you can't sign your compiled code.
I've been doing this with my programs for almost two years.

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted
  On 9/23/2021 at 10:28 AM, mLipok said:

I do not see any problem that you can't sign your compiled code.
I've been doing this with my programs for almost two years.

Expand  

Of course, but there might have to be a dedicated compiler that requires signing at compile time to verify that the certificate is valid

Posted (edited)
  On 9/24/2021 at 1:55 PM, SzymonN said:

Of course, but there might have to be a dedicated compiler that requires signing at compile time to verify that the certificate is valid

Expand  

This was exactly what I was saying....  Almostly... I mean first compile then use your own signing tool.

  On 9/23/2021 at 10:28 AM, mLipok said:

I do not see any problem that you can't sign your compiled code.
I've been doing this with my programs for almost two years.

Expand  

So you must sign it with your own cert and password.
Because I doubt there is NO WAY! that  @Jon or anybody give you their own cert and password.

Edited by mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

  • Developers
Posted
  On 9/24/2021 at 1:58 PM, mLipok said:

Because I doubt @Jon or anybody give you their own cert and password.

Expand  

Scratch doubt and replace that with a definite NO WAY!

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...