rex-core 0.1.11 → 0.1.16

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
- SHA1:
3
- metadata.gz: 3d9b17400c17c2cf8a90d653c68778472238db76
4
- data.tar.gz: 7c8fa2c3a9900f7d6f9eee9278978d2b412ce225
2
+ SHA256:
3
+ metadata.gz: 17110a74336ae634771add814eed9e60a711005641b6424a482d057bbb7314bd
4
+ data.tar.gz: 788d7cb8332f1cd817fbbf6de0da93ef7dbc92906f4c31706ca38de433812ef8
5
5
  SHA512:
6
- metadata.gz: 6e701730b1af34928b087121fd7df5c5d79c894799bcea4443ee7325dae076e3b105c1eeb96a8a699d44053c91cba7b87faac7d550a8760e84134d0d1e8399dd
7
- data.tar.gz: fb6f69e8c1ff4b4fa83368e931e1df123f9f0296593491320eaceb276c78ba9fffcfc21177d47049776ae46fc8f54fd17630d5845af4f94e95353a93abe90812
6
+ metadata.gz: 6873be6d3d89644c9285d06e6966aa05f0604b09564b865ebf9fd70339c99d9b3fb0320e92ebedc3e378983956faed6cb5089c69d1bb0fe6d751252d0bfc45ab
7
+ data.tar.gz: 678096caf324f23b4937f4607ed336c66ac7916fd7417197288b6c07ef70d18cc870b8780f5d119d74b2a1eb9d2d0274fe9df38b8033bcfa989b7c0d3be9bb0c
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/.travis.yml CHANGED
@@ -3,4 +3,4 @@ group: stable
3
3
  cache: bundler
4
4
  language: ruby
5
5
  rvm:
6
- - 2.3.3
6
+ - 2.7.2
data/lib/rex/compat.rb CHANGED
@@ -30,7 +30,7 @@ ENABLE_PROCESSED_INPUT = 1
30
30
  # Platform detection
31
31
  #
32
32
 
33
- @@is_windows = @@is_cygwin = @@is_macosx = @@is_linux = @@is_bsdi = @@is_freebsd = @@is_netbsd = @@is_openbsd = @@is_java = false
33
+ @@is_windows = @@is_cygwin = @@is_macosx = @@is_linux = @@is_bsdi = @@is_freebsd = @@is_netbsd = @@is_openbsd = @@is_java = @@is_android = false
34
34
  @@loaded_win32api = false
35
35
  @@loaded_tempfile = false
36
36
  @@loaded_fileutils = false
@@ -81,6 +81,11 @@ def self.is_java
81
81
  @@is_java = (RUBY_PLATFORM =~ /java/) ? true : false
82
82
  end
83
83
 
84
+ def self.is_android
85
+ return @@is_android if @@is_android
86
+ @@is_android = (RUBY_PLATFORM =~ /android/) ? true : false
87
+ end
88
+
84
89
  def self.is_wow64
85
90
  return false if not is_windows
86
91
  is64 = false
@@ -127,6 +132,8 @@ def self.open_browser(url='http://google.com/')
127
132
  Win32API.new("shell32.dll", "ShellExecute", ["PPPPPL"], "L").call(nil, "open", url, nil, nil, 0)
128
133
  when /darwin/
129
134
  system("open #{url}")
135
+ when /android/
136
+ system("am start --user 0 -a android.intent.action.VIEW -d #{url}")
130
137
  else
131
138
  # Search through the PATH variable (if it exists) and chose a browser
132
139
  # We are making an assumption about the nature of "PATH" so tread lightly
@@ -182,6 +189,8 @@ def self.open_webrtc_browser(url='http://google.com/')
182
189
  return true
183
190
  end
184
191
  end
192
+ when /android/
193
+ system("am start --user 0 -a android.intent.action.VIEW -d #{url}")
185
194
  else
186
195
  if defined? ENV['PATH']
