H4x! MAD H4X!!!!!!!!!!! d00000000000d!!!!!!!!!!!!!!!!11111111111111111
iscorehacked.sh and dos
Dealing with a weird issue where Pressflow is causing all manner of weird and hard to trace issues when placed on top of a D6 site. Sounds like something’s verbroken, ja. A quick check with iscorehacked.sh is revealing – wull, everything is hacked!
…Except, manually comparing files shows no difference between files in random sampling. Aside from the dos format. Yes, a file saved in a dos format will be revealed by diff as having differences. Folks, be careful what you’re editing with/how you’re saving files if you use Windows. :p
…That or make sure you have dos2unix installed (yum -y install dos2unix on real(tm) Linux; apt-get install tofrodos for those of you who are heretics) and then execute the following:
find . -type f \( -name '*.css' -o -name '*.js' -o -name '*.php' -o -name '*.module' -o -name '*.inc' -o -name '*.pl' -o -name '*.sh' \) -exec dos2unix {} \;
…That’ll run some fun happy dos2unix conversion while skipping anything that shouldn’t be touched. Hell, it’s probably skipping things that should be touched, but hey, these are the filetypes I needed to cover.