rex-encoder 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- checksums.yaml.gz.sig +1 -0
- data.tar.gz.sig +0 -0
- data/.gitignore +9 -0
- data/.rspec +2 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +49 -0
- data/Gemfile +4 -0
- data/README.md +32 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/rex/encoder.rb +15 -0
- data/lib/rex/encoder/alpha2.rb +31 -0
- data/lib/rex/encoder/alpha2/alpha_mixed.rb +129 -0
- data/lib/rex/encoder/alpha2/alpha_upper.rb +138 -0
- data/lib/rex/encoder/alpha2/generic.rb +90 -0
- data/lib/rex/encoder/alpha2/unicode_mixed.rb +116 -0
- data/lib/rex/encoder/alpha2/unicode_upper.rb +123 -0
- data/lib/rex/encoder/bloxor/bloxor.rb +327 -0
- data/lib/rex/encoder/ndr.rb +90 -0
- data/lib/rex/encoder/nonalpha.rb +61 -0
- data/lib/rex/encoder/nonupper.rb +64 -0
- data/lib/rex/encoder/version.rb +5 -0
- data/lib/rex/encoder/xdr.rb +108 -0
- data/lib/rex/encoder/xor.rb +69 -0
- data/lib/rex/encoder/xor/dword.rb +13 -0
- data/lib/rex/encoder/xor/dword_additive.rb +13 -0
- data/lib/rex/encoding/xor.rb +20 -0
- data/lib/rex/encoding/xor/byte.rb +15 -0
- data/lib/rex/encoding/xor/dword.rb +21 -0
- data/lib/rex/encoding/xor/dword_additive.rb +92 -0
- data/lib/rex/encoding/xor/exceptions.rb +17 -0
- data/lib/rex/encoding/xor/generic.rb +146 -0
- data/lib/rex/encoding/xor/qword.rb +15 -0
- data/lib/rex/encoding/xor/word.rb +21 -0
- data/lib/rex/poly.rb +134 -0
- data/lib/rex/poly/block.rb +480 -0
- data/lib/rex/poly/machine.rb +13 -0
- data/lib/rex/poly/machine/machine.rb +830 -0
- data/lib/rex/poly/machine/x86.rb +509 -0
- data/lib/rex/poly/register.rb +101 -0
- data/lib/rex/poly/register/x86.rb +41 -0
- data/rex-encoder.gemspec +31 -0
- metadata +248 -0
- metadata.gz.sig +0 -0
@@ -0,0 +1,101 @@
|
|
1
|
+
# -*- coding: binary -*-
|
2
|
+
module Rex
|
3
|
+
module Poly
|
4
|
+
|
5
|
+
###
|
6
|
+
#
|
7
|
+
# This class represents a register that is used in the context of one or more
|
8
|
+
# logical blocks. The register number is assigned on demand or is statically
|
9
|
+
# specified if passed in to the constructor.
|
10
|
+
#
|
11
|
+
###
|
12
|
+
class LogicalRegister
|
13
|
+
|
14
|
+
require 'rex/poly/register/x86'
|
15
|
+
|
16
|
+
#
|
17
|
+
# This class method is meant to return an array of register numbers that
|
18
|
+
# can be used to pool from. Architecture specific classes must implement
|
19
|
+
# this method on their own.
|
20
|
+
#
|
21
|
+
def self.regnum_set
|
22
|
+
nil
|
23
|
+
end
|
24
|
+
|
25
|
+
#
|
26
|
+
# Initializes the register's name and number, if assigned. If a register
|
27
|
+
# number is specified, the instance will be assumed to have a statically
|
28
|
+
# assigned register number. The name is meant to be used as a symbolic
|
29
|
+
# variable name, such as 'counter' or 'key'.
|
30
|
+
#
|
31
|
+
def initialize(name, regnum = nil)
|
32
|
+
@name = name
|
33
|
+
@regnum = regnum
|
34
|
+
@static = (regnum) ? true : false
|
35
|
+
end
|
36
|
+
|
37
|
+
#
|
38
|
+
# Returns true if the register number should be assumed static.
|
39
|
+
#
|
40
|
+
def static?
|
41
|
+
@static
|
42
|
+
end
|
43
|
+
|
44
|
+
#
|
45
|
+
# Sets the register number to the value specified. If the register number
|
46
|
+
# is declared static, a RuntimeError exception is raised.
|
47
|
+
#
|
48
|
+
def regnum=(val)
|
49
|
+
raise RuntimeError, "Attempted to assign regnum to static register" if (static?)
|
50
|
+
|
51
|
+
@regnum = val
|
52
|
+
end
|
53
|
+
|
54
|
+
#
|
55
|
+
# Returns the register number that has currently been assigned. If no
|
56
|
+
# register number is assigned, an InvalidRegisterError exception is raised.
|
57
|
+
# This exception can be used to assign the LogicalRegister instance a
|
58
|
+
# register number on demand.
|
59
|
+
#
|
60
|
+
def regnum
|
61
|
+
raise InvalidRegisterError.new(self), "Register has not been assigned" if (@regnum == nil)
|
62
|
+
|
63
|
+
@regnum
|
64
|
+
end
|
65
|
+
|
66
|
+
#
|
67
|
+
# Returns the variable (friendly) name for the register that was passed to
|
68
|
+
# the constructor.
|
69
|
+
#
|
70
|
+
attr_reader :name
|
71
|
+
|
72
|
+
protected
|
73
|
+
|
74
|
+
end
|
75
|
+
|
76
|
+
###
|
77
|
+
#
|
78
|
+
# An exception that is raised when the regnum method is accessed on a
|
79
|
+
# LogicalRegister that does not currently have a regnum assigned to it.
|
80
|
+
#
|
81
|
+
###
|
82
|
+
class InvalidRegisterError < RuntimeError
|
83
|
+
|
84
|
+
#
|
85
|
+
# Initializes the exception with the instance that lead to the generation
|
86
|
+
# of the exception such that it can be assigned a register number as
|
87
|
+
# needed.
|
88
|
+
#
|
89
|
+
def initialize(reg)
|
90
|
+
@reg = reg
|
91
|
+
end
|
92
|
+
|
93
|
+
#
|
94
|
+
# The LogicalRegister instance that generated the exception.
|
95
|
+
#
|
96
|
+
attr_reader :reg
|
97
|
+
|
98
|
+
end
|
99
|
+
|
100
|
+
end
|
101
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# -*- coding: binary -*-
|
2
|
+
require 'rex/arch/x86'
|
3
|
+
|
4
|
+
module Rex
|
5
|
+
module Poly
|
6
|
+
|
7
|
+
###
|
8
|
+
#
|
9
|
+
# This class encapsulates logical registers for the X86 architecture.
|
10
|
+
#
|
11
|
+
###
|
12
|
+
class LogicalRegister::X86 < LogicalRegister
|
13
|
+
|
14
|
+
#
|
15
|
+
# The default set of register numbers that can be used on x86.
|
16
|
+
#
|
17
|
+
def self.regnum_set
|
18
|
+
[
|
19
|
+
Rex::Arch::X86::EAX,
|
20
|
+
Rex::Arch::X86::EBX,
|
21
|
+
Rex::Arch::X86::ECX,
|
22
|
+
Rex::Arch::X86::EDX,
|
23
|
+
Rex::Arch::X86::ESI,
|
24
|
+
Rex::Arch::X86::EDI,
|
25
|
+
Rex::Arch::X86::EBP,
|
26
|
+
Rex::Arch::X86::ESP
|
27
|
+
]
|
28
|
+
end
|
29
|
+
|
30
|
+
#
|
31
|
+
# Calls the base class constructor after translating the register name to
|
32
|
+
# number.
|
33
|
+
#
|
34
|
+
def initialize(name, register = nil)
|
35
|
+
super(name, register ? Rex::Arch::X86.reg_number(register) : nil)
|
36
|
+
end
|
37
|
+
|
38
|
+
end
|
39
|
+
|
40
|
+
end
|
41
|
+
end
|
data/rex-encoder.gemspec
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'rex/encoder/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "rex-encoder"
|
8
|
+
spec.version = Rex::Encoder::VERSION
|
9
|
+
spec.authors = ["David Maloney"]
|
10
|
+
spec.email = ["DMaloney@rapid7.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{Ruby Exploitation(Rex) library for various polymorphic encoders.}
|
13
|
+
spec.description = %q{This library provides the basis for all of the polymorphic encoders
|
14
|
+
that Metasploit uses for payload encoding. Encoders are used to try and create
|
15
|
+
a version of a payload that is free of bad characters as defined by the exploit. }
|
16
|
+
spec.homepage = "https://github.com/rapid7/rex-encoder"
|
17
|
+
|
18
|
+
|
19
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
20
|
+
spec.bindir = "exe"
|
21
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
|
+
spec.require_paths = ["lib"]
|
23
|
+
|
24
|
+
spec.add_development_dependency "bundler", "~> 1.12"
|
25
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
26
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
27
|
+
|
28
|
+
spec.add_runtime_dependency "rex-arch"
|
29
|
+
spec.add_runtime_dependency "metasm"
|
30
|
+
spec.add_runtime_dependency "rex-text"
|
31
|
+
end
|
metadata
ADDED
@@ -0,0 +1,248 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rex-encoder
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- David Maloney
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain:
|
11
|
+
- |
|
12
|
+
-----BEGIN CERTIFICATE-----
|
13
|
+
MIIDdTCCAl2gAwIBAgILBAAAAAABFUtaw5QwDQYJKoZIhvcNAQEFBQAwVzELMAkG
|
14
|
+
A1UEBhMCQkUxGTAXBgNVBAoTEEdsb2JhbFNpZ24gbnYtc2ExEDAOBgNVBAsTB1Jv
|
15
|
+
b3QgQ0ExGzAZBgNVBAMTEkdsb2JhbFNpZ24gUm9vdCBDQTAeFw05ODA5MDExMjAw
|
16
|
+
MDBaFw0yODAxMjgxMjAwMDBaMFcxCzAJBgNVBAYTAkJFMRkwFwYDVQQKExBHbG9i
|
17
|
+
YWxTaWduIG52LXNhMRAwDgYDVQQLEwdSb290IENBMRswGQYDVQQDExJHbG9iYWxT
|
18
|
+
aWduIFJvb3QgQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDaDuaZ
|
19
|
+
jc6j40+Kfvvxi4Mla+pIH/EqsLmVEQS98GPR4mdmzxzdzxtIK+6NiY6arymAZavp
|
20
|
+
xy0Sy6scTHAHoT0KMM0VjU/43dSMUBUc71DuxC73/OlS8pF94G3VNTCOXkNz8kHp
|
21
|
+
1Wrjsok6Vjk4bwY8iGlbKk3Fp1S4bInMm/k8yuX9ifUSPJJ4ltbcdG6TRGHRjcdG
|
22
|
+
snUOhugZitVtbNV4FpWi6cgKOOvyJBNPc1STE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
+
QdihYCSEL2drS2cFd50jBeq71sxUtxbv82DUa2b+
|
87
|
+
-----END CERTIFICATE-----
|
88
|
+
date: 2016-09-14 00:00:00.000000000 Z
|
89
|
+
dependencies:
|
90
|
+
- !ruby/object:Gem::Dependency
|
91
|
+
name: bundler
|
92
|
+
requirement: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '1.12'
|
97
|
+
type: :development
|
98
|
+
prerelease: false
|
99
|
+
version_requirements: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '1.12'
|
104
|
+
- !ruby/object:Gem::Dependency
|
105
|
+
name: rake
|
106
|
+
requirement: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '10.0'
|
111
|
+
type: :development
|
112
|
+
prerelease: false
|
113
|
+
version_requirements: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '10.0'
|
118
|
+
- !ruby/object:Gem::Dependency
|
119
|
+
name: rspec
|
120
|
+
requirement: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '3.0'
|
125
|
+
type: :development
|
126
|
+
prerelease: false
|
127
|
+
version_requirements: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '3.0'
|
132
|
+
- !ruby/object:Gem::Dependency
|
133
|
+
name: rex-arch
|
134
|
+
requirement: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
type: :runtime
|
140
|
+
prerelease: false
|
141
|
+
version_requirements: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
- !ruby/object:Gem::Dependency
|
147
|
+
name: metasm
|
148
|
+
requirement: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
type: :runtime
|
154
|
+
prerelease: false
|
155
|
+
version_requirements: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
- !ruby/object:Gem::Dependency
|
161
|
+
name: rex-text
|
162
|
+
requirement: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
167
|
+
type: :runtime
|
168
|
+
prerelease: false
|
169
|
+
version_requirements: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">="
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
description: "This library provides the basis for all of the polymorphic encoders\n
|
175
|
+
\ that Metasploit uses for payload encoding. Encoders are
|
176
|
+
used to try and create\n a version of a payload that is
|
177
|
+
free of bad characters as defined by the exploit. "
|
178
|
+
email:
|
179
|
+
- DMaloney@rapid7.com
|
180
|
+
executables: []
|
181
|
+
extensions: []
|
182
|
+
extra_rdoc_files: []
|
183
|
+
files:
|
184
|
+
- ".gitignore"
|
185
|
+
- ".rspec"
|
186
|
+
- ".travis.yml"
|
187
|
+
- CODE_OF_CONDUCT.md
|
188
|
+
- Gemfile
|
189
|
+
- README.md
|
190
|
+
- Rakefile
|
191
|
+
- bin/console
|
192
|
+
- bin/setup
|
193
|
+
- lib/rex/encoder.rb
|
194
|
+
- lib/rex/encoder/alpha2.rb
|
195
|
+
- lib/rex/encoder/alpha2/alpha_mixed.rb
|
196
|
+
- lib/rex/encoder/alpha2/alpha_upper.rb
|
197
|
+
- lib/rex/encoder/alpha2/generic.rb
|
198
|
+
- lib/rex/encoder/alpha2/unicode_mixed.rb
|
199
|
+
- lib/rex/encoder/alpha2/unicode_upper.rb
|
200
|
+
- lib/rex/encoder/bloxor/bloxor.rb
|
201
|
+
- lib/rex/encoder/ndr.rb
|
202
|
+
- lib/rex/encoder/nonalpha.rb
|
203
|
+
- lib/rex/encoder/nonupper.rb
|
204
|
+
- lib/rex/encoder/version.rb
|
205
|
+
- lib/rex/encoder/xdr.rb
|
206
|
+
- lib/rex/encoder/xor.rb
|
207
|
+
- lib/rex/encoder/xor/dword.rb
|
208
|
+
- lib/rex/encoder/xor/dword_additive.rb
|
209
|
+
- lib/rex/encoding/xor.rb
|
210
|
+
- lib/rex/encoding/xor/byte.rb
|
211
|
+
- lib/rex/encoding/xor/dword.rb
|
212
|
+
- lib/rex/encoding/xor/dword_additive.rb
|
213
|
+
- lib/rex/encoding/xor/exceptions.rb
|
214
|
+
- lib/rex/encoding/xor/generic.rb
|
215
|
+
- lib/rex/encoding/xor/qword.rb
|
216
|
+
- lib/rex/encoding/xor/word.rb
|
217
|
+
- lib/rex/poly.rb
|
218
|
+
- lib/rex/poly/block.rb
|
219
|
+
- lib/rex/poly/machine.rb
|
220
|
+
- lib/rex/poly/machine/machine.rb
|
221
|
+
- lib/rex/poly/machine/x86.rb
|
222
|
+
- lib/rex/poly/register.rb
|
223
|
+
- lib/rex/poly/register/x86.rb
|
224
|
+
- rex-encoder.gemspec
|
225
|
+
homepage: https://github.com/rapid7/rex-encoder
|
226
|
+
licenses: []
|
227
|
+
metadata: {}
|
228
|
+
post_install_message:
|
229
|
+
rdoc_options: []
|
230
|
+
require_paths:
|
231
|
+
- lib
|
232
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
233
|
+
requirements:
|
234
|
+
- - ">="
|
235
|
+
- !ruby/object:Gem::Version
|
236
|
+
version: '0'
|
237
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
238
|
+
requirements:
|
239
|
+
- - ">="
|
240
|
+
- !ruby/object:Gem::Version
|
241
|
+
version: '0'
|
242
|
+
requirements: []
|
243
|
+
rubyforge_project:
|
244
|
+
rubygems_version: 2.4.8
|
245
|
+
signing_key:
|
246
|
+
specification_version: 4
|
247
|
+
summary: Ruby Exploitation(Rex) library for various polymorphic encoders.
|
248
|
+
test_files: []
|
metadata.gz.sig
ADDED
Binary file
|