zsteg 0.2.10 → 0.2.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +2 -1
  3. data/Gemfile.lock +16 -9
  4. data/Rakefile +1 -1
  5. data/VERSION +1 -1
  6. data/lib/zsteg/cli/cli.rb +1 -1
  7. data/spec/spec_helper.rb +1 -1
  8. data/spec/zlib_spec.rb +1 -1
  9. data/zsteg.gemspec +8 -36
  10. metadata +19 -35
  11. data/pngsteg.gemspec +0 -65
  12. data/samples/hackquest/crypt.bmp +0 -0
  13. data/samples/hackquest/square.bmp +0 -0
  14. data/samples/newbiecontest/alph1-surprise.bmp.7z +0 -0
  15. data/samples/wbstego/wbsteg_blowfish_pass_1.bmp +0 -0
  16. data/samples/wbstego/wbsteg_cast128_pass_1.bmp +0 -0
  17. data/samples/wbstego/wbsteg_enc_pass_pass.bmp +0 -0
  18. data/samples/wbstego/wbsteg_enc_pass_pass_even.bmp +0 -0
  19. data/samples/wbstego/wbsteg_mix_pass_1.bmp +0 -0
  20. data/samples/wbstego/wbsteg_mix_pass_1_even.bmp +0 -0
  21. data/samples/wbstego/wbsteg_mix_pass_foobar.bmp +0 -0
  22. data/samples/wbstego/wbsteg_mix_pass_pass.bmp +0 -0
  23. data/samples/wbstego/wbsteg_mixenc_pass_pass_even.bmp +0 -0
  24. data/samples/wbstego/wbsteg_noenc.bmp +0 -0
  25. data/samples/wbstego/wbsteg_noenc.png +0 -0
  26. data/samples/wbstego/wbsteg_noenc_.bmp +0 -0
  27. data/samples/wbstego/wbsteg_noenc_17.bmp +0 -0
  28. data/samples/wbstego/wbsteg_noenc__.bmp +0 -0
  29. data/samples/wbstego/wbsteg_noenc_even.bmp +0 -0
  30. data/samples/wbstego/wbsteg_noenc_even2.bmp +0 -0
  31. data/samples/wbstego/wbsteg_noenc_even_17.bmp +0 -0
  32. data/samples/wbstego/wbsteg_noenc_even_17_.bmp +0 -0
  33. data/samples/wbstego/wbsteg_noenc_ext_ABC.bmp +0 -0
  34. data/samples/wbstego/wbsteg_rijndael_pass_1.bmp +0 -0
  35. data/samples/wbstego/wbsteg_rijndael_pass_pass.bmp +0 -0
  36. data/samples/wbstego/wbsteg_rijndael_pass_pass_even.bmp +0 -0
  37. data/samples/wbstego/wbsteg_twofish_pass_1.bmp +0 -0
  38. data/samples/wechall/5ZMGcCLxpcpsru03.g00000010.png +0 -0
  39. data/samples/wechall/5ZMGcCLxpcpsru03.png +0 -0
  40. data/samples/wechall/stegano1.bmp +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 24b87b97cb6004ff973d7eff77003c11e001a4400b923e7bc57217dc9f2d6677
4
- data.tar.gz: 8502cb142f3f7690d82055adb9e80ef0ce10e9d66afa800be2a941057fb1e848
3
+ metadata.gz: b50a98cd405613a299041cc60c497f4f9a73a099e3112f44b27dee3fddf4831d
4
+ data.tar.gz: 8c58dd150ce32f42cc381a67592eded9c9c38e7dc0c4026642ec4773081f4bea
5
5
  SHA512:
