one_gadget 1.3.3 → 1.3.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 46423a7d1fbe920deb0a0c86e877395c28a26516
4
- data.tar.gz: 37ad2dba4c8bcd0350e7e5c30abc58780ebc59c8
3
+ metadata.gz: c69447e16b79866cfd608d5b714e65cfa16d2492
4
+ data.tar.gz: 2a4ce21e7fb1070845a8fde268e8477b23f2e8da
5
5
  SHA512:
6
- metadata.gz: 3f7b28afa0e63fedd2cb5c052775025dbae9a5325686aaaa0f648851ca2ae925f97d9221fb56cffabcaf6fd186328e6eab2103b07a51ee0b8d2a55f8e4af24ed
7
- data.tar.gz: 0e58a88ad35c44aebbfc816d15ad9fab1fd08231ed87809fa90f49d7d90c35f2356658904a5b4b96b15fc35e31a005c35bf9b6c05bb996b409d3462255073f02
6
+ metadata.gz: 3768aa0cd2c00128fe75e232a115ed81b9783efed4de71cdbc28322843c534b25d7da93b731b85f0c22d6b1b5cd592984cd002dce099c05c6ff020060e503f66
7
+ data.tar.gz: 72a5b04cc4cfa3dfcaa99c248260bb3e0040a45166fe566405158917ad11a3ed65c943902099a3471fb224a18dd726404650892ca7b239d6699a0dcfd2775cb1
data/bin/one_gadget CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  require 'one_gadget'
3
- require 'optionparser'
3
+ require 'optparse'
4
4
 
5
5
  options = { raw: false }
6
6
  usage = 'Usage: one_gadget [file] [options]'
@@ -112,7 +112,7 @@ module OneGadget
112
112
  def rw_offset
113
113
  elf = ELFTools::ELFFile.new(File.open(file))
114
114
  # How to find this offset correctly..?
115
- elf.segment_by_type(:dynamic).tag_by_type(:pltgot).header.d_val & -0x1000
115
+ elf.segment_by_type(:dynamic).tag_by_type(:pltgot).value
116
116
  end
117
117
 
118
118
  def should_null(str)
@@ -1,3 +1,3 @@
1
1
  module OneGadget
2
- VERSION = '1.3.3'.freeze
2
+ VERSION = '1.3.4.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: one_gadget
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.3
4
+ version: 1.3.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - david942j
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-16 00:00:00.000000000 Z
11
+ date: 2017-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: elftools
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '0.2'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: '0.2'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec
29
29
  requirement: !ruby/object:Gem::Requirement