zsteg 0.0.0 → 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. data/Gemfile +2 -7
  2. data/Gemfile.lock +2 -4
  3. data/README.md +72 -1
  4. data/README.md.tpl +23 -0
  5. data/Rakefile +5 -3
  6. data/TODO +5 -2
  7. data/VERSION +1 -1
  8. data/bin/zsteg-mask +7 -0
  9. data/lib/zsteg/checker/wbstego.rb +69 -14
  10. data/lib/zsteg/checker.rb +137 -34
  11. data/lib/zsteg/cli.rb +92 -35
  12. data/lib/zsteg/extractor/byte_extractor.rb +36 -21
  13. data/lib/zsteg/extractor/color_extractor.rb +68 -34
  14. data/lib/zsteg/extractor.rb +36 -1
  15. data/lib/zsteg/file_cmd.rb +64 -1
  16. data/lib/zsteg/mask_cli.rb +268 -0
  17. data/lib/zsteg/masker.rb +52 -0
  18. data/lib/zsteg/result.rb +27 -32
  19. data/lib/zsteg.rb +2 -0
  20. data/samples/hackquest/crypt.bmp +0 -0
  21. data/samples/hackquest/square.bmp +0 -0
  22. data/samples/wbstego/wbsteg_blowfish_pass_1.bmp +0 -0
  23. data/samples/wbstego/wbsteg_cast128_pass_1.bmp +0 -0
  24. data/samples/wbstego/wbsteg_enc_pass_pass.bmp +0 -0
  25. data/samples/wbstego/wbsteg_enc_pass_pass_even.bmp +0 -0
  26. data/samples/wbstego/wbsteg_mix_pass_1.bmp +0 -0
  27. data/samples/wbstego/wbsteg_mix_pass_1_even.bmp +0 -0
  28. data/samples/wbstego/wbsteg_mix_pass_foobar.bmp +0 -0
  29. data/samples/wbstego/wbsteg_mix_pass_pass.bmp +0 -0
  30. data/samples/wbstego/wbsteg_mixenc_pass_pass_even.bmp +0 -0
  31. data/samples/{wbsteg_noenc.bmp → wbstego/wbsteg_noenc.bmp} +0 -0
  32. data/samples/wbstego/wbsteg_noenc.png +0 -0
  33. data/samples/wbstego/wbsteg_noenc_.bmp +0 -0
  34. data/samples/{wbsteg_noenc_17.bmp → wbstego/wbsteg_noenc_17.bmp} +0 -0
  35. data/samples/wbstego/wbsteg_noenc__.bmp +0 -0
  36. data/samples/{wbsteg_noenc_even.bmp → wbstego/wbsteg_noenc_even.bmp} +0 -0
  37. data/samples/wbstego/wbsteg_noenc_even2.bmp +0 -0
  38. data/samples/{wbsteg_noenc_even_17.bmp → wbstego/wbsteg_noenc_even_17.bmp} +0 -0
  39. data/samples/wbstego/wbsteg_noenc_even_17_.bmp +0 -0
  40. data/samples/wbstego/wbsteg_noenc_ext_ABC.bmp +0 -0
  41. data/samples/wbstego/wbsteg_rijndael_pass_1.bmp +0 -0
  42. data/samples/wbstego/wbsteg_rijndael_pass_pass.bmp +0 -0
  43. data/samples/wbstego/wbsteg_rijndael_pass_pass_even.bmp +0 -0
  44. data/samples/wbstego/wbsteg_twofish_pass_1.bmp +0 -0
  45. data/samples/wechall/5ZMGcCLxpcpsru03.g00000010.png +0 -0
  46. data/samples/wechall/5ZMGcCLxpcpsru03.png +0 -0
  47. data/samples/wechall/stegano1.bmp +0 -0
  48. data/spec/checker_spec.rb +47 -0
  49. data/spec/easybmp_spec.rb +9 -0
  50. data/spec/hackquest_spec.rb +18 -0
  51. data/spec/mask_spec.rb +14 -0
  52. data/spec/polictf2012_spec.rb +48 -0
  53. data/spec/prime_spec.rb +9 -0
  54. data/spec/r3g2b3_spec.rb +9 -0
  55. data/spec/spec_helper.rb +21 -4
  56. data/spec/wbstego_spec.rb +21 -3
  57. data/spec/wechall_spec.rb +26 -0
  58. data/tmp/.keep +0 -0
  59. data/zsteg.gemspec +121 -0
  60. metadata +47 -43
  61. data/samples/06_enc.png +0 -0
  62. data/samples/Code.png +0 -0
  63. data/samples/README +0 -4
  64. data/samples/camouflage-password.png +0 -0
  65. data/samples/camouflage.png +0 -0
  66. data/samples/cats.png +0 -0
  67. data/samples/flower.png +0 -0
  68. data/samples/flower_rgb1.png +0 -0
  69. data/samples/flower_rgb2.png +0 -0
  70. data/samples/flower_rgb3.png +0 -0
  71. data/samples/flower_rgb4.png +0 -0
  72. data/samples/flower_rgb5.png +0 -0
  73. data/samples/flower_rgb6.png +0 -0
  74. data/samples/montenach-enc.png +0 -0
  75. data/samples/ndh2k12_sp113.bmp.7z +0 -0
  76. data/samples/openstego_q2.png +0 -0
  77. data/samples/openstego_send.png +0 -0
  78. data/samples/stg300.png +0 -0
