rex-core 0.1.4 → 0.1.5

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: ff525cbb17cd0cc54bd42e8ee6a374cf2fc3b5e7
4
- data.tar.gz: 5145e3ae20ff2c778ac494da6f5081bb8169c79f
3
+ metadata.gz: b9560dd8f99e0be3f1ba9b23daa72d4357da50ea
4
+ data.tar.gz: d6649e96240d47c8726cd15050769ffb2892e8c0
5
5
  SHA512:
6
- metadata.gz: f74ede15f3220209ba91bf7a67ab90d5819b97d207e68d3bf07dab8936c9cb5654d485c3025ac75d09ac199ae10a241be54043edfdc40cb919dd3d74d0b2941b
7
- data.tar.gz: ae2947f2512fbb00689d95fc824a3e039bb5ee9313f3877fe4a197d89a4c1d59cf6d994f0043391a4b34d4f584efa7d40f2e8ca0707725ffb043a57ecfbcebca
6
+ metadata.gz: 9455ff81a670a49388d3ebb4cc3f5da04aae8662552f7e5f8e2ec2f55f5f3ed50b8afba5d14773bb7354e77b5318836ddaeeb9632147ce9042b2b8d809bc0ca8
7
+ data.tar.gz: 8b7f8c5d96698ba677fd5be97bd7fdad80e8fb6afc442428e0a50ff2e5b4f63a4542e60e8d1f200a5de21ef90ca872f5d06969d1c2d0a77d110d2a3ce6177693
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,5 +1,5 @@
1
1
  module Rex
2
2
  module Core
3
- VERSION = "0.1.4"
3
+ VERSION = "0.1.5"
4
4
  end
5
5
  end
@@ -285,6 +285,32 @@ class RingBuffer
285
285
 
286
286
  end
287
287
 
288
+ class RingBufferUdp < RingBuffer
289
+
290
+ #
291
+ # The built-in monitor thread (normally unused with Metasploit)
292
+ #
293
+ def monitor_thread
294
+ Thread.new do
295
+ begin
296
+ while self.fd
297
+ begin
298
+ buff = self.fd.recvfrom_nonblock(1.0)
299
+ rescue IO::WaitReadable
300
+ # IO.select([self.fd])
301
+ next
302
+ end
303
+ next if not buff
304
+ store_data(buff)
305
+ end
306
+ rescue ::Exception => e
307
+ self.monitor_thread_error = e
308
+ end
309
+ end
310
+ end
311
+
312
+ end
313
+
288
314
  end
289
315
  end
290
316
 
@@ -365,5 +391,3 @@ c = r.create_stream
365
391
  p c.read
366
392
 
367
393
  =end
368
-
369
-
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rex-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Maloney
metadata.gz.sig CHANGED
Binary file