Add data about which tables are present.

This commit is contained in:
Vlad Grigorescu 2015-04-19 18:41:32 -04:00
parent ea36686524
commit a2eff14e05
3 changed files with 26 additions and 3 deletions

View file

@ -97,6 +97,11 @@ event pe_optional_header(f: fa_file, h: PE::OptionalHeader) &priority=5
if ( c == 0x400 )
f$pe$uses_seh = F;
}
f$pe$has_export_table = (|h$rvas| > 0 && h$rvas[0] > 0);
f$pe$has_import_table = (|h$rvas| > 1 && h$rvas[1] > 0);
f$pe$has_cert_table = (|h$rvas| > 4 && h$rvas[4] > 0);
f$pe$has_debug_data = (|h$rvas| > 6 && h$rvas[6] > 0);
}
event pe_section_header(f: fa_file, h: PE::SectionHeader) &priority=5

View file

@ -2603,7 +2603,8 @@ type PE::OptionalHeader: record {
subsystem : count;
dll_characteristics : set[count];
loader_flags : count;
number_of_rva_and_sizes : count;
rvas : vector of count;
};
## Record for Portable Executable (PE) section headers.