akde/infosec

Information security is ultimately about managing risk


This post describes meth­ods to transform/obfuscate/minimize Lin­ux ELF files.

sstrip

The sec­tions are used for debug­ging and not nec­ces­sary for a pro­gram’s exe­cu­tion. The com­mand sstrip removes all sec­tions from the file.

sstrip bin.elf

After the com­mand, it can be ver­i­fied with readelf --sections bin.elf that there are not sec­tions are in the file.

Leave a Reply

About

Personal collection of some infosec stuff. Primary purpose of this site is to collect and organize for myself.

Note: Some content is not publicly visible due to copyright issues. Therefore, some links could be broken.

Checklists

Categories

Checklists: Ports

python -c 'import pty;pty.spawn("/bin/bash")';

python3 -c 'import pty;pty.spawn("/bin/bash")';