187
196
  ['google-chrome', 'chrome', 'chromium', 'firefox' , 'firefox', 'opera'].each do |browser|
@@ -207,6 +216,8 @@ def self.open_email(addr)
207
216
  Win32API.new("shell32.dll", "ShellExecute", ["PPPPPL"], "L").call(nil, "open", "mailto:"+addr, nil, nil, 0)
208
217
  when /darwin/
209
218
  system("open mailto:#{addr}")
219
+ when /android/
220
+ system("am start --user 0 -a android.intent.action.VIEW -d mailto:#{addr}")
210
221
  else
211
222
  # ?
212
223
  end
@@ -223,6 +234,8 @@ def self.play_sound(path)
223
234
  Win32API.new("winmm.dll", "sndPlaySoundA", ["SI"], "I").call(path, 0x20000)
224
235
  when /darwin/
225
236
  system("afplay #{path} >/dev/null 2>&1")
237
+ when /android/
238
+ system("termux-open #{path}")
226
239
  else
227
240
  system("aplay #{path} >/dev/null 2>&1")
228
241
  end
@@ -1,5 +1,5 @@
1
1
  module Rex
2
2
  module Core
3
- VERSION = "0.1.11"
3
+ VERSION = "0.1.16"
4
4
  end
5
5
  end
data/lib/rex/file.rb CHANGED
@@ -130,7 +130,7 @@ module Find
130
130
  paths.collect!{|d| d.dup}
131
131
  while file = paths.shift
132
132
  catch(:prune) do
133
- yield file.dup.taint
133
+ yield file.dup
134
134
  next unless File.exist? file
135
135
  begin
136
136
  if File.stat(file).directory? then
@@ -145,7 +145,7 @@ module Find
145
145
  else
146
146
  f = File.join(file, f)
147
147
  end
148
- paths.unshift f.untaint
148
+ paths.unshift f
149
149
  end
150
150
  ensure
151
151
  d.close
data/lib/rex/io/stream.rb CHANGED
@@ -25,6 +25,22 @@ module Stream
25
25
  #
26
26
  ##
27
27
 
28
+ #
29
+ # Initialize synchronization for this stream. This should be used if the
30
+ # stream will be written to, read or closed from multiple threads.
31
+ #
32
+ def initialize_synchronization
33
+ self.stream_lock = Rex::ReadWriteLock.new
34
+ self.close_resource = false
35
+ end
36
+
37
+ def close
38
+ self.close_resource = true
39
+ synchronize_update {
40
+ super
41
+ }
42
+ end
43
+
28
44
  #
29
45
  # This method writes the supplied buffer to the stream. This method
30
46
  # intelligent reduces the size of supplied buffers so that ruby doesn't get
@@ -37,28 +53,31 @@ module Stream
37
53
  total_length = buf.length
38
54
  block_size = 32768
39
55
 
40
- begin
41
- while( total_sent < total_length )
42
- s = Rex::ThreadSafe.select( nil, [ fd ], nil, 0.2 )
43
- if( s == nil || s[0] == nil )
44
- next
45
- end
46
- data = buf[total_sent, block_size]
47
- sent = fd.write_nonblock( data )
48
- if sent > 0
49
- total_sent += sent
56
+ synchronize_access {
57
+ begin
58
+ while( total_sent < total_length )
59
+ s = Rex::ThreadSafe.select( nil, [ fd ], nil, 0.2 )
60
+ if( s == nil || s[0] == nil )
61
+ next
62
+ end
63
+ data = buf[total_sent, block_size]
64
+ sent = fd.write_nonblock( data )
65
+ if sent > 0
66
+ total_sent += sent
67
+ end
50
68
  end
69
+ rescue ::Errno::EAGAIN, ::Errno::EWOULDBLOCK
70
+ return nil if self.close_resource
71
+ # Sleep for a half a second, or until we can write again
72
+ Rex::ThreadSafe.select( nil, [ fd ], nil, 0.5 )
73
+ # Decrement the block size to handle full sendQs better
74
+ block_size = 1024
75
+ # Try to write the data again
76
+ retry
77
+ rescue ::IOError, ::Errno::EPIPE
78
+ return nil
51
79
  end
52
- rescue ::Errno::EAGAIN, ::Errno::EWOULDBLOCK
53
- # Sleep for a half a second, or until we can write again
54
- Rex::ThreadSafe.select( nil, [ fd ], nil, 0.5 )
55
- # Decrement the block size to handle full sendQs better
56
- block_size = 1024
57
- # Try to write the data again
58
- retry
59
- rescue ::IOError, ::Errno::EPIPE
60
- return nil
61
- end
80
+ }
62
81
 
