    def get_section_name(self, section_offset):
        """
        Get section names
        """
        if self.e_shstrndx not in self.sec_hdr:
            print "[!] Failed to get self.e_shstrndx. Fuzzing?"
            return False
        if self.sec_hdr[self.e_shstrndx]['sh_offset'] > self.file_size:
            print "[!] Fuzzing the sh_offset"
            return False
        self.bin_file.seek(self.sec_hdr[self.e_shstrndx]['sh_offset'] + section_offset, 0)
        name = ''
        j = ''
        while True:
            j = self.bin_file.read(1)
            if len(j) == 0:
                break
            elif j == "\x00":
                break
            else:
                name += j
        #print "name:", name
        return name
Get section names
elfbin.py