6
- metadata.gz: 03ed0d039e9df2e142493c08b6601a1b8f997bfe4f0880896e6dbf5d5892e9eef4e00744d03e8b1d06839544aac105cef108dc6e65c5189bdd50bf5e110e8ade
7
- data.tar.gz: 895a2f06eb22d9fbe4bb83c1a6914efcca5d5911309774be4edbf7e627cfed5053a357725402e0897ee2e07e37b8d7178a5c84e8ac4aab3f7a1849df8aef537a
6
+ metadata.gz: 726aa00d6e7cc127072b7dbebe5418d668bc7d62dd119267ab05341b96d63ca71ce23cb2e2cb189e5b59cb8cbd48c09700d736b0d581b32b1feeb30a9ac3b390
7
+ data.tar.gz: 22811b2e9c2ffc3e4ce09aa67d3a65c7dd3636d84740b09664e80dca20d02456f5632214a7df8354affac0f9e8ffd7ccaeb466606608f3bd8e1222ca3dec34c9
data/Gemfile CHANGED
@@ -1,7 +1,8 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- gem 'zpng', ">= 0.4.3"
3
+ gem "zpng", ">= 0.4.4"
4
4
  gem "iostruct"
5
+ gem "prime"
5
6
 
6
7
  group :development do
7
8
  gem "rspec"
data/Gemfile.lock CHANGED
@@ -30,7 +30,9 @@ GEM
30
30
  faraday-patron (1.0.0)
31
31
  faraday-rack (1.0.0)
32
32
  faraday-retry (1.0.3)
33
- git (1.11.0)
33
+ forwardable (1.3.3)
34
+ git (1.13.1)
35
+ addressable (~> 2.8)
34
36
  rchardet (~> 1.8)
35
37
  github_api (0.19.0)
36
38
  addressable (~> 2.4)
@@ -56,24 +58,27 @@ GEM
56
58
  jwt (2.4.1)
57
59
  kamelcase (0.0.2)
58
60
  semver2 (~> 3)
59
- mini_portile2 (2.8.0)
61
+ mini_portile2 (2.8.1)
60
62
  multi_json (1.15.0)
61
63
  multi_xml (0.6.0)
62
64
  multipart-post (2.2.3)
63
- nokogiri (1.13.6)
65
+ nokogiri (1.14.2)
64
66
  mini_portile2 (~> 2.8.0)
65
67
  racc (~> 1.4)
66
- oauth2 (1.4.9)
68
+ oauth2 (1.4.11)
67
69
  faraday (>= 0.17.3, < 3.0)
68
70
  jwt (>= 1.0, < 3.0)
69
71
  multi_json (~> 1.3)
70
72
  multi_xml (~> 0.5)
71
- rack (>= 1.2, < 3)
73
+ rack (>= 1.2, < 4)
74
+ prime (0.1.2)
75
+ forwardable
76
+ singleton
72
77
  psych (4.0.4)
73
78
  stringio
74
79
  public_suffix (4.0.7)
75
- racc (1.6.0)
76
- rack (2.2.3.1)
80
+ racc (1.6.2)
81
+ rack (3.0.4.1)
77
82
  rainbow (3.1.1)
78
83
  rake (13.0.6)
79
84
  rchardet (1.8.0)
@@ -94,9 +99,10 @@ GEM
94
99
  rspec-support (3.11.0)
95
100
  ruby2_keywords (0.0.5)
96
101
  semver2 (3.4.2)
102
+ singleton (0.1.1)
97
103
  stringio (3.0.2)
98
104
  thread_safe (0.3.6)
99
- zpng (0.4.3)
105
+ zpng (0.4.4)
100
106
  rainbow (~> 3.1.1)
101
107
 
102
108
  PLATFORMS
@@ -105,8 +111,9 @@ PLATFORMS
105
111
  DEPENDENCIES
106
112
  iostruct
107
113
  juwelier
114
+ prime
108
115
  rspec
109
- zpng (>= 0.4.3)
116
+ zpng (>= 0.4.4)
110
117
 
111
118
  BUNDLED WITH
112
119
  2.3.12
data/Rakefile CHANGED
@@ -24,7 +24,7 @@ Juwelier::Tasks.new do |gem|
24
24
  #gem.executables = %w'zsteg'
25
25
  gem.files.include "lib/**/*.rb"
26
26
  gem.files.include "bin/*"
27
- gem.files.exclude "samples/*"
27
+ gem.files.exclude "samples/**/*"
28
28
  # dependencies defined in Gemfile
29
29
  end
