Skip to content

Commit

Permalink
interface tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
zed-0xff committed Jan 17, 2013
1 parent df1fd32 commit 698addc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions TODO
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
[ ] http://search.cpan.org/~nwclark/Acme-Steganography-Image-Png-0.06/Png.pm
[ ] http://registry.gimp.org/node/25988 - GIMP stego plugin
[ ] zsteg-mask: normalize all to white
[ ] stego by pixels of single color (hackquest on wiki)

[+] auto pixel order for BMP
[+] BMP
Expand Down
4 changes: 3 additions & 1 deletion lib/zsteg/checker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,9 @@ def process_result data, params
puts result
end
if data.size > 0 && !result.is_a?(Result::OneChar) && !result.is_a?(Result::WholeText)
print ZPNG::Hexdump.dump(data){ |x| x.prepend(" "*4) }
limit = (params[:limit] || @params[:limit]).to_i
t = limit > 0 ? data[0,limit] : data
print ZPNG::Hexdump.dump(t){ |x| x.prepend(" "*4) }
end
true
end
Expand Down
1 change: 1 addition & 0 deletions lib/zsteg/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def run
"advanced: specify individual bits like '00001110' or '0x88'"
) do |x|
a = []
x = '1-8' if x == 'all'
x.split(',').each do |x1|
if x1['-']
t = x1.split('-')
Expand Down

0 comments on commit 698addc

Please sign in to comment.