fix fail on libc-2.15

This commit is contained in:
david942j 2017-03-21 15:38:22 +08:00
parent 29f3d6f005
commit 98c1a21ed0
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ module OneGadget
def rw_offset
elf = ELFTools::ELFFile.new(File.open(file))
# How to find this offset correctly..?
elf.segment_by_type(:dynamic).tag_by_type(:pltgot).header.d_val & -0x1000
elf.segment_by_type(:dynamic).tag_by_type(:pltgot).header.d_val
end
def should_null(str)