Jump to content

Au3toCmd -- Avoid false virus positives. (Version: 2022.09.01)


Exit
 Share

Recommended Posts

  • 2 months later...

@KoolDJMic

Change line 23 from

Global $Debug = 0     ;  change to '1' for debugging informations on output console

to

Global $Debug = 1     ;  change to '1' for debugging informations on output console

and show the complete console log in a spoiler.

 

Edited by Exit

App: Au3toCmd              UDF: _SingleScript()                             

Link to comment
Share on other sites

  • 4 months later...
1 hour ago, chungchung said:

i do not see anything to download.

Copy the code an run ??

Yes.

Take the code from Post #1 -> https://www.autoitscript.com/forum/topic/201562-au3tocmd-avoid-false-positives/?do=findComment&comment=1446375

Edited by Musashi

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."

Link to comment
Share on other sites

On 1/29/2020 at 8:46 PM, Exit said:

Unfortunately, because the "alternate data streams", this CMD file cannot be distributed via FTP or email.
Only a USB stiof ck or removable disk formatted with NTFS can be used.

As the new version now uses Base64 data instead of ADS, this statement is out of date.

The new version is in first post.

App: Au3toCmd              UDF: _SingleScript()                             

Link to comment
Share on other sites

2 hours ago, Exit said:

The new version is in first post.

(in advance : in your ADS version my script runs without problems)

System : Win7 SP1, AutoIt 3.3.14.0

The script I tested with is only a "Dummy GUI" without any further functionalities :

#AutoIt3Wrapper_UseUpx = N
#include <GUIConstantsEx.au3>
#include <Constants.au3>

_Main()

Func _Main()
    Local $iGuiMsg, $OkButton, $iStatusLabel
    GUICreate("Dummy program :", 600, 260, -1, -1, 0x00010000)
    GUISetBkColor(0xB7E99B)     ; (0xFFFFFF)
    GUICtrlCreateLabel("Dummy program", 10, 10, 600, 35)
    GUICtrlSetFont(-1, 12, 800)
    GUICtrlCreateLabel('  -> For test purposes !', 10, 60, 600, 35)
    GUICtrlSetFont(-1, 12, 600)
    GUICtrlCreateLabel("  -> Only this GUI is shown", 10, 100, 600, 35)
    GUICtrlSetFont(-1, 12, 600)
    $OkButton = GUICtrlCreateButton("Leave program", 200, 180, 200, 40)
    GUISetState(@SW_SHOW)

    While 1
        $iGuiMsg = GUIGetMsg()
        Select
            Case $iGuiMsg = $GUI_EVENT_CLOSE
                ExitLoop
            Case $iGuiMsg = $OkButton
                ExitLoop
        EndSelect
    WEnd
    GUIDelete()
EndFunc ;==>_Main

When I run the new Base64 Au3toCmd, I get a DummyGUI.cmd, a DummyGUI.exe and a link on my desktop.

Unfortunately, neither the link nor the .cmd itself launches the application. Only a console window flashes very briefly.

Here are the first lines of the .cmd :

@if not DEFINED _ set _=goto & start "" /min "%~f0" %* & exit
---------------------------                          &%_%:%_%
-----BEGIN CERTIFICATE-----
o0hLvphsSqmZTFMKhtZIfUFVMyFFQTA2Taj/cySnPPZ6EvFnrMGT52tDylKmrQAA
4bs6IaUp4+znC5guQL3hmt6ARrGdazsh1LHWdTrIPcbQM/cUr8sXopQBjROI/mSV
Yee2TRf4AAD5px18bf/KNGJo6nBs9S4nRvQx6FEMqBklH699w2/gWlK8Kp67UrEL
...

 

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."

Link to comment
Share on other sites

I tested your script and it shows the GUI.

There should be NO  DummyGUI.exe 

Maybe it's a holdover from trying the ADS version.

Please change line 38 from 
Global $_a2c_Debug = 0 ;  change to '1' for debugging informations on output console
to
Global $_a2c_Debug = 1 ;  change to '1' for debugging informations on output console

and send the total output in a spoiler.
 

 

 

App: Au3toCmd              UDF: _SingleScript()                             

Link to comment
Share on other sites

To avoid any disturbances, I have created a separate folder for the Base64 version of Au3toCmd.

This folder only contains the files :

  • Au3toCmd.au3 (the new version -> Global $_a2c_Debug set to 1 )
  • DummyGUI.au3

(there is no compiled DummyGUI.exe on my hard disk anymore)

Now I start (F5) Au3toCmd.au3 from within the SciTE Editor and select DummyGUI.au3 using the FileDialog. Result :

au3tocmd-pic1.jpg.df2f7e4f3c39fa49fdb38aafd571087c.jpg

The file DummyGUI.cmd exists in the above mentioned directory, as well as the desktop shortcut DummyGUI.lnk.

When I now double click on the desktop link, I get an extensive error message. I have inserted the command pause before the exit in the .cmd, otherwise the message is immediately gone.

Spoiler

CMDError.thumb.jpg.3bdd9603c84b8322f0bd549c7df4fcc0.jpg

 

Edited by Musashi

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."

Link to comment
Share on other sites

There is apparently an authorization problem.
I have now discovered this problem in the 32-bit version of Win 7 as well.
This error did not occur with the 64 bit version.
What is your version? 32 or 64 bit?

Right click on DummyGUI.cmd and then click on 'Run as administrator'

Then does it work?

App: Au3toCmd              UDF: _SingleScript()                             

Link to comment
Share on other sites

10 minutes ago, Exit said:

I have now discovered this problem in the 32-bit version of Win 7 as well.

I'm running Win 7 Pro 64 Bit, Servicepack 1 and AutoIt 3.3.14.0 on my PC at home.

If I run the link via ''Run as administrator'' then the GUI appears. One of the error messages already stated : FSUTIL requires administrator rights. So far, so good.

Just for the sake of it : Insert a pause at the end of the .cmd, and look at the console output.

...
             & @CRLF & 'pause' _
             & @CRLF & 'exit')
             ...

There already appears in the first line the error message : The command ----------------------- is either incorrectly written or could not be found--------------------------- 

How does the first 5 lines of your generated .cmd file look like ? 

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."

Link to comment
Share on other sites

The error on the second line is intentional.
It's supposed to confuse the script kids.
The minus signs, which are the same as those in the next line, give the impression that this is a comment.
It is only distracted by the last few characters on the line.
These characters are resolved into a Goto command, which transfers control to the label ': GOTO' towards the end of the script.
I will still be working on a solution to fix the admin problem.
Stay tuned.

App: Au3toCmd              UDF: _SingleScript()                             

Link to comment
Share on other sites

13 hours ago, Exit said:

I will still be working on a solution to fix the admin problem.
Stay tuned.

[...]

Solved the authorization problem.

Yes, I can confirm that :)

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."

Link to comment
Share on other sites

  • Exit changed the title to Au3toCmd -- Avoid false virus positives. (Version: 2022.09.01)

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
 Share

×
×
  • Create New...