reassemble_tcp 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/README.md +15 -3
- data/lib/reassemble_tcp.rb +0 -1
- data/lib/reassemble_tcp/version.rb +1 -1
- metadata +16 -16
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
YmExYjJkOWMyOTNmZTc1NDMzMjg3NWMzNzQ0YTAyMGJhNDFmNGQ4Zg==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 88e066e78db04ae417ca600b36d362c5161f62c0
|
4
|
+
data.tar.gz: 6808a3f1bc343ccae17ca328eda58086c9b5aed9
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
NGY5MTk0ZDg2NzBhYjEwNTMxMWMzMTg0ZWI3ZjMwMTU5ZjVhZmY3YTM5MGY1
|
11
|
-
MzU4ZWIyMTA3Zjk4NmI1MzcwNDdjMTk1MDk3ZjhlMDFmNjRkZDU=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
OTFiYWY2MGU0ZjcxM2RkZmE5ZWQ4NzgzYTU2NDI3ZjkxY2NmMjI5YzBlZWRl
|
14
|
-
M2M0YzI1ZTFmMzk2OWUzNjA1N2Q4ZTljMzE1ZjdiOTg5YTU2YWI5NTJjNmIw
|
15
|
-
YjM0NTY4NTQxOTdiY2QzYmY3OWE4OGFhYjI2ZWYzMDI4YjlmNzk=
|
6
|
+
metadata.gz: e40de32cb55c2b162714e17cf5739e5f94a8d05675f39e56e04cd87cc4538a796e3106a520ac9fc07a39c2c04844a91371f87a07e0456acfb781c312172fdb11
|
7
|
+
data.tar.gz: 0c7e54f1bc374e7f886f33fe18f8601715dcfdd9209fd3f4b033de9e3cedbba987662d6f212dcc1d0488229ee4de5cdf611d541cadc35da9af9f65c56fafb836
|
data/README.md
CHANGED
@@ -1,15 +1,20 @@
|
|
1
1
|
# ReassembleTcp
|
2
2
|
|
3
|
-
|
3
|
+
Ruby gem for reassembling TCP fragment data from pcap file like Wireshark.
|
4
|
+
|
5
|
+
See: http://wiki.wireshark.org/TCP_Reassembly
|
4
6
|
|
5
7
|
## Installation
|
6
8
|
|
7
9
|
Add this line to your application's Gemfile:
|
8
10
|
|
9
|
-
|
11
|
+
```ruby
|
12
|
+
gem 'reassemble_tcp'
|
13
|
+
```
|
10
14
|
|
11
15
|
And then execute:
|
12
16
|
|
17
|
+
|
13
18
|
$ bundle
|
14
19
|
|
15
20
|
Or install it yourself as:
|
@@ -18,8 +23,15 @@ Or install it yourself as:
|
|
18
23
|
|
19
24
|
## Usage
|
20
25
|
|
21
|
-
|
26
|
+
```ruby
|
27
|
+
require 'reassemble_tcp'
|
22
28
|
|
29
|
+
ReassembleTcp.tcp_data_stream('some.pcap') {|t, from, to, data|
|
30
|
+
puts "[#{t.strftime("%Y/%m/%d %H:%M:%S.%6N")} #{from} -> #{to}"
|
31
|
+
puts data[0..100]
|
32
|
+
puts
|
33
|
+
}
|
34
|
+
```
|
23
35
|
## Contributing
|
24
36
|
|
25
37
|
1. Fork it
|
data/lib/reassemble_tcp.rb
CHANGED
metadata
CHANGED
@@ -1,69 +1,69 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: reassemble_tcp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- masatanish
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-08-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: packetfu
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 1.1.9
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 1.1.9
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '1.3'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '1.3'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rspec
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
description: Reassemble TCP fragment data from pcap file like Wireshark.
|
@@ -73,9 +73,9 @@ executables: []
|
|
73
73
|
extensions: []
|
74
74
|
extra_rdoc_files: []
|
75
75
|
files:
|
76
|
-
- .gitignore
|
77
|
-
- .rspec
|
78
|
-
- .travis.yml
|
76
|
+
- ".gitignore"
|
77
|
+
- ".rspec"
|
78
|
+
- ".travis.yml"
|
79
79
|
- Gemfile
|
80
80
|
- LICENSE.txt
|
81
81
|
- README.md
|
@@ -99,17 +99,17 @@ require_paths:
|
|
99
99
|
- lib
|
100
100
|
required_ruby_version: !ruby/object:Gem::Requirement
|
101
101
|
requirements:
|
102
|
-
- -
|
102
|
+
- - ">="
|
103
103
|
- !ruby/object:Gem::Version
|
104
104
|
version: '0'
|
105
105
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
106
106
|
requirements:
|
107
|
-
- -
|
107
|
+
- - ">="
|
108
108
|
- !ruby/object:Gem::Version
|
109
109
|
version: '0'
|
110
110
|
requirements: []
|
111
111
|
rubyforge_project:
|
112
|
-
rubygems_version: 2.
|
112
|
+
rubygems_version: 2.2.2
|
113
113
|
signing_key:
|
114
114
|
specification_version: 4
|
115
115
|
summary: Reassemble TCP fragment data from pcap file like Wireshark.
|