63
82
  total_sent
64
83
  end
@@ -67,17 +86,19 @@ module Stream
67
86
  # This method reads data of the supplied length from the stream.
68
87
  #
69
88
  def read(length = nil, opts = {})
70
-
71
- begin
72
- return fd.read_nonblock( length )
73
- rescue ::Errno::EAGAIN, ::Errno::EWOULDBLOCK
74
- # Sleep for a half a second, or until we can read again
75
- Rex::ThreadSafe.select( [ fd ], nil, nil, 0.5 )
76
- # Decrement the block size to handle full sendQs better
77
- retry
78
- rescue ::IOError, ::Errno::EPIPE
79
- return nil
80
- end
89
+ synchronize_access {
90
+ begin
91
+ return fd.read_nonblock( length )
92
+ rescue ::Errno::EAGAIN, ::Errno::EWOULDBLOCK
93
+ return nil if self.close_resource
94
+ # Sleep for a half a second, or until we can read again
95
+ Rex::ThreadSafe.select( [ fd ], nil, nil, 0.5 )
96
+ # Decrement the block size to handle full sendQs better
97
+ retry
98
+ rescue ::IOError, ::Errno::EPIPE
99
+ return nil
100
+ end
101
+ }
81
102
  end
82
103
 
83
104
  #
@@ -306,6 +327,45 @@ module Stream
306
327
 
307
328
  protected
308
329
 
330
+ #
331
+ # The read-write lock used to synchronize access to the stream. This is only
332
+ # set when synchronization has been initialized as performed by
333
+ # #initialize_synchronization.
334
+ #
335
+ attr_accessor :stream_lock
336
+
337
+ #
338
+ # A boolean flag indicating that the resource is to be closed. Blocking
339
+ # operations that are synchronized (such as #read and #write) should evaluate
340
+ # this flag and exit appropriately when there is no data to be processed.
341
+ attr_accessor :close_resource
342
+
343
+ #
344
+ # Synchronize non-state changing access to the stream such as read and write
345
+ # operations. If synchronization has not been initialized, this doesn't do
346
+ # anything.
347
+ #
348
+ def synchronize_access
349
+ self.stream_lock.lock_read unless self.stream_lock.nil?
350
+ begin
351
+ yield
352
+ ensure
353
+ self.stream_lock.unlock_read unless self.stream_lock.nil?
354
+ end
355
+ end
356
+
357
+ #
358
+ # Synchronize state changing operations to the stream such as closing it.
359
+ # If synchronization has not been initialized, this doesn't do anything.
360
+ #
361
+ def synchronize_update
362
+ self.stream_lock.lock_write unless self.stream_lock.nil?
363
+ begin
364
+ yield
365
+ ensure
366
+ self.stream_lock.unlock_write unless self.stream_lock.nil?
367
+ end
368
+ end
309
369
  end
310
370
 
311
371
  end end
@@ -19,10 +19,14 @@ module StreamAbstraction
19
19
  #
20
20
  def initialize_abstraction
21
21
  self.lsock, self.rsock = Rex::Socket.tcp_socket_pair()
