I wanted to briefly touch on a tool called objcopy because it's a useful tool, even if we may not use it on every analysis we perform. This tool allows us to make a copy of a binary file, and if we choose, allows us to convert that binary file into one of many binary formats, including the ELF format. Additionally, if the need arises, we can use objcopy to strip symbols from a binary as we copy it. The primary use of objcopy that I've encountered is when we need to convert a binary into a raw format for use with the sc tool I mentioned in the previous chapter. Also, in case we've forgotten, sc comes installed by default in Kali Linux and works right out of the box. I have yet to find a way to get sc working properly on 32-bit Ubuntu Linux. Nonetheless, objcopy allows us to strip the ELF format from a binary and copy the raw format into another file...




















































