WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Samples from Users
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

SourceK0d3R


SourceK0d3R

For anyone with WinBatch + Compiler v2002H or newer:

Never lose your source code again!

SourceK0d3R is a WinBatch script utility designed to work in conjunction with the WinBatch Compiler. Its main purpose is to stop the source code for a compiled exe from ever being lost. If you have any kind of compiled WinBatch file (large or small exe or even wbc) created via SourceK0d3R then you can get back your source code. You don't need to have SourceK0d3R or WinBatch to get it back, just the exe (and a password!).

Q. "Can I get the source code out of my compiled exe file?"
A. Normally... NO! ...... but if you used SourceK0d3R when compiling your file then the answer is now YES!

Just run it as it is in wbt form and it will prompt you to do the rest... Hope people find it useful, any bugs (shouldn't be many - it's well tested) please post them on the WinBatch Tech Support Forum and I'll try to help when I have time - can't promise when though.

I have attached the help file here for you to look at if you like. (It is actually embedded inside SourceK0d3R - but you wouldn't see it if you didn't run it)
sourcek0d3r.chm By the way, the largish size is partly due to this help file - it is saved as ASCII text inside an array within the script. The other reason it's bigish is because I made it user friendly and backward compatible to v2002H.

Here is a quick explanation of how it works: SourceK0d3R basically makes a new temporary source file that #includes your original file at the beginning so that your stuff runs normally. At the end is the new routine that includes the dialog that can be invoked by running with a special parameter, and a winbatch array that contains all your code and any #included files. This array is ASCII data, but it is actually a transformed ZIP file containing tags that substitute for Nulls, CRs LFs EOFs etc that couldn't normally be stored as ASCII.

This new temporary source file is sent to the compiler for the usual compile treatment - your original script is left untouched. I was careful to make sure nothing harmful or silly is done, so it works in harmony with things as they are supposed to work.

Later, if the exe is started with a special parameter, it will jump to this SourceK0d3R routine inside it and the dialog will pop up, prompting you for the password to restore the code - it checks it and if it's correct, it "uncrunches" the array back into a normal zip that can be saved to disk. Developer: IFICantBYTE

[SourceK0d3r-Originalv1.zip]


Article ID:   W17240
File Created: 2019:08:14:09:34:18
Last Updated: 2019:08:14:09:34:18