syspy 0.0.18 → 0.0.19
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.
- data/lib/tds_package_stream.rb +2 -3
- metadata +3 -3
data/lib/tds_package_stream.rb
CHANGED
|
@@ -18,11 +18,10 @@ module Syspy
|
|
|
18
18
|
def each_package()
|
|
19
19
|
Thread.abort_on_exception = true
|
|
20
20
|
@tcpdump_thread = Thread.new(){
|
|
21
|
-
IO.popen("tcpdump -B 2048 -q -x -i #{@interface} tcp and dst #{@dst} and dst port #{@dst_port} 2>/dev/null"){|io|
|
|
21
|
+
IO.popen("tcpdump -y EN10MB -B 2048 -q -x -i #{@interface} tcp and dst #{@dst} and dst port #{@dst_port} 2>/dev/null"){|io|
|
|
22
22
|
buffer = StringIO.new()
|
|
23
23
|
io.each_line(){|line|
|
|
24
|
-
if(line.match(/^\d{1,2}:\d{1,2}:\d{1,2}.+$/))
|
|
25
|
-
puts line
|
|
24
|
+
if(line.match(/^\d{1,2}:\d{1,2}:\d{1,2}.+$/))
|
|
26
25
|
unless(buffer.string.empty?)
|
|
27
26
|
data_io = StringIO.new(buffer.string)
|
|
28
27
|
tcp_length = read_ip_header(data_io)
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: syspy
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 57
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 0.0.
|
|
9
|
+
- 19
|
|
10
|
+
version: 0.0.19
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Matthias Balmer
|