|
cssrt- lu malware contest
i was reading the analysis of the elf file in the blog by sp about this contest i had looked at this unrunnable and corrupt file and didnt find a motive to dig deeper like he correctly says this file has been tampered by replacing all the 0x00 bytes to 0x20 and it wasnt loading and showing any usefull information in any of the usual tools like objdump,ndisasm,hte,idafree,ald,gdb,readelf all spewed some garbage like corrupt unidentified etc etc strings :) elfsh was able to load the file but it too wasnt able to go any further apart from spitting the header details :) but the elfshs header details gave an inkling about the replace :) and like he says i did a mass replace of 0x20, to 0x00 some perl oneliner i forgot already perl -pi -e 's/\20/\00/g' < newelf > modelf the purpose of this blog being thats not the right way :) this mass replace though making it loadable in all the utilities :) just wont let you see the virus that is embedded inside that file aka RST.B here is a log of elfsh-> hdr details now elfsh gave me an inkling that some thing is absolutely corrupt the machine cant be 8195 which means efi-32 and pax flags all showed 0x20202020 which normally would have been 000000 loading the modified on hte now loaded the file without problems hte normally shows the disassembly right from entry point but this time it was showing me disassembly from the end of hdr so i wanted to see whats at the ep :) and hte shows me this Comments
| ||||||