notagoodcoder Posted January 15, 2014 Posted January 15, 2014 Hello all...I could really use some help. If there is someone out there and willing please reply. Issue: I have a working script that also works when compiled. When I obfuscate the script but do not compile it the script will run as expected. Once I compile the obfuscated script it breaks and I get this error "Windows cannot access the specified device, path, or file. You may not have appropriate permissions to access the item." When I remove the "", @SW_HIDE and re-obfuscate and recompile it works, except I get a DOS window that I do not want. One more curve ball, if I use the original obfuscated script that is compiled (don't remove the "", @SW_HIDE) and check the x64 box in Aut2EXE and compile, then it works but only on 64-bit OS's of course. I need one 32-bit EXE that has obfuscated source code so it can run on 32 and 64-bit systems. Here are the very simple scripts. I changed info for security reasons but the scripts match. All scripts are obfuscated and compiled on a 32-bit OS. Windows 7 in this case if that matters. ----------------------------- Script #1 - The obfuscated script works but when it is compiled, it breaks, unless it is compiled with the x64 box checked. Run(@ComSpec & " /c " & '"c:somedirectorysome.exe" -switch1 switch2 -switch3 123456 -switch4 password -switch5 username -switch6 A.B.C.D:0000', "", @SW_HIDE) Results: Script1.exe - No Obfuscation works. Script1_ob.exe (Obfuscated) - "Windows cannot access the specified device, path, or file. YOu may not have appropriate permissions to access the item. ---------------------------------- Script #2 - This works on both 32-bit and 64-bit OS's but I get a DOS Window, which I don't want. Run(@ComSpec & " /c " & '"c:somedirectorysome.exe" -switch1 switch2 -switch3 123456 -switch4 password -switch5 username -switch6 A.B.C.D:0000') Script2.exe - Works but has DOS Window - I need the DOS window hidden, hence the attempt to use @SW_HIDE Script2-ob.exe )Obfuscated - Works but has DOS Window - I need the DOS window hidden, hence the attempt to use @SW_HIDE How can I get script #2 to work with no DOS Window? Thank you!
BrewManNH Posted January 15, 2014 Posted January 15, 2014 Couple of suggestions, paragraph breaks and post the code. I can't read what you wrote there because it's making my head hurt trying to figure it out. If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag GudeHow to ask questions the smart way! I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from. Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays. - ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script. - Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label. - _FileGetProperty - Retrieve the properties of a file - SciTE Toolbar - A toolbar demo for use with the SciTE editor - GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI. - Latin Square password generator
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