• Home
  • Raw
  • Download

Lines Matching refs:dump

777         return '\n'.join( self.dump() )
780 return '<Structure: %s>' % (' '.join( [' '.join(s.split()) for s in self.dump()] ))
783 def dump(self, indentation=0): member in Structure
786 dump = []
788 dump.append('[%s]' % self.name)
806 dump.append('%-30s %s' % (key+':', val_str))
808 return dump
3106 def dump_info(self, dump=None): argument
3110 if dump is None:
3111 dump = Dump()
3115 dump.add_header('Parsing Warnings')
3117 dump.add_line(warning)
3118 dump.add_newline()
3121 dump.add_header('DOS_HEADER')
3122 dump.add_lines(self.DOS_HEADER.dump())
3123 dump.add_newline()
3125 dump.add_header('NT_HEADERS')
3126 dump.add_lines(self.NT_HEADERS.dump())
3127 dump.add_newline()
3129 dump.add_header('FILE_HEADER')
3130 dump.add_lines(self.FILE_HEADER.dump())
3134 dump.add('Flags: ')
3139 dump.add_line(', '.join(flags))
3140 dump.add_newline()
3143 dump.add_header('OPTIONAL_HEADER')
3144 dump.add_lines(self.OPTIONAL_HEADER.dump())
3148 dump.add('DllCharacteristics: ')
3153 dump.add_line(', '.join(flags))
3154 dump.add_newline()
3157 dump.add_header('PE Sections')
3162 dump.add_lines(section.dump())
3163 dump.add('Flags: ')
3168 dump.add_line(', '.join(flags))
3169 dump.add_line('Entropy: %f (Min=0.0, Max=8.0)' % section.get_entropy() )
3171 dump.add_line('MD5 hash: %s' % section.get_hash_md5() )
3173 dump.add_line('SHA-1 hash: %s' % section.get_hash_sha1() )
3175 dump.add_line('SHA-256 hash: %s' % section.get_hash_sha256() )
3177 dump.add_line('SHA-512 hash: %s' % section.get_hash_sha512() )
3178 dump.add_newline()
3185 dump.add_header('Directories')
3188 dump.add_lines(directory.dump())
3189 dump.add_newline()
3193 dump.add_header('Version Information')
3194 dump.add_lines(self.VS_VERSIONINFO.dump())
3195 dump.add_newline()
3198 dump.add_lines(self.VS_FIXEDFILEINFO.dump())
3199 dump.add_newline()
3203 dump.add_lines(entry.dump())
3204 dump.add_newline()
3208 [dump.add_line(' '+line) for line in st_entry.dump()]
3209 dump.add_line(' LangID: '+st_entry.LangID)
3210 dump.add_newline()
3212 dump.add_line(' '+str_entry[0]+': '+str_entry[1])
3213 dump.add_newline()
3218 [dump.add_line(' '+line) for line in var_entry.dump()]
3219 dump.add_line(
3223 dump.add_newline()
3228 dump.add_header('Exported symbols')
3229 dump.add_lines(self.DIRECTORY_ENTRY_EXPORT.struct.dump())
3230 dump.add_newline()
3231 dump.add_line('%-10s %-10s %s' % ('Ordinal', 'RVA', 'Name'))
3233 dump.add('%-10d 0x%08Xh %s' % (
3236 dump.add_line(' forwarder: %s' % export.forwarder)
3238 dump.add_newline()
3240 dump.add_newline()
3243 dump.add_header('Imported symbols')
3245 dump.add_lines(module.struct.dump())
3246 dump.add_newline()
3250 dump.add('%s Ordinal[%s] (Imported by Ordinal)' % (
3253 dump.add('%s.%s Hint[%s]' % (
3257 dump.add_line(' Bound: 0x%08X' % (symbol.bound))
3259 dump.add_newline()
3260 dump.add_newline()
3264 dump.add_header('Bound imports')
3267 dump.add_lines(bound_imp_desc.struct.dump())
3268 dump.add_line('DLL: %s' % bound_imp_desc.name)
3269 dump.add_newline()
3272 dump.add_lines(bound_imp_ref.struct.dump(), 4)
3273 dump.add_line('DLL: %s' % bound_imp_ref.name, 4)
3274 dump.add_newline()
3278 dump.add_header('Delay Imported symbols')
3281 dump.add_lines(module.struct.dump())
3282 dump.add_newline()
3286 dump.add('%s Ordinal[%s] (Imported by Ordinal)' % (
3289 dump.add('%s.%s Hint[%s]' % (
3293 dump.add_line(' Bound: 0x%08X' % (symbol.bound))
3295 dump.add_newline()
3296 dump.add_newline()
3300 dump.add_header('Resource directory')
3302 dump.add_lines(self.DIRECTORY_ENTRY_RESOURCE.struct.dump())
3307 dump.add_line('Name: [%s]' % resource_type.name, 2)
3309 dump.add_line('Id: [0x%X] (%s)' % (
3314 dump.add_lines(resource_type.struct.dump(), 2)
3318 dump.add_lines(resource_type.directory.struct.dump(), 4)
3323 dump.add_line('Name: [%s]' % resource_id.name, 6)
3325 dump.add_line('Id: [0x%X]' % resource_id.struct.Id, 6)
3327 dump.add_lines(resource_id.struct.dump(), 6)
3330 dump.add_lines(resource_id.directory.struct.dump(), 8)
3337 dump.add_lines(resource_lang.struct.dump(), 10)
3338 dump.add_lines(resource_lang.data.struct.dump(), 12)
3339 dump.add_newline()
3341 dump.add_newline()
3348 dump.add_header('TLS')
3349 dump.add_lines(self.DIRECTORY_ENTRY_TLS.struct.dump())
3350 dump.add_newline()
3354 dump.add_header('Debug information')
3356 dump.add_lines(dbg.struct.dump())
3358 dump.add_line('Type: '+DEBUG_TYPE[dbg.struct.Type])
3360 dump.add_line('Type: 0x%x(Unknown)' % dbg.struct.Type)
3361 dump.add_newline()
3365 dump.add_header('Base relocations')
3367 dump.add_lines(base_reloc.struct.dump())
3370 dump.add_line('%08Xh %s' % (
3373 dump.add_line('0x%08X 0x%x(Unknown)' % (
3375 dump.add_newline()
3378 return dump.get_text()