pcap_tools 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +2 -4
- data/README.markdown +1 -1
- data/Rakefile +3 -0
- data/lib/pcap_tools.rb +0 -1
- data/lib/pcap_tools/loader.rb +1 -1
- data/lib/pcap_tools/stream_processors/http.rb +2 -1
- data/pcap_tools.gemspec +1 -1
- metadata +3 -2
data/Gemfile.lock
CHANGED
@@ -2,17 +2,15 @@ PATH
|
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
4
|
pcap_tools (0.0.6)
|
5
|
-
|
5
|
+
ox (= 2.0.11)
|
6
6
|
popen4 (= 0.1.2)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
11
|
Platform (0.4.0)
|
12
|
-
mini_portile (0.5.2)
|
13
|
-
nokogiri (1.6.0)
|
14
|
-
mini_portile (~> 0.5.0)
|
15
12
|
open4 (1.3.0)
|
13
|
+
ox (2.0.11)
|
16
14
|
popen4 (0.1.2)
|
17
15
|
Platform (>= 0.4.0)
|
18
16
|
open4 (>= 0.4.0)
|
data/README.markdown
CHANGED
@@ -76,7 +76,7 @@ You have to use a packet processor to process this packet. The main one is `Pcap
|
|
76
76
|
processor.inject index, packet
|
77
77
|
end
|
78
78
|
|
79
|
-
The [TCPProcessor](https://github.com/bpaquet/pcap_tools/blob/master/lib/pcap_tools/packet_processors/tcp.rb) rebuild streams from IP raw packets. To use the streams, you have to add some streams processors.
|
79
|
+
The [TCPProcessor](https://github.com/bpaquet/pcap_tools/blob/master/lib/pcap_tools/packet_processors/tcp.rb) rebuild streams from IP raw packets. To use the streams, you have to add some streams processors into the TCP Processor. TCP Processor will run each processors in the given order, passing result between them. Streams format is described below.
|
80
80
|
|
81
81
|
processor.add_stream_processor PcapTools::TcpStreamRebuilder.new
|
82
82
|
|
data/Rakefile
ADDED
data/lib/pcap_tools.rb
CHANGED
data/lib/pcap_tools/loader.rb
CHANGED
@@ -94,7 +94,7 @@ module PcapTools
|
|
94
94
|
|
95
95
|
def self.load_file f, options = {}, &block
|
96
96
|
tshark_executable = options[:tshark] || "tshark"
|
97
|
-
accepted_protocols = ["geninfo", "tcp", "ip", "eth", "sll", "frame"]
|
97
|
+
accepted_protocols = ["geninfo", "tcp", "ip", "eth", "sll", "frame", "null"]
|
98
98
|
accepted_protocols += options[:accepted_protocols] if options[:accepted_protocols]
|
99
99
|
profile_name = "pcap_tools"
|
100
100
|
profile_dir = "#{ENV['HOME']}/.wireshark/profiles/#{profile_name}"
|
@@ -31,7 +31,8 @@ module PcapTools
|
|
31
31
|
'POST' => Net::HTTP::Post,
|
32
32
|
'HEAD' => Net::HTTP::Head,
|
33
33
|
'GET' => Net::HTTP::Get,
|
34
|
-
'PUT' => Net::HTTP::Put
|
34
|
+
'PUT' => Net::HTTP::Put,
|
35
|
+
'DELETE' => Net::HTTP::Delete
|
35
36
|
}[m[1]] or raise "Unknown http request type [#{m[1]}]"
|
36
37
|
req = clazz.new m[2]
|
37
38
|
req['Pcap-Src'] = stream[:from]
|
data/pcap_tools.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pcap_tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2014-01-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: popen4
|
@@ -54,6 +54,7 @@ files:
|
|
54
54
|
- Gemfile
|
55
55
|
- Gemfile.lock
|
56
56
|
- README.markdown
|
57
|
+
- Rakefile
|
57
58
|
- bin/pcap_tools
|
58
59
|
- lib/pcap_tools.rb
|
59
60
|
- lib/pcap_tools/loader.rb
|