30
30
  Juwelier::RubygemsDotOrgTasks.new
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.10
1
+ 0.2.12
data/lib/zsteg/cli/cli.rb CHANGED
@@ -201,7 +201,7 @@ module ZSteg
201
201
  h[:bit_order] = :lsb
202
202
  when 'msb'
203
203
  h[:bit_order] = :msb
204
- when /^(\d)b$/, /^b(\d)$/
204
+ when /^(\d)b$/, /^b(\d+)$/
205
205
  h[:bits] = parse_bits($1)
206
206
  when /\A[rgba]+\Z/
207
207
  h[:channels] = [x]
data/spec/spec_helper.rb CHANGED
@@ -48,7 +48,7 @@ def cli *args
48
48
  ensure
49
49
  $stdout = orig_stdout
50
50
  end
51
- out.strip
51
+ out
52
52
  end
53
53
  end
54
54
 
data/spec/zlib_spec.rb CHANGED
@@ -16,7 +16,7 @@ sample("ndh2k12_sp113.bmp") do |fname|
16
16
  subject{ cli(fname, "--extract b1,rgb,lsb,yx,zlib") }
17
17
 
18
18
  it { should include "%PDF-1.4" }
19
- it { subject.size.should == 202383 }
19
+ it { subject.size.should == 202386 }
20
20
  end
21
21
  end
22
22
  end
data/zsteg.gemspec CHANGED
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: zsteg 0.2.10 ruby lib
5
+ # stub: zsteg 0.2.12 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "zsteg".freeze
9
- s.version = "0.2.10"
9
+ s.version = "0.2.12"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib".freeze]
13
13
  s.authors = ["Andrey \"Zed\" Zaikin".freeze]
14
- s.date = "2022-06-30"
14
+ s.date = "2023-02-14"
15
15
  s.email = "zed.0xff@gmail.com".freeze
16
16
  s.executables = ["zsteg".freeze, "zsteg-mask".freeze, "zsteg-reflow".freeze]
17
17
  s.extra_rdoc_files = [
@@ -47,36 +47,6 @@ Gem::Specification.new do |s|
47
47
  "lib/zsteg/file_cmd.rb",
48
48
  "lib/zsteg/masker.rb",
49
49
  "lib/zsteg/result.rb",
50
- "pngsteg.gemspec",
51
- "samples/hackquest/crypt.bmp",
52
- "samples/hackquest/square.bmp",
53
- "samples/newbiecontest/alph1-surprise.bmp.7z",
54
- "samples/wbstego/wbsteg_blowfish_pass_1.bmp",
55
- "samples/wbstego/wbsteg_cast128_pass_1.bmp",
56
- "samples/wbstego/wbsteg_enc_pass_pass.bmp",
57
- "samples/wbstego/wbsteg_enc_pass_pass_even.bmp",
58
- "samples/wbstego/wbsteg_mix_pass_1.bmp",
59
- "samples/wbstego/wbsteg_mix_pass_1_even.bmp",
60
- "samples/wbstego/wbsteg_mix_pass_foobar.bmp",
61
- "samples/wbstego/wbsteg_mix_pass_pass.bmp",
62
- "samples/wbstego/wbsteg_mixenc_pass_pass_even.bmp",
63
- "samples/wbstego/wbsteg_noenc.bmp",
64
- "samples/wbstego/wbsteg_noenc.png",
65
- "samples/wbstego/wbsteg_noenc_.bmp",
66
- "samples/wbstego/wbsteg_noenc_17.bmp",
67
- "samples/wbstego/wbsteg_noenc__.bmp",
68
- "samples/wbstego/wbsteg_noenc_even.bmp",
69
- "samples/wbstego/wbsteg_noenc_even2.bmp",
70
- "samples/wbstego/wbsteg_noenc_even_17.bmp",
71
- "samples/wbstego/wbsteg_noenc_even_17_.bmp",
72
- "samples/wbstego/wbsteg_noenc_ext_ABC.bmp",
73
- "samples/wbstego/wbsteg_rijndael_pass_1.bmp",
74
- "samples/wbstego/wbsteg_rijndael_pass_pass.bmp",
75
- "samples/wbstego/wbsteg_rijndael_pass_pass_even.bmp",
76
- "samples/wbstego/wbsteg_twofish_pass_1.bmp",
77
- "samples/wechall/5ZMGcCLxpcpsru03.g00000010.png",
78
- "samples/wechall/5ZMGcCLxpcpsru03.png",
79
- "samples/wechall/stegano1.bmp",
80
50
  "spec/bin_spec.rb",
81
51
  "spec/camouflage_spec.rb",
82
52
  "spec/cats_spec.rb",
@@ -103,7 +73,7 @@ Gem::Specification.new do |s|
103
73
  ]
