mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-03 10:51:01 +00:00
Find strings in more sections for PE binaries
This commit is contained in:
parent
7708ab0fc9
commit
c834239830
@ -277,8 +277,13 @@ static int is_data_section(RBinFile *a, RBinSection *s) {
|
||||
return true;
|
||||
#define X 1
|
||||
#define ROW (4 | 2)
|
||||
/* probably too much false positives in here, or thats fine? */
|
||||
if (strstr (o->info->bclass, "PE") && s->srwx & ROW && !(s->srwx & X) && s->size > 0) {
|
||||
if (!strcmp (s->name, ".rdata")) // Maybe other sections are interesting too?
|
||||
if (!strcmp (s->name, ".rsrc"))
|
||||
return true;
|
||||
if (!strcmp (s->name, ".data"))
|
||||
return true;
|
||||
if (!strcmp (s->name, ".rdata"))
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user