rex-bin_tools 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/README.md +6 -3
- data/lib/rex/assembly/nasm.rb +7 -7
- data/lib/rex/bin_tools/version.rb +1 -1
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3ed86ac5e92f150b2aafc867deadf5c94351db86
|
|
4
|
+
data.tar.gz: 227c014b61f3b7872d730376eda07fe7e7792024
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2ee119afc44ee1079ce22e308f13c52af79e50d9972f640c1128165bf847dac2cb9e1c97dc13a11f645b23cba365f64a7700bfb5353448dbe84104f393455cb1
|
|
7
|
+
data.tar.gz: 1151fd2dc555416c9ffaa6a9fdb8d7f18928dd0ccd3a3f3cf455cda65d05256e27ac28ed52d0ddae359cfd80da4f54b984271aebea678a8092367a9163f9912b
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/README.md
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
# Rex::BinTools
|
|
2
2
|
|
|
3
|
-
Ruby Exploitation(
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
Ruby Exploitation Library (REX) for Binary Manipulation. This suite of tools
|
|
4
|
+
contains ElfScan, MachScan, PEScan, and BinScan.
|
|
5
|
+
|
|
6
|
+
These tools are designed to help you analyze an executable binary and search
|
|
7
|
+
for particular instruction sets. This is particularly useful for things like
|
|
8
|
+
building ROP chains or SEH exploits.
|
|
6
9
|
|
|
7
10
|
## Installation
|
|
8
11
|
|
data/lib/rex/assembly/nasm.rb
CHANGED
|
@@ -9,23 +9,23 @@ module Assembly
|
|
|
9
9
|
|
|
10
10
|
###
|
|
11
11
|
#
|
|
12
|
-
# This class uses
|
|
12
|
+
# This class uses nasm to assemble and disassemble stuff.
|
|
13
13
|
#
|
|
14
14
|
###
|
|
15
15
|
class Nasm
|
|
16
16
|
|
|
17
|
-
@@nasm_path = '
|
|
17
|
+
@@nasm_path = 'nasm'
|
|
18
18
|
@@ndisasm_path = 'ndisasm'
|
|
19
19
|
|
|
20
20
|
#
|
|
21
|
-
# Ensures that the
|
|
21
|
+
# Ensures that the nasm environment is sane.
|
|
22
22
|
#
|
|
23
23
|
def self.check
|
|
24
24
|
@@nasm_path =
|
|
25
|
-
Rex::FileUtils.find_full_path('
|
|
26
|
-
Rex::FileUtils.find_full_path('
|
|
25
|
+
Rex::FileUtils.find_full_path('nasm') ||
|
|
26
|
+
Rex::FileUtils.find_full_path('nasm.exe') ||
|
|
27
27
|
Rex::FileUtils.find_full_path('nasmw.exe') ||
|
|
28
|
-
raise(RuntimeError, "No
|
|
28
|
+
raise(RuntimeError, "No nasm installation was found.")
|
|
29
29
|
|
|
30
30
|
@@ndisasm_path =
|
|
31
31
|
Rex::FileUtils.find_full_path('ndisasm') ||
|
|
@@ -52,7 +52,7 @@ class Nasm
|
|
|
52
52
|
tmp.flush()
|
|
53
53
|
tmp.seek(0)
|
|
54
54
|
|
|
55
|
-
# Run
|
|
55
|
+
# Run nasm
|
|
56
56
|
if (system(@@nasm_path, '-f', 'bin', '-o', opath, tpath) == false)
|
|
57
57
|
raise RuntimeError, "Assembler did not complete successfully: #{$?.exitstatus}"
|
|
58
58
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rex-bin_tools
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- David Maloney
|
|
@@ -85,7 +85,7 @@ cert_chain:
|
|
|
85
85
|
2SpuQH+SWteq3NXkAmFEEqvLJQ4sbptZt8OP8ghL3pVAvZNFmww/YVszSkShSzcg
|
|
86
86
|
QdihYCSEL2drS2cFd50jBeq71sxUtxbv82DUa2b+
|
|
87
87
|
-----END CERTIFICATE-----
|
|
88
|
-
date: 2016-
|
|
88
|
+
date: 2016-10-03 00:00:00.000000000 Z
|
|
89
89
|
dependencies:
|
|
90
90
|
- !ruby/object:Gem::Dependency
|
|
91
91
|
name: bundler
|
metadata.gz.sig
CHANGED
|
Binary file
|