104
74
  s.homepage = "http://github.com/zed-0xff/zsteg".freeze
105
75
  s.licenses = ["MIT".freeze]
106
- s.rubygems_version = "3.1.6".freeze
76
+ s.rubygems_version = "3.3.7".freeze
107
77
  s.summary = "Detect stegano-hidden data in PNG & BMP files.".freeze
108
78
 
109
79
  if s.respond_to? :specification_version then
@@ -111,13 +81,15 @@ Gem::Specification.new do |s|
111
81
  end
112
82
 
113
83
  if s.respond_to? :add_runtime_dependency then
114
- s.add_runtime_dependency(%q<zpng>.freeze, [">= 0.4.3"])
84
+ s.add_runtime_dependency(%q<zpng>.freeze, [">= 0.4.4"])
115
85
  s.add_runtime_dependency(%q<iostruct>.freeze, [">= 0"])
86
+ s.add_runtime_dependency(%q<prime>.freeze, [">= 0"])
116
87
  s.add_development_dependency(%q<rspec>.freeze, [">= 0"])
117
88
  s.add_development_dependency(%q<juwelier>.freeze, [">= 0"])
118
89
  else
119
- s.add_dependency(%q<zpng>.freeze, [">= 0.4.3"])
90
+ s.add_dependency(%q<zpng>.freeze, [">= 0.4.4"])
120
91
  s.add_dependency(%q<iostruct>.freeze, [">= 0"])
92
+ s.add_dependency(%q<prime>.freeze, [">= 0"])
121
93
  s.add_dependency(%q<rspec>.freeze, [">= 0"])
122
94
  s.add_dependency(%q<juwelier>.freeze, [">= 0"])
123
95
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zsteg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.10
4
+ version: 0.2.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrey "Zed" Zaikin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-30 00:00:00.000000000 Z
11
+ date: 2023-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: zpng
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.4.3
19
+ version: 0.4.4
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
- version: 0.4.3
26
+ version: 0.4.4
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: iostruct
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: prime
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: rspec
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -105,36 +119,6 @@ files:
105
119
  - lib/zsteg/file_cmd.rb
106
120
  - lib/zsteg/masker.rb
107
121
  - lib/zsteg/result.rb
108
- - pngsteg.gemspec
109
- - samples/hackquest/crypt.bmp
110
- - samples/hackquest/square.bmp
111
- - samples/newbiecontest/alph1-surprise.bmp.7z
112
- - samples/wbstego/wbsteg_blowfish_pass_1.bmp
113
- - samples/wbstego/wbsteg_cast128_pass_1.bmp
114
- - samples/wbstego/wbsteg_enc_pass_pass.bmp
115
- - samples/wbstego/wbsteg_enc_pass_pass_even.bmp
116
- - samples/wbstego/wbsteg_mix_pass_1.bmp
117
- - samples/wbstego/wbsteg_mix_pass_1_even.bmp
118
- - samples/wbstego/wbsteg_mix_pass_foobar.bmp
119
- - samples/wbstego/wbsteg_mix_pass_pass.bmp
120
- - samples/wbstego/wbsteg_mixenc_pass_pass_even.bmp
121
- - samples/wbstego/wbsteg_noenc.bmp
122
- - samples/wbstego/wbsteg_noenc.png
123
- - samples/wbstego/wbsteg_noenc_.bmp
124
- - samples/wbstego/wbsteg_noenc_17.bmp
125
- - samples/wbstego/wbsteg_noenc__.bmp
126
- - samples/wbstego/wbsteg_noenc_even.bmp
127
- - samples/wbstego/wbsteg_noenc_even2.bmp
128
- - samples/wbstego/wbsteg_noenc_even_17.bmp
129
- - samples/wbstego/wbsteg_noenc_even_17_.bmp
130
- - samples/wbstego/wbsteg_noenc_ext_ABC.bmp
131
- - samples/wbstego/wbsteg_rijndael_pass_1.bmp
132
- - samples/wbstego/wbsteg_rijndael_pass_pass.bmp
133
- - samples/wbstego/wbsteg_rijndael_pass_pass_even.bmp
134
- - samples/wbstego/wbsteg_twofish_pass_1.bmp
135
- - samples/wechall/5ZMGcCLxpcpsru03.g00000010.png
136
- - samples/wechall/5ZMGcCLxpcpsru03.png
137
- - samples/wechall/stegano1.bmp
138
122
  - spec/bin_spec.rb
