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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/rex/core/version.rb +1 -1
- data/lib/rex/io/ring_buffer.rb +26 -2
- metadata +1 -1
- 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: b9560dd8f99e0be3f1ba9b23daa72d4357da50ea
|
4
|
+
data.tar.gz: d6649e96240d47c8726cd15050769ffb2892e8c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9455ff81a670a49388d3ebb4cc3f5da04aae8662552f7e5f8e2ec2f55f5f3ed50b8afba5d14773bb7354e77b5318836ddaeeb9632147ce9042b2b8d809bc0ca8
|
7
|
+
data.tar.gz: 8b7f8c5d96698ba677fd5be97bd7fdad80e8fb6afc442428e0a50ff2e5b4f63a4542e60e8d1f200a5de21ef90ca872f5d06969d1c2d0a77d110d2a3ce6177693
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/rex/core/version.rb
CHANGED
data/lib/rex/io/ring_buffer.rb
CHANGED
@@ -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
metadata.gz.sig
CHANGED
Binary file
|