metadata CHANGED
@@ -2,14 +2,14 @@
2
2
  name: zsteg
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.0
5
+ version: 0.0.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Andrey "Zed" Zaikin
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-09 00:00:00.000000000 Z
12
+ date: 2013-01-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  prerelease: false
@@ -19,29 +19,13 @@ dependencies:
19
19
  requirements:
20
20
  - - ! '>='
21
21
  - !ruby/object:Gem::Version
22
- version: 0.2.1
22
+ version: 0.2.2
23
23
  none: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - ! '>='
27
27
  - !ruby/object:Gem::Version
28
- version: 0.2.1
29
- none: false
30
- - !ruby/object:Gem::Dependency
31
- prerelease: false
32
- type: :runtime
33
- name: awesome_print
34
- requirement: !ruby/object:Gem::Requirement
35
- requirements:
36
- - - ! '>='
37
- - !ruby/object:Gem::Version
38
- version: '0'
39
- none: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
- requirements:
42
- - - ! '>='
43
- - !ruby/object:Gem::Version
44
- version: '0'
28
+ version: 0.2.2
45
29
  none: false
46
30
  - !ruby/object:Gem::Dependency
47
31
  prerelease: false
@@ -111,6 +95,7 @@ description:
111
95
  email: zed.0xff@gmail.com
112
96
  executables:
113
97
  - zsteg
98
+ - zsteg-mask
114
99
  extensions: []
115
100
  extra_rdoc_files:
116
101
  - README.md
@@ -125,6 +110,7 @@ files:
125
110
  - TODO
126
111
  - VERSION
127
112
  - bin/zsteg
113
+ - bin/zsteg-mask
128
114
  - cmp_bmp.rb
129
115
  - cmp_png.rb
130
116
  - lib/zsteg.rb
@@ -135,38 +121,56 @@ files:
135
121
  - lib/zsteg/extractor/byte_extractor.rb
136
122
  - lib/zsteg/extractor/color_extractor.rb
137
123
  - lib/zsteg/file_cmd.rb
124
+ - lib/zsteg/mask_cli.rb
125
+ - lib/zsteg/masker.rb
138
126
  - lib/zsteg/result.rb
139
127
  - pngsteg.gemspec