139
123
  - spec/camouflage_spec.rb
140
124
  - spec/cats_spec.rb
@@ -177,7 +161,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
177
161
  - !ruby/object:Gem::Version
178
162
  version: '0'
179
163
  requirements: []
180
- rubygems_version: 3.1.6
164
+ rubygems_version: 3.3.7
181
165
  signing_key:
182
166
  specification_version: 4
183
167
  summary: Detect stegano-hidden data in PNG & BMP files.
data/pngsteg.gemspec DELETED
@@ -1,65 +0,0 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
- # -*- encoding: utf-8 -*-
5
-
6
- Gem::Specification.new do |s|
7
- s.name = "pngsteg"
8
- s.version = "0.0.0"
9
-
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Andrey \"Zed\" Zaikin"]
12
- s.date = "2013-01-06"
13
- s.email = "zed.0xff@gmail.com"
14
- s.executables = ["pngsteg"]
15
- s.files = [
16
- "Gemfile",
17
- "Gemfile.lock",
18
- "Rakefile",
19
- "VERSION",
20
- "bin/pngsteg",
21
- "lib/pngsteg.rb",
22
- "lib/pngsteg/checker.rb",
23
- "lib/pngsteg/cli.rb",
24
- "lib/pngsteg/extractor.rb",
25
- "samples/flower.png",
26
- "samples/flower_rgb1.png",
27
- "samples/flower_rgb2.png",
28
- "samples/flower_rgb3.png",
29
- "samples/flower_rgb4.png",
30
- "samples/flower_rgb5.png",
31
- "samples/flower_rgb6.png",
32
- "spec/samples_spec.rb",
33
- "spec/spec_helper.rb"
34
- ]
35
- s.homepage = "http://github.com/zed-0xff/pngsteg"
36
- s.licenses = ["MIT"]
37
- s.require_paths = ["lib"]
38
- s.rubygems_version = "1.8.24"
39
- s.summary = "Detect stegano-hidden data in PNG files"
40
-
41
- if s.respond_to? :specification_version then
42
- s.specification_version = 3
43
-
44
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
45
- s.add_runtime_dependency(%q<zpng>, [">= 0.2.1"])
46
- s.add_development_dependency(%q<rspec>, [">= 2.8.0"])
47
- s.add_development_dependency(%q<bundler>, [">= 1.0.0"])
48
- s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
49
- s.add_development_dependency(%q<awesome_print>, [">= 0"])
50
- else
51
- s.add_dependency(%q<zpng>, [">= 0.2.1"])
52
- s.add_dependency(%q<rspec>, [">= 2.8.0"])
53
- s.add_dependency(%q<bundler>, [">= 1.0.0"])
54
- s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
55
- s.add_dependency(%q<awesome_print>, [">= 0"])
56
- end
57
- else
58
- s.add_dependency(%q<zpng>, [">= 0.2.1"])
59
- s.add_dependency(%q<rspec>, [">= 2.8.0"])
60
- s.add_dependency(%q<bundler>, [">= 1.0.0"])
61
- s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
62
- s.add_dependency(%q<awesome_print>, [">= 0"])
63
- end
64
- end
65
-
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file