You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am unable to load pe files. The reason is that pe.sections[section_idx].get_data() always returns null. But after going through pefile library, I fixed the problem by givng the virtualaddress as the parameter for get_data().
This is the fix: self._section_text = pe.sections[section_idx].get_data(pe.sections[section_idx].VirtualAddress)
This hack works fine for me now . I don't know whether this is correct?
Thanks.
Regards,
Maggie
The text was updated successfully, but these errors were encountered:
I try it with several PE files and I couldn't reproduce your problem. Also, I check what get_data was loading with and without passing parameters and, in both cases, it's the same.
Hi,
I am unable to load pe files. The reason is that
pe.sections[section_idx].get_data()
always returns null. But after going throughpefile
library, I fixed the problem by givng the virtualaddress as the parameter forget_data()
.This is the fix:
self._section_text = pe.sections[section_idx].get_data(pe.sections[section_idx].VirtualAddress)
This hack works fine for me now . I don't know whether this is correct?
Thanks.
Regards,
Maggie
The text was updated successfully, but these errors were encountered: