pwntools 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -3
- data/lib/pwn.rb +1 -0
- data/lib/pwnlib/abi.rb +1 -0
- data/lib/pwnlib/asm.rb +83 -42
- data/lib/pwnlib/constants/constant.rb +4 -1
- data/lib/pwnlib/constants/constants.rb +3 -0
- data/lib/pwnlib/constants/linux/amd64.rb +2 -0
- data/lib/pwnlib/constants/linux/i386.rb +2 -0
- data/lib/pwnlib/context.rb +10 -1
- data/lib/pwnlib/dynelf.rb +7 -2
- data/lib/pwnlib/elf/elf.rb +79 -6
- data/lib/pwnlib/errors.rb +3 -2
- data/lib/pwnlib/ext/array.rb +2 -1
- data/lib/pwnlib/ext/helper.rb +3 -2
- data/lib/pwnlib/ext/integer.rb +2 -1
- data/lib/pwnlib/ext/string.rb +3 -2
- data/lib/pwnlib/logger.rb +21 -1
- data/lib/pwnlib/memleak.rb +1 -0
- data/lib/pwnlib/pwn.rb +5 -1
- data/lib/pwnlib/reg_sort.rb +5 -0
- data/lib/pwnlib/runner.rb +53 -0
- data/lib/pwnlib/shellcraft/generators/amd64/common/common.rb +2 -0
- data/lib/pwnlib/shellcraft/generators/amd64/common/infloop.rb +1 -0
- data/lib/pwnlib/shellcraft/generators/amd64/common/memcpy.rb +5 -1
- data/lib/pwnlib/shellcraft/generators/amd64/common/mov.rb +4 -0
- data/lib/pwnlib/shellcraft/generators/amd64/common/nop.rb +2 -0
- data/lib/pwnlib/shellcraft/generators/amd64/common/popad.rb +1 -0
- data/lib/pwnlib/shellcraft/generators/amd64/common/pushstr.rb +3 -1
- data/lib/pwnlib/shellcraft/generators/amd64/common/pushstr_array.rb +1 -0
- data/lib/pwnlib/shellcraft/generators/amd64/common/ret.rb +1 -0
- data/lib/pwnlib/shellcraft/generators/amd64/common/setregs.rb +3 -2
- data/lib/pwnlib/shellcraft/generators/amd64/linux/cat.rb +3 -2
- data/lib/pwnlib/shellcraft/generators/amd64/linux/execve.rb +1 -0
- data/lib/pwnlib/shellcraft/generators/amd64/linux/exit.rb +1 -0
- data/lib/pwnlib/shellcraft/generators/amd64/linux/linux.rb +2 -0
- data/lib/pwnlib/shellcraft/generators/amd64/linux/ls.rb +1 -0
- data/lib/pwnlib/shellcraft/generators/amd64/linux/open.rb +1 -0
- data/lib/pwnlib/shellcraft/generators/amd64/linux/sh.rb +3 -2
- data/lib/pwnlib/shellcraft/generators/amd64/linux/sleep.rb +24 -0
- data/lib/pwnlib/shellcraft/generators/amd64/linux/syscall.rb +1 -0
- data/lib/pwnlib/shellcraft/generators/helper.rb +11 -2
- data/lib/pwnlib/shellcraft/generators/i386/common/common.rb +2 -0
- data/lib/pwnlib/shellcraft/generators/i386/common/infloop.rb +1 -0
- data/lib/pwnlib/shellcraft/generators/i386/common/memcpy.rb +34 -0
- data/lib/pwnlib/shellcraft/generators/i386/common/mov.rb +3 -0
- data/lib/pwnlib/shellcraft/generators/i386/common/nop.rb +2 -0
- data/lib/pwnlib/shellcraft/generators/i386/common/pushstr.rb +2 -0
- data/lib/pwnlib/shellcraft/generators/i386/common/pushstr_array.rb +1 -0
- data/lib/pwnlib/shellcraft/generators/i386/common/setregs.rb +3 -2
- data/lib/pwnlib/shellcraft/generators/i386/linux/cat.rb +3 -2
- data/lib/pwnlib/shellcraft/generators/i386/linux/execve.rb +1 -0
- data/lib/pwnlib/shellcraft/generators/i386/linux/exit.rb +1 -0
- data/lib/pwnlib/shellcraft/generators/i386/linux/linux.rb +2 -0
- data/lib/pwnlib/shellcraft/generators/i386/linux/ls.rb +1 -0
- data/lib/pwnlib/shellcraft/generators/i386/linux/open.rb +1 -0
- data/lib/pwnlib/shellcraft/generators/i386/linux/sh.rb +3 -2
- data/lib/pwnlib/shellcraft/generators/i386/linux/sleep.rb +24 -0
- data/lib/pwnlib/shellcraft/generators/i386/linux/syscall.rb +1 -0
- data/lib/pwnlib/shellcraft/generators/x86/common/common.rb +5 -3
- data/lib/pwnlib/shellcraft/generators/x86/common/infloop.rb +2 -0
- data/lib/pwnlib/shellcraft/generators/x86/common/memcpy.rb +17 -0
- data/lib/pwnlib/shellcraft/generators/x86/common/mov.rb +2 -0
- data/lib/pwnlib/shellcraft/generators/x86/common/pushstr.rb +2 -0
- data/lib/pwnlib/shellcraft/generators/x86/common/pushstr_array.rb +1 -0
- data/lib/pwnlib/shellcraft/generators/x86/common/setregs.rb +8 -6
- data/lib/pwnlib/shellcraft/generators/x86/linux/cat.rb +1 -0
- data/lib/pwnlib/shellcraft/generators/x86/linux/execve.rb +3 -0
- data/lib/pwnlib/shellcraft/generators/x86/linux/exit.rb +1 -0
- data/lib/pwnlib/shellcraft/generators/x86/linux/linux.rb +2 -0
- data/lib/pwnlib/shellcraft/generators/x86/linux/ls.rb +1 -0
- data/lib/pwnlib/shellcraft/generators/x86/linux/open.rb +1 -0
- data/lib/pwnlib/shellcraft/generators/x86/linux/sh.rb +1 -0
- data/lib/pwnlib/shellcraft/generators/x86/linux/sleep.rb +52 -0
- data/lib/pwnlib/shellcraft/generators/x86/linux/syscall.rb +10 -10
- data/lib/pwnlib/shellcraft/registers.rb +5 -1
- data/lib/pwnlib/shellcraft/shellcraft.rb +8 -3
- data/lib/pwnlib/timer.rb +6 -2
- data/lib/pwnlib/tubes/buffer.rb +4 -1
- data/lib/pwnlib/tubes/process.rb +2 -0
- data/lib/pwnlib/tubes/serialtube.rb +3 -1
- data/lib/pwnlib/tubes/sock.rb +7 -1
- data/lib/pwnlib/tubes/tube.rb +23 -3
- data/lib/pwnlib/ui.rb +21 -0
- data/lib/pwnlib/util/cyclic.rb +2 -0
- data/lib/pwnlib/util/fiddling.rb +37 -5
- data/lib/pwnlib/util/getdents.rb +1 -0
- data/lib/pwnlib/util/hexdump.rb +8 -5
- data/lib/pwnlib/util/lists.rb +3 -0
- data/lib/pwnlib/util/packing.rb +5 -2
- data/lib/pwnlib/util/ruby.rb +1 -0
- data/lib/pwnlib/version.rb +2 -1
- data/test/abi_test.rb +1 -0
- data/test/asm_test.rb +75 -85
- data/test/constants/constant_test.rb +1 -0
- data/test/constants/constants_test.rb +1 -0
- data/test/context_test.rb +1 -0
- data/test/data/assembly/aarch64.s +19 -0
- data/test/data/assembly/amd64.s +21 -0
- data/test/data/assembly/arm.s +9 -0
- data/test/data/assembly/i386.s +21 -0
- data/test/data/assembly/mips.s +16 -0
- data/test/data/assembly/mips64.s +6 -0
- data/test/data/assembly/powerpc.s +18 -0
- data/test/data/assembly/powerpc64.s +36 -0
- data/test/data/assembly/sparc.s +33 -0
- data/test/data/assembly/sparc64.s +5 -0
- data/test/data/assembly/thumb.s +37 -0
- data/test/data/echo.rb +1 -0
- data/test/dynelf_test.rb +3 -1
- data/test/elf/elf_test.rb +18 -0
- data/test/ext_test.rb +1 -0
- data/test/files/use_pwn.rb +1 -0
- data/test/files/use_pwnlib.rb +1 -0
- data/test/full_file_test.rb +6 -0
- data/test/logger_test.rb +24 -3
- data/test/memleak_test.rb +1 -0
- data/test/reg_sort_test.rb +1 -0
- data/test/runner_test.rb +32 -0
- data/test/shellcraft/infloop_test.rb +1 -0
- data/test/shellcraft/linux/cat_test.rb +1 -0
- data/test/shellcraft/linux/ls_test.rb +1 -0
- data/test/shellcraft/linux/sh_test.rb +1 -0
- data/test/shellcraft/linux/sleep_test.rb +68 -0
- data/test/shellcraft/linux/syscalls/execve_test.rb +1 -0
- data/test/shellcraft/linux/syscalls/exit_test.rb +1 -0
- data/test/shellcraft/linux/syscalls/open_test.rb +1 -0
- data/test/shellcraft/linux/syscalls/syscall_test.rb +1 -0
- data/test/shellcraft/memcpy_test.rb +20 -5
- data/test/shellcraft/mov_test.rb +1 -0
- data/test/shellcraft/nop_test.rb +1 -0
- data/test/shellcraft/popad_test.rb +1 -0
- data/test/shellcraft/pushstr_array_test.rb +1 -0
- data/test/shellcraft/pushstr_test.rb +1 -0
- data/test/shellcraft/registers_test.rb +1 -0
- data/test/shellcraft/ret_test.rb +1 -0
- data/test/shellcraft/setregs_test.rb +9 -8
- data/test/shellcraft/shellcraft_test.rb +1 -0
- data/test/test_helper.rb +28 -0
- data/test/timer_test.rb +2 -1
- data/test/tubes/buffer_test.rb +1 -0
- data/test/tubes/process_test.rb +8 -2
- data/test/tubes/serialtube_test.rb +1 -4
- data/test/tubes/sock_test.rb +1 -0
- data/test/tubes/tube_test.rb +10 -1
- data/test/ui_test.rb +18 -0
- data/test/util/cyclic_test.rb +1 -0
- data/test/util/fiddling_test.rb +8 -0
- data/test/util/getdents_test.rb +1 -0
- data/test/util/hexdump_test.rb +2 -1
- data/test/util/lists_test.rb +1 -0
- data/test/util/packing_test.rb +3 -2
- metadata +119 -59
data/test/util/cyclic_test.rb
CHANGED
data/test/util/fiddling_test.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
# encoding: ASCII-8BIT
|
2
|
+
# frozen_string_literal: true
|
2
3
|
|
3
4
|
require 'test_helper'
|
4
5
|
|
@@ -104,4 +105,11 @@ class FiddlingTest < MiniTest::Test
|
|
104
105
|
assert_equal('test', b64d('dGVzdA=='))
|
105
106
|
assert_equal("\xb2\x18\xa4" * 100, b64d('shik' * 100))
|
106
107
|
end
|
108
|
+
|
109
|
+
def test_xor
|
110
|
+
assert_equal('happy', xor("\xE8\xE1\xF0\xF0\xF9", "\x80"))
|
111
|
+
assert_equal('happy', xor("\x80", "\xE8\xE1\xF0\xF0\xF9"))
|
112
|
+
assert_equal("\x04\x04\x04\x02\v\r\x11\x10\x11", xor('plaintext', 'thekey'))
|
113
|
+
assert_equal('2172172172', xor('217', "\x00" * 10))
|
114
|
+
end
|
107
115
|
end
|
data/test/util/getdents_test.rb
CHANGED
data/test/util/hexdump_test.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
# encoding: UTF-8
|
2
|
+
# frozen_string_literal: true
|
2
3
|
|
3
4
|
# This test use UTF-8 encoding for strings since the output for hexdump contains lots of UTF-8 characters.
|
4
5
|
|
@@ -153,7 +154,7 @@ class HexDumpTest < MiniTest::Test
|
|
153
154
|
assert_lines_equal(<<-'EOS', hexdump('abcdefghi', highlight: 'aeiou'))
|
154
155
|
00000000 61! 62 63 64 65! 66 67 68 69! │a!bcd│e!fgh│i!│
|
155
156
|
00000009
|
156
|
-
|
157
|
+
EOS
|
157
158
|
ensure
|
158
159
|
::Pwnlib::Util::HexDump.const_set(:HIGHLIGHT_STYLE, orig_style)
|
159
160
|
$VERBOSE = orig_verbose
|
data/test/util/lists_test.rb
CHANGED
data/test/util/packing_test.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
# encoding: ASCII-8BIT
|
2
|
+
# frozen_string_literal: true
|
2
3
|
|
3
4
|
require 'test_helper'
|
4
5
|
|
@@ -116,8 +117,8 @@ class PackingTest < MiniTest::Test
|
|
116
117
|
def test_up_rand
|
117
118
|
srand(217)
|
118
119
|
[8, 16, 32, 64].each do |sz|
|
119
|
-
u = ->(*x) { ::Pwnlib::Util::Packing.public_send("u#{sz}", *x) }
|
120
|
-
p = ->(*x) { ::Pwnlib::Util::Packing.public_send("p#{sz}", *x) }
|
120
|
+
u = ->(*x, **k) { ::Pwnlib::Util::Packing.public_send("u#{sz}", *x, **k) }
|
121
|
+
p = ->(*x, **k) { ::Pwnlib::Util::Packing.public_send("p#{sz}", *x, **k) }
|
121
122
|
100.times do
|
122
123
|
limit = (1 << sz)
|
123
124
|
val = rand(0...limit)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pwntools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- peter50216@gmail.com
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2020-08-07 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: crabstone
|
@@ -18,14 +18,14 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - "~>"
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: '
|
21
|
+
version: '4'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
26
|
- - "~>"
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version: '
|
28
|
+
version: '4'
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: dentaku
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
@@ -35,7 +35,7 @@ dependencies:
|
|
35
35
|
version: 2.0.11
|
36
36
|
- - "<"
|
37
37
|
- !ruby/object:Gem::Version
|
38
|
-
version: 3.
|
38
|
+
version: 3.4.0
|
39
39
|
type: :runtime
|
40
40
|
prerelease: false
|
41
41
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -45,21 +45,27 @@ dependencies:
|
|
45
45
|
version: 2.0.11
|
46
46
|
- - "<"
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: 3.
|
48
|
+
version: 3.4.0
|
49
49
|
- !ruby/object:Gem::Dependency
|
50
50
|
name: elftools
|
51
51
|
requirement: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
|
-
- - "
|
53
|
+
- - ">="
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: 1.0.1
|
56
|
+
- - "<"
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
version: 1.2.0
|
56
59
|
type: :runtime
|
57
60
|
prerelease: false
|
58
61
|
version_requirements: !ruby/object:Gem::Requirement
|
59
62
|
requirements:
|
60
|
-
- - "
|
63
|
+
- - ">="
|
61
64
|
- !ruby/object:Gem::Version
|
62
65
|
version: 1.0.1
|
66
|
+
- - "<"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 1.2.0
|
63
69
|
- !ruby/object:Gem::Dependency
|
64
70
|
name: keystone-engine
|
65
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -88,6 +94,26 @@ dependencies:
|
|
88
94
|
- - "~>"
|
89
95
|
- !ruby/object:Gem::Version
|
90
96
|
version: '0.9'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: one_gadget
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 1.6.2
|
104
|
+
- - "<"
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
version: 1.8.0
|
107
|
+
type: :runtime
|
108
|
+
prerelease: false
|
109
|
+
version_requirements: !ruby/object:Gem::Requirement
|
110
|
+
requirements:
|
111
|
+
- - ">="
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
version: 1.6.2
|
114
|
+
- - "<"
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: 1.8.0
|
91
117
|
- !ruby/object:Gem::Dependency
|
92
118
|
name: rainbow
|
93
119
|
requirement: !ruby/object:Gem::Requirement
|
@@ -170,28 +196,28 @@ dependencies:
|
|
170
196
|
requirements:
|
171
197
|
- - "~>"
|
172
198
|
- !ruby/object:Gem::Version
|
173
|
-
version: '
|
199
|
+
version: '13.0'
|
174
200
|
type: :development
|
175
201
|
prerelease: false
|
176
202
|
version_requirements: !ruby/object:Gem::Requirement
|
177
203
|
requirements:
|
178
204
|
- - "~>"
|
179
205
|
- !ruby/object:Gem::Version
|
180
|
-
version: '
|
206
|
+
version: '13.0'
|
181
207
|
- !ruby/object:Gem::Dependency
|
182
208
|
name: rubocop
|
183
209
|
requirement: !ruby/object:Gem::Requirement
|
184
210
|
requirements:
|
185
211
|
- - "~>"
|
186
212
|
- !ruby/object:Gem::Version
|
187
|
-
version: '0.
|
213
|
+
version: '0.63'
|
188
214
|
type: :development
|
189
215
|
prerelease: false
|
190
216
|
version_requirements: !ruby/object:Gem::Requirement
|
191
217
|
requirements:
|
192
218
|
- - "~>"
|
193
219
|
- !ruby/object:Gem::Version
|
194
|
-
version: '0.
|
220
|
+
version: '0.63'
|
195
221
|
- !ruby/object:Gem::Dependency
|
196
222
|
name: simplecov
|
197
223
|
requirement: !ruby/object:Gem::Requirement
|
@@ -268,6 +294,7 @@ files:
|
|
268
294
|
- lib/pwnlib/memleak.rb
|
269
295
|
- lib/pwnlib/pwn.rb
|
270
296
|
- lib/pwnlib/reg_sort.rb
|
297
|
+
- lib/pwnlib/runner.rb
|
271
298
|
- lib/pwnlib/shellcraft/generators/amd64/common/common.rb
|
272
299
|
- lib/pwnlib/shellcraft/generators/amd64/common/infloop.rb
|
273
300
|
- lib/pwnlib/shellcraft/generators/amd64/common/memcpy.rb
|
@@ -285,10 +312,12 @@ files:
|
|
285
312
|
- lib/pwnlib/shellcraft/generators/amd64/linux/ls.rb
|
286
313
|
- lib/pwnlib/shellcraft/generators/amd64/linux/open.rb
|
287
314
|
- lib/pwnlib/shellcraft/generators/amd64/linux/sh.rb
|
315
|
+
- lib/pwnlib/shellcraft/generators/amd64/linux/sleep.rb
|
288
316
|
- lib/pwnlib/shellcraft/generators/amd64/linux/syscall.rb
|
289
317
|
- lib/pwnlib/shellcraft/generators/helper.rb
|
290
318
|
- lib/pwnlib/shellcraft/generators/i386/common/common.rb
|
291
319
|
- lib/pwnlib/shellcraft/generators/i386/common/infloop.rb
|
320
|
+
- lib/pwnlib/shellcraft/generators/i386/common/memcpy.rb
|
292
321
|
- lib/pwnlib/shellcraft/generators/i386/common/mov.rb
|
293
322
|
- lib/pwnlib/shellcraft/generators/i386/common/nop.rb
|
294
323
|
- lib/pwnlib/shellcraft/generators/i386/common/pushstr.rb
|
@@ -301,9 +330,11 @@ files:
|
|
301
330
|
- lib/pwnlib/shellcraft/generators/i386/linux/ls.rb
|
302
331
|
- lib/pwnlib/shellcraft/generators/i386/linux/open.rb
|
303
332
|
- lib/pwnlib/shellcraft/generators/i386/linux/sh.rb
|
333
|
+
- lib/pwnlib/shellcraft/generators/i386/linux/sleep.rb
|
304
334
|
- lib/pwnlib/shellcraft/generators/i386/linux/syscall.rb
|
305
335
|
- lib/pwnlib/shellcraft/generators/x86/common/common.rb
|
306
336
|
- lib/pwnlib/shellcraft/generators/x86/common/infloop.rb
|
337
|
+
- lib/pwnlib/shellcraft/generators/x86/common/memcpy.rb
|
307
338
|
- lib/pwnlib/shellcraft/generators/x86/common/mov.rb
|
308
339
|
- lib/pwnlib/shellcraft/generators/x86/common/pushstr.rb
|
309
340
|
- lib/pwnlib/shellcraft/generators/x86/common/pushstr_array.rb
|
@@ -315,6 +346,7 @@ files:
|
|
315
346
|
- lib/pwnlib/shellcraft/generators/x86/linux/ls.rb
|
316
347
|
- lib/pwnlib/shellcraft/generators/x86/linux/open.rb
|
317
348
|
- lib/pwnlib/shellcraft/generators/x86/linux/sh.rb
|
349
|
+
- lib/pwnlib/shellcraft/generators/x86/linux/sleep.rb
|
318
350
|
- lib/pwnlib/shellcraft/generators/x86/linux/syscall.rb
|
319
351
|
- lib/pwnlib/shellcraft/registers.rb
|
320
352
|
- lib/pwnlib/shellcraft/shellcraft.rb
|
@@ -324,6 +356,7 @@ files:
|
|
324
356
|
- lib/pwnlib/tubes/serialtube.rb
|
325
357
|
- lib/pwnlib/tubes/sock.rb
|
326
358
|
- lib/pwnlib/tubes/tube.rb
|
359
|
+
- lib/pwnlib/ui.rb
|
327
360
|
- lib/pwnlib/util/cyclic.rb
|
328
361
|
- lib/pwnlib/util/fiddling.rb
|
329
362
|
- lib/pwnlib/util/getdents.rb
|
@@ -337,6 +370,17 @@ files:
|
|
337
370
|
- test/constants/constant_test.rb
|
338
371
|
- test/constants/constants_test.rb
|
339
372
|
- test/context_test.rb
|
373
|
+
- test/data/assembly/aarch64.s
|
374
|
+
- test/data/assembly/amd64.s
|
375
|
+
- test/data/assembly/arm.s
|
376
|
+
- test/data/assembly/i386.s
|
377
|
+
- test/data/assembly/mips.s
|
378
|
+
- test/data/assembly/mips64.s
|
379
|
+
- test/data/assembly/powerpc.s
|
380
|
+
- test/data/assembly/powerpc64.s
|
381
|
+
- test/data/assembly/sparc.s
|
382
|
+
- test/data/assembly/sparc64.s
|
383
|
+
- test/data/assembly/thumb.s
|
340
384
|
- test/data/echo.rb
|
341
385
|
- test/data/elfs/Makefile
|
342
386
|
- test/data/elfs/amd64.frelro.elf
|
@@ -364,10 +408,12 @@ files:
|
|
364
408
|
- test/logger_test.rb
|
365
409
|
- test/memleak_test.rb
|
366
410
|
- test/reg_sort_test.rb
|
411
|
+
- test/runner_test.rb
|
367
412
|
- test/shellcraft/infloop_test.rb
|
368
413
|
- test/shellcraft/linux/cat_test.rb
|
369
414
|
- test/shellcraft/linux/ls_test.rb
|
370
415
|
- test/shellcraft/linux/sh_test.rb
|
416
|
+
- test/shellcraft/linux/sleep_test.rb
|
371
417
|
- test/shellcraft/linux/syscalls/execve_test.rb
|
372
418
|
- test/shellcraft/linux/syscalls/exit_test.rb
|
373
419
|
- test/shellcraft/linux/syscalls/open_test.rb
|
@@ -389,6 +435,7 @@ files:
|
|
389
435
|
- test/tubes/serialtube_test.rb
|
390
436
|
- test/tubes/sock_test.rb
|
391
437
|
- test/tubes/tube_test.rb
|
438
|
+
- test/ui_test.rb
|
392
439
|
- test/util/cyclic_test.rb
|
393
440
|
- test/util/fiddling_test.rb
|
394
441
|
- test/util/getdents_test.rb
|
@@ -407,79 +454,92 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
407
454
|
requirements:
|
408
455
|
- - ">="
|
409
456
|
- !ruby/object:Gem::Version
|
410
|
-
version: 2.
|
457
|
+
version: '2.3'
|
411
458
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
412
459
|
requirements:
|
413
460
|
- - ">="
|
414
461
|
- !ruby/object:Gem::Version
|
415
462
|
version: '0'
|
416
463
|
requirements: []
|
417
|
-
|
418
|
-
rubygems_version: 2.7.6
|
464
|
+
rubygems_version: 3.0.3
|
419
465
|
signing_key:
|
420
466
|
specification_version: 4
|
421
467
|
summary: pwntools
|
422
468
|
test_files:
|
423
|
-
- test/
|
424
|
-
- test/
|
469
|
+
- test/full_file_test.rb
|
470
|
+
- test/tubes/sock_test.rb
|
471
|
+
- test/tubes/tube_test.rb
|
472
|
+
- test/tubes/serialtube_test.rb
|
473
|
+
- test/tubes/process_test.rb
|
474
|
+
- test/tubes/buffer_test.rb
|
475
|
+
- test/files/use_pwnlib.rb
|
476
|
+
- test/files/use_pwn.rb
|
477
|
+
- test/timer_test.rb
|
425
478
|
- test/data/elfs/amd64.frelro.elf
|
426
|
-
- test/data/elfs/
|
427
|
-
- test/data/elfs/amd64.
|
479
|
+
- test/data/elfs/source.cpp
|
480
|
+
- test/data/elfs/amd64.frelro.pie.elf
|
428
481
|
- test/data/elfs/i386.prelro.elf
|
482
|
+
- test/data/elfs/Makefile
|
429
483
|
- test/data/elfs/amd64.static.elf
|
484
|
+
- test/data/elfs/amd64.nrelro.elf
|
485
|
+
- test/data/elfs/i386.frelro.pie.elf
|
430
486
|
- test/data/elfs/amd64.prelro.elf
|
431
|
-
- test/data/
|
432
|
-
- test/data/victim32
|
433
|
-
- test/data/victim.c
|
434
|
-
- test/data/victim64
|
487
|
+
- test/data/flag
|
435
488
|
- test/data/lib32/ld.so.2
|
436
489
|
- test/data/lib32/libc.so.6
|
490
|
+
- test/data/echo.rb
|
491
|
+
- test/data/victim64
|
437
492
|
- test/data/lib64/ld.so.2
|
438
493
|
- test/data/lib64/libc.so.6
|
439
|
-
- test/data/
|
440
|
-
- test/data/
|
441
|
-
- test/
|
442
|
-
- test/
|
494
|
+
- test/data/assembly/powerpc64.s
|
495
|
+
- test/data/assembly/arm.s
|
496
|
+
- test/data/assembly/thumb.s
|
497
|
+
- test/data/assembly/i386.s
|
498
|
+
- test/data/assembly/amd64.s
|
499
|
+
- test/data/assembly/mips.s
|
500
|
+
- test/data/assembly/powerpc.s
|
501
|
+
- test/data/assembly/sparc.s
|
502
|
+
- test/data/assembly/mips64.s
|
503
|
+
- test/data/assembly/aarch64.s
|
504
|
+
- test/data/assembly/sparc64.s
|
505
|
+
- test/data/victim.c
|
506
|
+
- test/data/victim32
|
507
|
+
- test/runner_test.rb
|
508
|
+
- test/dynelf_test.rb
|
509
|
+
- test/util/getdents_test.rb
|
510
|
+
- test/util/packing_test.rb
|
511
|
+
- test/util/fiddling_test.rb
|
512
|
+
- test/util/hexdump_test.rb
|
513
|
+
- test/util/lists_test.rb
|
514
|
+
- test/util/cyclic_test.rb
|
515
|
+
- test/ext_test.rb
|
516
|
+
- test/abi_test.rb
|
517
|
+
- test/logger_test.rb
|
518
|
+
- test/memleak_test.rb
|
519
|
+
- test/elf/elf_test.rb
|
520
|
+
- test/ui_test.rb
|
443
521
|
- test/context_test.rb
|
444
|
-
- test/shellcraft/
|
445
|
-
- test/shellcraft/
|
522
|
+
- test/shellcraft/mov_test.rb
|
523
|
+
- test/shellcraft/setregs_test.rb
|
446
524
|
- test/shellcraft/registers_test.rb
|
447
|
-
- test/shellcraft/ret_test.rb
|
448
525
|
- test/shellcraft/popad_test.rb
|
449
|
-
- test/shellcraft/nop_test.rb
|
450
|
-
- test/shellcraft/linux/cat_test.rb
|
451
526
|
- test/shellcraft/linux/ls_test.rb
|
452
|
-
- test/shellcraft/linux/sh_test.rb
|
453
|
-
- test/shellcraft/linux/syscalls/open_test.rb
|
454
527
|
- test/shellcraft/linux/syscalls/syscall_test.rb
|
455
|
-
- test/shellcraft/linux/syscalls/exit_test.rb
|
456
528
|
- test/shellcraft/linux/syscalls/execve_test.rb
|
457
|
-
- test/shellcraft/
|
529
|
+
- test/shellcraft/linux/syscalls/open_test.rb
|
530
|
+
- test/shellcraft/linux/syscalls/exit_test.rb
|
531
|
+
- test/shellcraft/linux/sleep_test.rb
|
532
|
+
- test/shellcraft/linux/cat_test.rb
|
533
|
+
- test/shellcraft/linux/sh_test.rb
|
458
534
|
- test/shellcraft/pushstr_test.rb
|
459
|
-
- test/shellcraft/
|
535
|
+
- test/shellcraft/shellcraft_test.rb
|
536
|
+
- test/shellcraft/pushstr_array_test.rb
|
537
|
+
- test/shellcraft/nop_test.rb
|
538
|
+
- test/shellcraft/ret_test.rb
|
539
|
+
- test/shellcraft/memcpy_test.rb
|
460
540
|
- test/shellcraft/infloop_test.rb
|
461
|
-
- test/shellcraft/mov_test.rb
|
462
541
|
- test/constants/constants_test.rb
|
463
542
|
- test/constants/constant_test.rb
|
464
543
|
- test/reg_sort_test.rb
|
465
|
-
- test/
|
466
|
-
- test/
|
467
|
-
- test/util/fiddling_test.rb
|
468
|
-
- test/util/hexdump_test.rb
|
469
|
-
- test/util/getdents_test.rb
|
470
|
-
- test/util/packing_test.rb
|
471
|
-
- test/util/cyclic_test.rb
|
472
|
-
- test/util/lists_test.rb
|
473
|
-
- test/timer_test.rb
|
474
|
-
- test/tubes/sock_test.rb
|
475
|
-
- test/tubes/serialtube_test.rb
|
476
|
-
- test/tubes/buffer_test.rb
|
477
|
-
- test/tubes/process_test.rb
|
478
|
-
- test/tubes/tube_test.rb
|
479
|
-
- test/abi_test.rb
|
480
|
-
- test/files/use_pwnlib.rb
|
481
|
-
- test/files/use_pwn.rb
|
482
|
-
- test/ext_test.rb
|
483
|
-
- test/full_file_test.rb
|
484
|
-
- test/dynelf_test.rb
|
485
|
-
- test/elf/elf_test.rb
|
544
|
+
- test/asm_test.rb
|
545
|
+
- test/test_helper.rb
|