Popular Post Exit Posted January 29, 2020 Popular Post Posted January 29, 2020 (edited) Au3toCmd --- Avoid false virus positives Since many virus scanners sometimes prevent a "compiled autoit EXE" from being executed as "false positive", the "*.A3X" format is a suitable format to avoid this problem. See here for more information. In order to simplify this procedure, I wrote the Au3toCmd script. Here a *.Cmd file is generated from a *.Au3 file. The necessary files Autoit3.exe and *.A3x are added to the "*.Cmd" file as "alternate data streams" "Base64" encoded data. Now the Autoit Script can be called by clicking on the cmd file and the anti-virus scanners do not recognize the "false positive". If the short-term flashing of the CMD window bothers you, you can click the desktop shutcut that runs in a minimized window. Unfortunately, because the "alternate data streams", this CMD file cannot be distributed via FTP or email. Only a USB sti 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. For reasons of compatibility, the old version was sunk into the spoiler here. Spoiler To solve this problem, Au3toCmd can be used to create a ZIP/EXE file that is email and FTP compatible. Transfer this file to the target directory on the target system. Expand the ZIP file on the target system and execute the "*.ADS.Run-me-first.cmd" script. or Execute the self extracting Setup.exe. The original CMD file is created again and the auxiliary files are deleted. Edit (2020.05.16) The new version also accepts A3X and EXE files. This means that A3X and EXE files that have been compiled with special options can be used. As a side effect, other EXE files can also be included in the CMD file and therefore not detectable by virus scanners. Edit (2020.07.18) Desktop shortcuts created automatically. Just delete them, if you don't like them. Edit (2020.07.22) Using codepage 1252 Edit (2020.12.07) Self extracting Setup.exe added Edit (2020.12.12) 32 Bit Windows enabled. ANSI console enabled. Edit (2020.12.21) Input of remote system target directory added. Edit (2021.05.13) Adapted to the new www.7-zip.org directory structure. No functional changes. Edit (2021.05.15) Fixed bug in Setup.exe processing. No functional changes. Edit (2021.05.17) Fixed bug when using Windows7. No functional changes. Here the source of Au3toCmd.au3 This is a nice example of peaceful interaction between Autoit (*. au3), Dos (*. cmd), Powershell(*.ps1) and VSBasic (*. vbs) The script can be called with a file name of an AU3 script as a parameter. If no name is entered, a query is made. For more information, see the header of the script. Suggestions, improvements and bug reports are welcome. Here the versions using base64 data Version: 2022.05.12 (Support blanks in pathnames) Version: 2022.06.23 (Support release candidates. Changed @CrLf to @Lf. Annual cleaning. Optimized #AutoIt3Wrapper handling) Version: 2022.07.22 (Support scripts with the same name but different content in different directories) Version: 2022.07.27 (Support blanks in usernames)Au3toCmd.au3 Version: 2022.09.01 (Optimized annual cleaning)Au3toCmd.au3 Edited September 1, 2022 by Exit new version Digisoul, Skysnake, MightyWeird and 6 others 6 3 App: Au3toCmd UDF: _SingleScript()
Exit Posted February 11, 2020 Author Posted February 11, 2020 As can be seen in the first post, the functionality has been extended to A3X and EXE files. It would be great if you would test the script and give feedback here. At least a 💚 in the first post. Thanks Borje 1 App: Au3toCmd UDF: _SingleScript()
Borje Posted February 25, 2020 Posted February 25, 2020 Hi all members when i run the au3tocmd program everything works fine but I have a question: if you select an exe file with icon you can somehow get the icon from the exe file that was previously selected and then when you will create shortcut so the exe file icon appears in the cmd shortcut?
Exit Posted February 25, 2020 Author Posted February 25, 2020 I just uploaded a new version that takes @Borje's request into account. If there is an associated * .ico file or an icon in the * .exe source file, this icon is used in the link. Furthermore, a ZIP file can now also be created in Windows 7, provided that at least Powershell 5.0 was additionally installed. @Borje: Can you please test the new features 😀 App: Au3toCmd UDF: _SingleScript()
Borje Posted February 25, 2020 Posted February 25, 2020 Exit fixed it and all works perfect now thank you Exit you so much you are a super man. Exit 1
Skysnake Posted March 31, 2020 Posted March 31, 2020 Interesting solution Exit 1 Skysnake Why is the snake in the sky?
TallPaul Posted June 15, 2020 Posted June 15, 2020 Sorry for the rookie confusion here, but here goes... In my current test project using Java Selenium, when I run it locally from Eclipse, I start the browser by providing my application URL, and then run auth.exe in order to respond to a Windows NTLM login prompt. Everything works fine so far, but based on what I am reading and hearing, it sounds like I can anticipate running into this "false positive" antivirus issue when I go to operationalize my test with Github, Bamboo/Azure, and Saucelabs. I copied the script text from these posts into my Au3toCmd.au3 file. I now have the following files in my project folder and I just now installed Autoit3 to my computer. Where do I navigate to, and which command(s) do I issue to, generate the .cmd file? And then in my test, what file do I run in place of the current auth.exe to respond the Windows login? Thanks very much. This script From Exit looks like a winner ! Directory of C:\Users\my-user-info\git\my-test-folder\src\main\resources\autoit 06/15/2020 03:02 PM <DIR> . 06/15/2020 03:02 PM <DIR> .. 06/15/2020 03:05 PM 7,519 Au3toCmd.au3 02/21/2020 03:04 PM 190 auth.au3 02/21/2020 03:04 PM 866,304 auth.exe 02/21/2020 03:04 PM 48 setvalue.au3 02/21/2020 03:04 PM 865,792 setvalue.exe 5 File(s) 1,739,853 bytes 2 Dir(s) 19,080,040,448 bytes free
Borje Posted July 7, 2020 Posted July 7, 2020 Hi Exit I had some trouble I can not have the zip function to work i have installer powershell 5.1 but not works please see attached file. What do you think the problem is?
Exit Posted July 7, 2020 Author Posted July 7, 2020 @Borje Just test if the Powershell Compress-Archive function is available. Open a command line prompt and enter: Powershell Compress-Archive -? Show the output messages here. App: Au3toCmd UDF: _SingleScript()
Borje Posted July 7, 2020 Posted July 7, 2020 Windows PowerShell Copyright (C) 2016 Microsoft Corporation. All rights reserved. PS C:\Users\Börje> Powershell Compress-Archive -? NAME Compress-Archive SYNTAX Compress-Archive [-Path] <string[]> [-DestinationPath] <string> [-CompressionLevel {Optimal | NoCompression | Faste st}] [-WhatIf] [-Confirm] [<CommonParameters>] Compress-Archive [-Path] <string[]> [-DestinationPath] <string> -Update [-CompressionLevel {Optimal | NoCompression | Fastest}] [-WhatIf] [-Confirm] [<CommonParameters>] Compress-Archive [-Path] <string[]> [-DestinationPath] <string> -Force [-CompressionLevel {Optimal | NoCompression | Fastest}] [-WhatIf] [-Confirm] [<CommonParameters>] Compress-Archive [-DestinationPath] <string> -LiteralPath <string[]> -Update [-CompressionLevel {Optimal | NoCompre ssion | Fastest}] [-WhatIf] [-Confirm] [<CommonParameters>] Compress-Archive [-DestinationPath] <string> -LiteralPath <string[]> -Force [-CompressionLevel {Optimal | NoCompres sion | Fastest}] [-WhatIf] [-Confirm] [<CommonParameters>] Compress-Archive [-DestinationPath] <string> -LiteralPath <string[]> [-CompressionLevel {Optimal | NoCompression | Fastest}] [-WhatIf] [-Confirm] [<CommonParameters>] ALIASES None REMARKS Get-Help cannot find the Help files for this cmdlet on this computer. It is displaying only partial help. -- To download and install Help files for the module that includes this cmdlet, use Update-Help. -- To view the Help topic for this cmdlet online, type: "Get-Help Compress-Archive -Online" or go to http://go.microsoft.com/fwlink/?LinkID=393252.
Exit Posted July 7, 2020 Author Posted July 7, 2020 (edited) @Borje Do you have a blank or special character in the path name? Please show your source pathname Edited July 7, 2020 by Exit App: Au3toCmd UDF: _SingleScript()
Exit Posted July 7, 2020 Author Posted July 7, 2020 Do you have a blank or special character in the path name? Please show the full path name. For example: "C:\users\admin\autoit\test.au3" App: Au3toCmd UDF: _SingleScript()
Borje Posted July 7, 2020 Posted July 7, 2020 No, my path is c:\undetect\test.au3 from there i run the file, but is that you mean?
Exit Posted July 7, 2020 Author Posted July 7, 2020 Please save a copy of Test.au3 on the desktop and try it from there. I suspect an authority problem with the directory 'undetect'. App: Au3toCmd UDF: _SingleScript()
Borje Posted July 7, 2020 Posted July 7, 2020 Ok i have done that and that's works you have right undetect is not good to use. Thanks for your help !!!
Exit Posted July 7, 2020 Author Posted July 7, 2020 It is usually a bad idea to use the filesystem outside of your own user directory. In your case, Powershell was installed correctly, but had no authorization to write to "undetect". The error message is therefore misleading. Let's see what I can do there. App: Au3toCmd UDF: _SingleScript()
Borje Posted July 7, 2020 Posted July 7, 2020 Ok thanks for the info it works good now, Let's see what you can do to error message is therefore misleading. but you are a very good programmer. Exit 1
Borje Posted July 8, 2020 Posted July 8, 2020 My question here is after I run the script and processed a file where is the program data or that file i have processed stored? Is that anybody here that knows and can explain.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now