22
+
22
23
  self.lsock.extend(Rex::IO::Stream)
23
24
  self.lsock.extend(Ext)
24
25
  self.rsock.extend(Rex::IO::Stream)
25
26
 
27
+ self.lsock.initialize_synchronization
28
+ self.rsock.initialize_synchronization
29
+
26
30
  self.monitor_rsock("StreamMonitorRemote")
27
31
  end
28
32
 
@@ -33,7 +33,7 @@ module ThreadSafe
33
33
 
34
34
  # Poll the set supplied to us at least once.
35
35
  begin
36
- rv = ::IO.select(rfd, wfd, efd, [left || DEFAULT_CYCLE, DEFAULT_CYCLE].min)
36
+ rv = ::IO.select(rfd, wfd, efd, DEFAULT_CYCLE)
37
37
  rescue ::IOError, ::Errno::EBADF, ::Errno::ENOTSOCK
38
38
  # If a stream was detected as being closed, re-raise the error as
39
39
  # a StreamClosedError with the specific file descriptor that was
data/rex-core.gemspec CHANGED
@@ -6,23 +6,19 @@ require 'rex/core/version'
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "rex-core"
8
8
  spec.version = Rex::Core::VERSION
9
- spec.authors = ["David Maloney"]
10
- spec.email = ["DMaloney@rapid7.com"]
9
+ spec.authors = ['Metasploit Hackers']
10
+ spec.email = ['msfdev@metasploit.com']
11
11
 
12
- spec.summary = %q{Core libraries required for the Ruby Exploitation(Rex) Suite.}
13
- spec.description = %q{Core libraries required for the Ruby Exploitation(Rex) Suite.}
12
+ spec.summary = %q{Core libraries required for the Ruby Exploitation (Rex) Suite.}
13
+ spec.description = %q{Core libraries required for the Ruby Exploitation (Rex) Suite.
14
+ Rex provides a variety of classes useful for security testing and exploit development.}
14
15
  spec.homepage = "https://github.com/rapid7/rex-core"
15
16
 
16
-
17
-
18
17
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
19
- spec.bindir = "exe"
20
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
18
  spec.require_paths = ["lib"]
22
19
 
23
20
  spec.required_ruby_version = '>= 2.2.0'
24
21
 
25
- spec.add_development_dependency "bundler", "~> 1.12"
26
- spec.add_development_dependency "rake", "~> 10.0"
27
- spec.add_development_dependency "rspec", "~> 3.0"
22
+ spec.add_development_dependency "rake"
23
+ spec.add_development_dependency "rspec"
28
24
  end
metadata CHANGED
@@ -1,140 +1,133 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rex-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.16
5
5
  platform: ruby
6
6
  authors:
7
- - David Maloney
7
+ - Metasploit Hackers
8
8
  autorequire:
9
- bindir: exe
9
+ bindir: bin
10
10
  cert_chain:
11
11
  - |
12
12
  -----BEGIN CERTIFICATE-----
13
- MIIDXzCCAkegAwIBAgILBAAAAAABIVhTCKIwDQYJKoZIhvcNAQELBQAwTDEgMB4G
14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/wQCMAAwDQYJKoZIhvcNAQEL
89
+ BQADggEBAN+GL5/myPWg7oH4mVrG7/OhXF1MoYQF0ddaNiqaweEHMuKJBQCVZRbL
90
+ 37HojoKXXv2yyRJBCeTB+ojrxX+5PdLVZa0ss7toWzJ2A1poPXZ1eZvm5xeFD32z
91
+ YQaTmmNWNI3PCDTyJ2PXUc+bDiNNwcZ7yc5o78UNRvp9Jxghya17Q76c9Ov9wvnv
92
+ dxxQKWGOQy0m4fBrkyjAyH9Djjn81RbQrqYgPuhd5nD0HjN3VUQLhQbIJrk9TVs0
93
+ EknWpNgVhohbot1lfVAMmIhdtOVaRVcQQixWPwprDj/ydB8ryDMDosIMcw+fkoXU
94
+ 9GJsSaSRRYQ9UUkVL27b64okU8D48m8=
90
95
  -----END CERTIFICATE-----
