Batch script, a.k.a. bat
or cmd
, is good - easy to learn, easy to code, easy to use, easy to distrubute. However it lets coders down when they need to achieve something complex in batch script. The more important thing is that it encounters a security problem when it contains sensitive information such as user name for logging in, passwords, authentication codes, and even its source code.
I did a little research on compiling batch script and the result is as follows:
- Batch Compiler
- Can it compile? Yes.
- Can it execute? No, even with
Windows 95
compatibility. - How to compile? Unkown due to the above issue.
- Is it secure? Unkown due to the above issue.
- Quick Batch File Compiler
- Can it compile? Yes.
- Can it execute? Yes.
- How to compile? Borland Delphi 6.0 - 7.0
- Is it secure? No, it will write a temporary batch script in
%temp%
that can be accessed directly.
- Advanced BAT to EXE Converter
- Can it compile? Yes.
- Can it execute? No, even with
Windows 95
compatibility. - How to compile? Unkown due to the above issue.
- Is it secure? Unkown due to the above issue.
- Bat To Exe Converter
- Can it compile? Yes.
- Can it execute? Yes.
- How to compile? Microsoft Visual C++ 6.0
- Is it secure? No, it will write a temporary batch script in
%temp%
that can be accessed directly.
Conclusion:
The above four compilers seem to have problems with compatibility and methods of compilation. They are not reliable and secure to compile batch script.
Improvement to be made:
Better: To write the temporary batch script to RAM instead of %temp%
.
Even better: Convert batch script to Low-Level Programming Language.
Ideal: Optimize LLPL for compatibility of different Windows.
Lastly, here is my question:
Is there a way to compile and secure batch script that is not using the method of the second and the forth software from above?
Thanks!