Jump to content

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


Exit
 Share

Recommended Posts

Hi,

Yesterday I tried running my script on a different machine.

This Windows setup has a space in the username. This becomes a problem. I added screenshot below. 

Machines without space in username works fine.

The cmd window disapears after a couple of second the this was a lucky shot.

Might add screenshot of full output later.

This is latest version of auto3cmd (Version: 2022.07.22)

error.thumb.jpg.471047e06d7b7705e8052240e2a1d185.jpg

Edited by MightyWeird
Link to comment
Share on other sites

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

@MightyWeirdPlease confirm that the bug has been fixed.   Is fixed. See next post.

New version in first post

Version: 2022.07.27

- Support scripts with space in username.

Edited by Exit
Fix confirmed.

App: Au3toCmd              UDF: _SingleScript()                             

Link to comment
Share on other sites

  • 2 weeks later...

@ExitThank you for this excellent tool.
It saved my ass.
One of my clients had this false positive problem.
After a short search I found your tool and tried it out. It works great and my customer is happy.
However, I have no idea how this works.
My CMD knowledge is close to zero and I'm already having trouble with the first line of the CMD file.
But it works!!!
Now I would like the opinion of other users if the tool is safe and has no backdoors.
So if a DEV or MVP has an opinion on this, please don't be shy.

Thanks in advance
bartmon2005

Link to comment
Share on other sites

It's quite simple. You are thanking for the solution but superstitious of a backdoor ?!!!. All the code is there. Is worthless to have reasons in a chat with you because you don't even know CMD ?

On 8/22/2022 at 1:05 PM, bartmon2005 said:

My CMD knowledge is close to zero and I'm already having trouble with the first line of the CMD file.
But it works!!!

so, yes. It'd be a waste of time. Like I'm doing right now. Hereon after you're in my ignore list of, now 2 users.

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

Link to comment
Share on other sites

I fully agree with @argumentum !

@bartmon2005 :

On 8/22/2022 at 7:05 PM, bartmon2005 said:

Thank you for this excellent tool. It saved my ass. One of my clients had this false positive problem.

Your ass is safe, but your index finger was not capable to click the Thanks button - that's pathetic !

On 8/22/2022 at 7:05 PM, bartmon2005 said:

Now I would like the opinion of other users if the tool is safe and has no backdoors. So if a DEV or MVP has an opinion on this, please don't be shy.

@Exit is a well-known member of this forum. The thread is 8 pages long and his solution has already helped a lot of people.

Asking about the security of a solution may be legitimate (but what is secure these days?). Asking about backdoors insinuates that the author has dishonest intentions, and that is insulting.

 

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

Hello Exit,

Thank you for a great solution with excellent potential.

I may have to read through this thread a few more times to understand how I can use it best.

In the mean time, I'd thought I'd ask this question.

Is it possible to create a .cmd script and have the .ini file in the same directory, like: test.cmd and test.ini

Thanks again for your awesome contribution to the AutoIt community.

taurus905

"Never mistake kindness for weakness."-- Author Unknown --"The highest point to which a weak but experienced mind can rise is detecting the weakness of better men."-- Georg Lichtenberg --Simple Obfuscator (Beta not needed.), Random names for Vars and Funcs

Link to comment
Share on other sites

Hello Exit,

I feel it's just a simple edit to my "Example.au3" script below to have the "Example.ini" file created in the same directory where "Example.cmd" is ran from.

image.thumb.png.8bc849d831d9d31eb3540878531c18b5.png

Currently, it's created in "C:\Users\taurus905\AppData\Roaming\Au3toCmd\a3x\MCB7\"

image.thumb.png.bb835ba36ef90730e39ef6a3e8b4f116.png

Opt("MustDeclareVars", 1)
Opt("TrayMenuMode", 3) ; 1 = no default menu & 2 = items will not automatically check/uncheck when clicked

Global $s_Program_Name = StringTrimRight(@ScriptName, 4)