91
- date: 2017-07-05 00:00:00.000000000 Z
96
+ date: 2021-02-12 00:00:00.000000000 Z
92
97
  dependencies:
93
- - !ruby/object:Gem::Dependency
94
- name: bundler
95
- requirement: !ruby/object:Gem::Requirement
96
- requirements:
97
- - - "~>"
98
- - !ruby/object:Gem::Version
99
- version: '1.12'
100
- type: :development
101
- prerelease: false
102
- version_requirements: !ruby/object:Gem::Requirement
103
- requirements:
104
- - - "~>"
105
- - !ruby/object:Gem::Version
106
- version: '1.12'
107
98
  - !ruby/object:Gem::Dependency
108
99
  name: rake
109
100
  requirement: !ruby/object:Gem::Requirement
110
101
  requirements:
111
- - - "~>"
102
+ - - ">="
112
103
  - !ruby/object:Gem::Version
113
- version: '10.0'
104
+ version: '0'
114
105
  type: :development
115
106
  prerelease: false
116
107
  version_requirements: !ruby/object:Gem::Requirement
117
108
  requirements:
118
- - - "~>"
109
+ - - ">="
119
110
  - !ruby/object:Gem::Version
120
- version: '10.0'
111
+ version: '0'
121
112
  - !ruby/object:Gem::Dependency
122
113
  name: rspec
123
114
  requirement: !ruby/object:Gem::Requirement
124
115
  requirements:
125
- - - "~>"
116
+ - - ">="
126
117
  - !ruby/object:Gem::Version
127
- version: '3.0'
118
+ version: '0'
128
119
  type: :development
129
120
  prerelease: false
130
121
  version_requirements: !ruby/object:Gem::Requirement
131
122
  requirements:
132
- - - "~>"
123
+ - - ">="
133
124
  - !ruby/object:Gem::Version
134
- version: '3.0'
135
- description: Core libraries required for the Ruby Exploitation(Rex) Suite.
125
+ version: '0'
126
+ description: |-
127
+ Core libraries required for the Ruby Exploitation (Rex) Suite.
128
+ Rex provides a variety of classes useful for security testing and exploit development.
136
129
  email:
137
- - DMaloney@rapid7.com
130
+ - msfdev@metasploit.com
138
131
  executables: []
139
132
  extensions: []
140
133
  extra_rdoc_files: []
@@ -147,8 +140,6 @@ files:
147
140
  - LICENSE
148
141
  - README.md
149
142
  - Rakefile
150
- - bin/console
151
- - bin/setup
152
143
  - lib/rex/compat.rb
153
144
  - lib/rex/core.rb
154
145
  - lib/rex/core/version.rb
@@ -185,8 +176,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
185
176
  version: '0'
186
177
  requirements: []
187
178
  rubyforge_project:
188
- rubygems_version: 2.6.8
179
+ rubygems_version: 2.7.10
189
180
  signing_key:
190
181
  specification_version: 4
191
- summary: Core libraries required for the Ruby Exploitation(Rex) Suite.
182
+ summary: Core libraries required for the Ruby Exploitation (Rex) Suite.
192
183
  test_files: []
metadata.gz.sig CHANGED
Binary file
data/bin/console DELETED
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require "bundler/setup"
4
- require "rex/core"
5
-
6
- # You can add fixtures and/or initialization code here to make experimenting
7
- # with your gem easier. You can also use a different console, if you like.
8
-
9
- # (If you use this, don't forget to add pry to your Gemfile!)
10
- # require "pry"
11
- # Pry.start
12
-
13
- require "irb"
14
- IRB.start
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here