140
- - samples/06_enc.png
141
- - samples/Code.png
142
- - samples/README
143
- - samples/camouflage-password.png
144
- - samples/camouflage.png
145
- - samples/cats.png
146
- - samples/flower.png
147
- - samples/flower_rgb1.png
148
- - samples/flower_rgb2.png
149
- - samples/flower_rgb3.png
150
- - samples/flower_rgb4.png
151
- - samples/flower_rgb5.png
152
- - samples/flower_rgb6.png
153
- - samples/montenach-enc.png
154
- - samples/ndh2k12_sp113.bmp.7z
155
- - samples/openstego_q2.png
156
- - samples/openstego_send.png
157
- - samples/stg300.png
158
- - samples/wbsteg_noenc.bmp
159
- - samples/wbsteg_noenc_17.bmp
160
- - samples/wbsteg_noenc_even.bmp
161
- - samples/wbsteg_noenc_even_17.bmp
128
+ - samples/hackquest/crypt.bmp
129
+ - samples/hackquest/square.bmp
130
+ - samples/wbstego/wbsteg_blowfish_pass_1.bmp
131
+ - samples/wbstego/wbsteg_cast128_pass_1.bmp
132
+ - samples/wbstego/wbsteg_enc_pass_pass.bmp
133
+ - samples/wbstego/wbsteg_enc_pass_pass_even.bmp
134
+ - samples/wbstego/wbsteg_mix_pass_1.bmp
135
+ - samples/wbstego/wbsteg_mix_pass_1_even.bmp
136
+ - samples/wbstego/wbsteg_mix_pass_foobar.bmp
137
+ - samples/wbstego/wbsteg_mix_pass_pass.bmp
138
+ - samples/wbstego/wbsteg_mixenc_pass_pass_even.bmp
139
+ - samples/wbstego/wbsteg_noenc.bmp
140
+ - samples/wbstego/wbsteg_noenc.png
141
+ - samples/wbstego/wbsteg_noenc_.bmp
142
+ - samples/wbstego/wbsteg_noenc_17.bmp
143
+ - samples/wbstego/wbsteg_noenc__.bmp
144
+ - samples/wbstego/wbsteg_noenc_even.bmp
145
+ - samples/wbstego/wbsteg_noenc_even2.bmp
146
+ - samples/wbstego/wbsteg_noenc_even_17.bmp
147
+ - samples/wbstego/wbsteg_noenc_even_17_.bmp
148
+ - samples/wbstego/wbsteg_noenc_ext_ABC.bmp
149
+ - samples/wbstego/wbsteg_rijndael_pass_1.bmp
150
+ - samples/wbstego/wbsteg_rijndael_pass_pass.bmp
151
+ - samples/wbstego/wbsteg_rijndael_pass_pass_even.bmp
152
+ - samples/wbstego/wbsteg_twofish_pass_1.bmp
153
+ - samples/wechall/5ZMGcCLxpcpsru03.g00000010.png
154
+ - samples/wechall/5ZMGcCLxpcpsru03.png
155
+ - samples/wechall/stegano1.bmp
162
156
  - spec/camouflage_spec.rb
163
157
  - spec/cats_spec.rb
158
+ - spec/checker_spec.rb
159
+ - spec/easybmp_spec.rb
164
160
  - spec/flowers_spec.rb
161
+ - spec/hackquest_spec.rb
162
+ - spec/mask_spec.rb
165
163
  - spec/openstego_spec.rb
164
+ - spec/polictf2012_spec.rb
165
+ - spec/prime_spec.rb
166
+ - spec/r3g2b3_spec.rb
166
167
  - spec/simple_spec.rb
167
168
  - spec/spec_helper.rb
168
169
  - spec/wbstego_spec.rb
170
+ - spec/wechall_spec.rb
169
171
  - spec/zlib_spec.rb
172
+ - tmp/.keep
173
+ - zsteg.gemspec
170
174
  homepage: http://github.com/zed-0xff/zsteg
171
175
  licenses:
172
176
  - MIT
@@ -181,7 +185,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
181
185
  version: '0'
182
186
  segments:
183
187
  - 0
184
- hash: 3565268342721586308
188
+ hash: -4446382556191797471
185
189
  none: false
186
190
  required_rubygems_version: !ruby/object:Gem::Requirement
187
191
  requirements:
data/samples/06_enc.png DELETED
Binary file
data/samples/Code.png DELETED
Binary file
data/samples/README DELETED
@@ -1,4 +0,0 @@
1
- flower*.png - http://punkroy.drque.net/PNG_Steganography/Steganography3.php
2
- cats.png - RuCTF2012 - steg400 - http://darkbyte.ru/2012/46/ructf-2012-quals-writeup-cats/
3
- opensteg*.png - http://openstego.sourceforge.net/
4
- Code.png - http://blog.secoverflow.org/gchq-can-you-crack-it-writeup/
Binary file
Binary file
data/samples/cats.png DELETED
Binary file
data/samples/flower.png DELETED
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
data/samples/stg300.png DELETED
Binary file