sherlockmeister
2008-12-21 19:03:49
hello, this is a little project that came into my head even though it had been i long time since i visited the forums. basically it is a scar script source code parser that either just writes the script to a file formatted or transforms it so that all names are replaced with nonsense, statements are all jumbled with labels/jumps, integer literals are obbed, and spacing is messed up. just run from the command line with in path, out path, and flags.
flags are like this:
none means just format
"-n" means mess up names/integers
"-j" means jumble up statements with gotos (also enables "-n")
"-t" means mess up spacing
well, heres and example to clear things up a little:
java Obfuscater "in.scar" "-j" "-t" "out.scar"
or
java Obfuscater "in.scar" "out.scar"
(make sure flags are between in and out path)
just as an example i will post bejeweled.scar (in you scripts\games directory lol) obfuscated with all flags
dont expect this to be completely bug free so you may not always get a compilable output
if you dont know how to run this and you really want to try it out then just post you script
(as you can see the obbed file with all flags is freaking huge so i will post it also without the spacing flag because it takes scar like 20 seconds to compile it)
ok another thing dont compile source file on your desktop!!! you will end up with like 30 separate class files!
flags are like this:
none means just format
"-n" means mess up names/integers
"-j" means jumble up statements with gotos (also enables "-n")
"-t" means mess up spacing
well, heres and example to clear things up a little:
java Obfuscater "in.scar" "-j" "-t" "out.scar"
or
java Obfuscater "in.scar" "out.scar"
(make sure flags are between in and out path)
just as an example i will post bejeweled.scar (in you scripts\games directory lol) obfuscated with all flags
dont expect this to be completely bug free so you may not always get a compilable output
if you dont know how to run this and you really want to try it out then just post you script
(as you can see the obbed file with all flags is freaking huge so i will post it also without the spacing flag because it takes scar like 20 seconds to compile it)
ok another thing dont compile source file on your desktop!!! you will end up with like 30 separate class files!