I subscribe to a feed from Jason Haley. Jason's blog is just a bunch of links to thing he has found, I am pretty sure that he makes his list prior to reading any of them. But Jason's feed reading habits are not what I want to talk about today. One of his links is.
TheCodeProject is a site that hosts user written articles about development for the Windows platform, primarily for the ,Net stuff. Like most user generated sites most of the content sucks. But today I saw something there that is way past the normal suckage. Behold Bat File Compiler. Now at first blush that sound pretty cool, but if you read the article there is no compiling going on, hell there is not even any interpretation of the bat file going on! All this so called compiler does is stick a text file into a resource string of an executable! whats the fucking point of that? I mean it is fucking brilliant. Before my bat file only depended on a cmd.exe now I can depend on the whole .net runtime.
It get more hilarious the closer you look at it.
Take the comments for example: Someone suggests he change code like:
into
and people actually argue that that change makes the code less clear! Someone need to explain to me how removing 3 lines make it less clear
Or the guy who claims that it would be perfect if only he was encrypting the text before storing it in the executable, so no one can break in and change his bat file. It should be made clear to people that by writing the file out to %TEMP% he is already giving aways the contents of the bat file. Just because the text was unchanged when he wrote it out doesn't mean it wasn't changed between write out and execution. This is something that none of the people commenting on this wonder of a utility seem to grasp. Not even the guy who wrote the damn thing, for proof not the what the dumbass replied when ask what the fuck the point is
TheCodeProject is a site that hosts user written articles about development for the Windows platform, primarily for the ,Net stuff. Like most user generated sites most of the content sucks. But today I saw something there that is way past the normal suckage. Behold Bat File Compiler. Now at first blush that sound pretty cool, but if you read the article there is no compiling going on, hell there is not even any interpretation of the bat file going on! All this so called compiler does is stick a text file into a resource string of an executable! whats the fucking point of that? I mean it is fucking brilliant. Before my bat file only depended on a cmd.exe now I can depend on the whole .net runtime.
It get more hilarious the closer you look at it.
Take the comments for example: Someone suggests he change code like:
if x > 0:
return True
else:
return False
into
return x > 0
and people actually argue that that change makes the code less clear! Someone need to explain to me how removing 3 lines make it less clear
Or the guy who claims that it would be perfect if only he was encrypting the text before storing it in the executable, so no one can break in and change his bat file. It should be made clear to people that by writing the file out to %TEMP% he is already giving aways the contents of the bat file. Just because the text was unchanged when he wrote it out doesn't mean it wasn't changed between write out and execution. This is something that none of the people commenting on this wonder of a utility seem to grasp. Not even the guy who wrote the damn thing, for proof not the what the dumbass replied when ask what the fuck the point is
For example when you want to protect content of your bat file or when you would like to run it without creating a window.
His program does nothing to protect the contents of a bat file, and it is already possible to run a batch file without creating a window.
The guy's other article are equally hysterical. It is a shame that the few useful article on the site are buried under a mountain of crap like this.
Another fun trick this enable is try storing the stub program (the part that writes out the bat file and then call CreateProcess on it) in itself, for a complicated fork bomb.