Global $p_Ini_File

Global $p_Example_Folder = @ScriptDir & "\Example\"
If Not FileExists($p_Example_Folder) Then DirCreate($p_Example_Folder)

Global $c_tray_Exit

_Start_Program() ; Start Program

While 1
    Switch TrayGetMsg()
        Case $c_tray_Exit
            _Exit() ; Exit
    EndSwitch
WEnd

Exit

Func _Start_Program() ; Start Program
    $p_Ini_File = @ScriptDir & "\" & $s_Program_Name & ".ini"
    _Read_Ini_File() ; Read Ini File
    _Create_Tray_Menu() ; Create Tray Menu
EndFunc ; ==> _Start_Program

Func _Read_Ini_File() ; Read Ini File
    If Not FileExists($p_Ini_File) Then
        IniWrite($p_Ini_File, "Section", "Key", "Value")
    EndIf

EndFunc ; ==> _Read_Ini_File

Func _Create_Tray_Menu() ; Create Tray Menu
    $c_tray_Exit = TrayCreateItem("Exit")
    TraySetState()
EndFunc ; ==> _Create_Tray_Menu

Func _Exit() ; Exit
    Exit
EndFunc ; ==> _Exit

Thank you for any direction you have to offer.

taurus905

"Never mistake kindness for weakness."-- Author Unknown --"The highest point to which a weak but experienced mind can rise is detecting the weakness of better men."-- Georg Lichtenberg --Simple Obfuscator (Beta not needed.), Random names for Vars and Funcs

Link to comment
Share on other sites

7 hours ago, taurus905 said:

Thank you for any direction you have to offer.

Here my directions:

;~ Global $p_Example_Folder = @ScriptDir & "\Example\"
   Global $p_Example_Folder = @WorkingDir

;~ $p_Ini_File = @ScriptDir & "\" & $s_Program_Name & ".ini"
   $p_Ini_File = @WorkingDir & "\" & $s_Program_Name & ".ini"

Because *.a3x is in the @scriptdir but *.cmd is in the @workingdir
And you want the *.ini file in the *.cmd directory.

I hope it helps. :thumbsup:

 

App: Au3toCmd              UDF: _SingleScript()                             

Link to comment
Share on other sites

Thank you, Exit.

I appreciate your detailed explanation.

I knew it was something simple I had read earlier that I didn't properly test.

I love AutoIt so much.

This will allow me to share what I've created over the years with so many non-programmer people.

You are the best.

taurus905

"Never mistake kindness for weakness."-- Author Unknown --"The highest point to which a weak but experienced mind can rise is detecting the weakness of better men."-- Georg Lichtenberg --Simple Obfuscator (Beta not needed.), Random names for Vars and Funcs

Link to comment
Share on other sites

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

New version in first post

Version: 2022.09.01

- Optimized annual cleaning.

 

When using Au3toCmd it makes no sense to write data to @scriptdir as that is not the directory where the CMD file is located.
The CMD file is located in @workingdir.
If data is written to @scriptdir, it was deleted during the annual cleanup.
With the new version, this data is retained and may have to be deleted manually.
In order not to suffer any data loss, ALL *.CMD should be recreated with Au3toCmd.

App: Au3toCmd              UDF: _SingleScript()                             

Link to comment
Share on other sites

  • 2 months later...

When running Deskotp\one-two\three\program.cmd, the cmd exits without writing anything to stdout and stderr. However, it works correctly if I put program.cmd directly in Desktop. Looks like it doesn't like nested folder with dashes in them?

Edited by BakedCakes
Link to comment
Share on other sites

  • 4 weeks later...
  • 2 weeks later...

1. Uninstall BitDefender

2. Set an exclusion on the folder in Windows Defender and/or BitDefender

3.  Email BitDefender with explanation of what the script does and why. Ask for exclusion? Try 300 words or less.

4. See point 1. 

Skysnake

Why is the snake in the sky?

Link to comment
Share on other sites

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