zed-0xff / zsteg Goto Github PK
View Code? Open in Web Editor NEWdetect stegano-hidden data in PNG & BMP
Home Page: http://zed.0xff.me
detect stegano-hidden data in PNG & BMP
Home Page: http://zed.0xff.me
One of your samples: ndh2k12_sp113.bmp
zsteg -a ndh2k12_sp113.bmp
...
b1,rgb,lsb,yx .. zlib: data="%PDF-1.4\n%\xC3\xA4\xC3\xBC\xC3\xB6\xC3\x9F\n2 0 obj\n<</Length 3 0 R/Filter/FlateDecode>>\nstream\nx\x9C\x8DT\xC9n\xDB@\f\xBD\xCFW\xF0\x1C \x13\x92\xB3\x03\x86\x80\xC8K\xD1\xDE\\\b\xE8\xA1...", offset=4, size=186
...
But I can't figure out how to inflate the data after I have extracted it. I have tried zlib-inflate, pigz, and faking headers for gzip.
Thanks
meta XML:com.adobe.xmp.. /var/lib/gems/3.1.0/gems/zsteg-0.2.13/lib/zsteg/checker/zlib.rb:24:in index': incompatible character encodings: UTF-8 and ASCII-8BIT (Encoding::CompatibilityError) from /var/lib/gems/3.1.0/gems/zsteg-0.2.13/lib/zsteg/checker/zlib.rb:24:in
check_data'
from /var/lib/gems/3.1.0/gems/zsteg-0.2.13/lib/zsteg/checker.rb:395:in data2result' from /var/lib/gems/3.1.0/gems/zsteg-0.2.13/lib/zsteg/checker.rb:314:in
process_result'
from /var/lib/gems/3.1.0/gems/zsteg-0.2.13/lib/zsteg/checker.rb:185:in block in check_metadata' from /var/lib/gems/3.1.0/gems/zsteg-0.2.13/lib/zsteg/checker.rb:182:in
each'
from /var/lib/gems/3.1.0/gems/zsteg-0.2.13/lib/zsteg/checker.rb:182:in check_metadata' from /var/lib/gems/3.1.0/gems/zsteg-0.2.13/lib/zsteg/checker.rb:77:in
check'
from /var/lib/gems/3.1.0/gems/zsteg-0.2.13/lib/zsteg/cli/cli.rb:258:in check' from /var/lib/gems/3.1.0/gems/zsteg-0.2.13/lib/zsteg/cli/cli.rb:172:in
block (2 levels) in run'
from /var/lib/gems/3.1.0/gems/zsteg-0.2.13/lib/zsteg/cli/cli.rb:168:in each' from /var/lib/gems/3.1.0/gems/zsteg-0.2.13/lib/zsteg/cli/cli.rb:168:in
block in run'
from /var/lib/gems/3.1.0/gems/zsteg-0.2.13/lib/zsteg/cli/cli.rb:161:in each' from /var/lib/gems/3.1.0/gems/zsteg-0.2.13/lib/zsteg/cli/cli.rb:161:in
each_with_index'
from /var/lib/gems/3.1.0/gems/zsteg-0.2.13/lib/zsteg/cli/cli.rb:161:in run' from /var/lib/gems/3.1.0/gems/zsteg-0.2.13/lib/zsteg.rb:26:in
run'
from /var/lib/gems/3.1.0/gems/zsteg-0.2.13/bin/zsteg:8:in <top (required)>' from /usr/local/bin/zsteg:25:in
load'
from /usr/local/bin/zsteg:25:in `
I don't think there's currently a way to automatically extract all the hidden files found by -a
. It'd be nice if we could just:
$ zstego -E -a image.png
To extract everything hidden on image.png
to an output
dir.
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/zsteg-0.2.4/lib/zsteg/file_cmd.rb:106:in `stop!': undefined method `close' for nil:NilClass (NoMethodError)
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/zsteg-0.2.4/lib/zsteg/checker.rb:119:in `ensure in check'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/zsteg-0.2.4/lib/zsteg/checker.rb:119:in `check'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/zsteg-0.2.4/lib/zsteg/cli/cli.rb:245:in `check'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/zsteg-0.2.4/lib/zsteg/cli/cli.rb:162:in `block (2 levels) in run'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/zsteg-0.2.4/lib/zsteg/cli/cli.rb:158:in `each'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/zsteg-0.2.4/lib/zsteg/cli/cli.rb:158:in `block in run'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/zsteg-0.2.4/lib/zsteg/cli/cli.rb:151:in `each'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/zsteg-0.2.4/lib/zsteg/cli/cli.rb:151:in `each_with_index'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/zsteg-0.2.4/lib/zsteg/cli/cli.rb:151:in `run'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/zsteg-0.2.4/lib/zsteg.rb:30:in `run'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/zsteg-0.2.4/bin/zsteg:8:in `<top (required)>'
from C:/Ruby30-x64/bin/zsteg:23:in `load'
from C:/Ruby30-x64/bin/zsteg:23:in `<main>'
C:/Ruby30-x64/lib/ruby/3.0.0/open3.rb:221:in `spawn': No such file or directory - file -n -b -f - (Errno::ENOENT)
from C:/Ruby30-x64/lib/ruby/3.0.0/open3.rb:221:in `popen_run'
from C:/Ruby30-x64/lib/ruby/3.0.0/open3.rb:102:in `popen3'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/zsteg-0.2.4/lib/zsteg/file_cmd.rb:67:in `start!'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/zsteg-0.2.4/lib/zsteg/checker.rb:68:in `check'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/zsteg-0.2.4/lib/zsteg/cli/cli.rb:245:in `check'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/zsteg-0.2.4/lib/zsteg/cli/cli.rb:162:in `block (2 levels) in run'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/zsteg-0.2.4/lib/zsteg/cli/cli.rb:158:in `each'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/zsteg-0.2.4/lib/zsteg/cli/cli.rb:158:in `block in run'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/zsteg-0.2.4/lib/zsteg/cli/cli.rb:151:in `each'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/zsteg-0.2.4/lib/zsteg/cli/cli.rb:151:in `each_with_index'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/zsteg-0.2.4/lib/zsteg/cli/cli.rb:151:in `run'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/zsteg-0.2.4/lib/zsteg.rb:30:in `run'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/zsteg-0.2.4/bin/zsteg:8:in `<top (required)>'
from C:/Ruby30-x64/bin/zsteg:23:in `load'
from C:/Ruby30-x64/bin/zsteg:23:in `<main>'
On this line
Line 67 in 1d1f79a
You rely on the Linux "file" command resulting in cross-platform compatibility issues.
Whilst the help list does have the "--file" parameter to exclude the usage of "file", it does not seem to work, and still attempts to run it.
needs arg to disable tools to use
for example openStego just hangs and blocks the rest of check_png.sh
I was expecting this
$ zsteg -o xy -c rgb -b 10000000 --lsb
to be equivalent to
$ zsteg -o xy -c rgb -b1 --msb
or even
$ zsteg -o xy -c rgb -b 00000001 --msb
what did I miss ?
thanks
Solved
zsteg -b 0x80 -c r -o yx mmm.png -n 0 -v
b10000000,r,lsb,yx .. text: "passkey_is_xxxxx"
➜ lsbtest zsteg -e b10000000,r,lsb,yx mmm.png
Traceback (most recent call last):
14: from /usr/local/bin/zsteg:23:in `<main>'
13: from /usr/local/bin/zsteg:23:in `load'
12: from /var/lib/gems/2.6.0/gems/zsteg-0.2.11/bin/zsteg:8:in `<top (required)>'
11: from /var/lib/gems/2.6.0/gems/zsteg-0.2.11/lib/zsteg.rb:30:in `run'
10: from /var/lib/gems/2.6.0/gems/zsteg-0.2.11/lib/zsteg/cli/cli.rb:151:in `run'
9: from /var/lib/gems/2.6.0/gems/zsteg-0.2.11/lib/zsteg/cli/cli.rb:151:in `each_with_index'
8: from /var/lib/gems/2.6.0/gems/zsteg-0.2.11/lib/zsteg/cli/cli.rb:151:in `each'
7: from /var/lib/gems/2.6.0/gems/zsteg-0.2.11/lib/zsteg/cli/cli.rb:158:in `block in run'
6: from /var/lib/gems/2.6.0/gems/zsteg-0.2.11/lib/zsteg/cli/cli.rb:158:in `each'
5: from /var/lib/gems/2.6.0/gems/zsteg-0.2.11/lib/zsteg/cli/cli.rb:160:in `block (2 levels) in run'
4: from /var/lib/gems/2.6.0/gems/zsteg-0.2.11/lib/zsteg/cli/cli.rb:249:in `extract'
3: from /var/lib/gems/2.6.0/gems/zsteg-0.2.11/lib/zsteg/cli/cli.rb:235:in `_extract_data'
2: from /var/lib/gems/2.6.0/gems/zsteg-0.2.11/lib/zsteg/cli/cli.rb:198:in `decode_param_string'
1: from /var/lib/gems/2.6.0/gems/zsteg-0.2.11/lib/zsteg/cli/cli.rb:198:in `each'
/var/lib/gems/2.6.0/gems/zsteg-0.2.11/lib/zsteg/cli/cli.rb:215:in `block in decode_param_string': uknown param "b10000000" (RuntimeError)
Solved
edit /var/lib/gems/2.6.0/gems/zsteg-0.2.11/lib/zsteg/cli/cli.rb
when /^(\d+)b$/, /^b(\d)$/
to
when /^(\d+)b$/, /^b(\d+)$/
[?] 2 bytes of extra data after image end (IEND), offset = 0x269b0e
extradata:0 .. ["\x00" repeated 2 times]
imagedata .. file: OpenPGP Public Key
b1,lsb,bY .. /var/lib/gems/3.1.0/gems/iostruct-0.1.2/lib/iostruct.rb:136:in block in inspect': undefined method
type' for nil:NilClass (NoMethodError)
when f.type == Integer
^^^^^
from /var/lib/gems/3.1.0/gems/iostruct-0.1.2/lib/iostruct.rb:133:in `each'
from /var/lib/gems/3.1.0/gems/iostruct-0.1.2/lib/iostruct.rb:133:in `map'
from /var/lib/gems/3.1.0/gems/iostruct-0.1.2/lib/iostruct.rb:133:in `inspect'
from /var/lib/gems/3.1.0/gems/zsteg-0.2.13/lib/zsteg/checker/wbstego.rb:41:in `to_s'
from /var/lib/gems/3.1.0/gems/zsteg-0.2.13/lib/zsteg/checker.rb:291:in `puts'
from /var/lib/gems/3.1.0/gems/zsteg-0.2.13/lib/zsteg/checker.rb:291:in `puts'
from /var/lib/gems/3.1.0/gems/zsteg-0.2.13/lib/zsteg/checker.rb:291:in `show_result'
from /var/lib/gems/3.1.0/gems/zsteg-0.2.13/lib/zsteg/checker.rb:326:in `process_result'
from /var/lib/gems/3.1.0/gems/zsteg-0.2.13/lib/zsteg/checker.rb:271:in `check_channels'
from /var/lib/gems/3.1.0/gems/zsteg-0.2.13/lib/zsteg/checker.rb:191:in `check_channels'
from /var/lib/gems/3.1.0/gems/zsteg-0.2.13/lib/zsteg/checker.rb:116:in `block (3 levels) in check'
from /var/lib/gems/3.1.0/gems/zsteg-0.2.13/lib/zsteg/checker.rb:99:in `each'
from /var/lib/gems/3.1.0/gems/zsteg-0.2.13/lib/zsteg/checker.rb:99:in `block (2 levels) in check'
from /var/lib/gems/3.1.0/gems/zsteg-0.2.13/lib/zsteg/checker.rb:98:in `each'
from /var/lib/gems/3.1.0/gems/zsteg-0.2.13/lib/zsteg/checker.rb:98:in `block in check'
from /var/lib/gems/3.1.0/gems/zsteg-0.2.13/lib/zsteg/checker.rb:97:in `each'
from /var/lib/gems/3.1.0/gems/zsteg-0.2.13/lib/zsteg/checker.rb:97:in `check'
from /var/lib/gems/3.1.0/gems/zsteg-0.2.13/lib/zsteg/cli/cli.rb:258:in `check'
from /var/lib/gems/3.1.0/gems/zsteg-0.2.13/lib/zsteg/cli/cli.rb:172:in `block (2 levels) in run'
from /var/lib/gems/3.1.0/gems/zsteg-0.2.13/lib/zsteg/cli/cli.rb:168:in `each'
from /var/lib/gems/3.1.0/gems/zsteg-0.2.13/lib/zsteg/cli/cli.rb:168:in `block in run'
from /var/lib/gems/3.1.0/gems/zsteg-0.2.13/lib/zsteg/cli/cli.rb:161:in `each'
from /var/lib/gems/3.1.0/gems/zsteg-0.2.13/lib/zsteg/cli/cli.rb:161:in `each_with_index'
from /var/lib/gems/3.1.0/gems/zsteg-0.2.13/lib/zsteg/cli/cli.rb:161:in `run'
from /var/lib/gems/3.1.0/gems/zsteg-0.2.13/lib/zsteg.rb:26:in `run'
from /var/lib/gems/3.1.0/gems/zsteg-0.2.13/bin/zsteg:8:in `<top (required)>'
from /usr/local/bin/zsteg:25:in `load'
from /usr/local/bin/zsteg:25:in `<main>'
Hi,
Running zsteg with any option about colors (-C, --color, --no-color) causes
[...].gem/ruby/2.6.0/gems/zsteg-0.1.2/lib/zsteg/cli/cli.rb:127:in `block (2 levels) in run': uninitialized constant ZSteg::CLI::Cli::Sickill (NameError)
Following this question on ruSO:
https://ru.stackoverflow.com/questions/1529122/Нужно-вытащить-инфу-из-png
Zsteg worked pretty fine on analyzing the file and brought up a "*near" solution with the desired string and 5 false positives:
b1,r,lsb,xy .. text: "P~ZKP:VZ70v0"
b1,r,msb,xy .. text: "h\\Xjlj~V"
b1,rgb,lsb,xy .. text: "\ntadluudcl\ndqsushhud\nrmtzamjrgqgb\nowibnivvur\nskbynqx\nfub\nfnsqczqlp\neekr\nzukgr\niqm\niqghhmk\npswzfztfeor\nlhdososrra\nhdajkwyjc\npml\nmcunotfpoog\naenn\nqvfjdebnx\nesdaeenjpp\nzdcygkocgdwa\nhyizstsq\nsbuecriqv\nkov\nkglbfridcq\nhaqfeijqf\nzqusqewebg\naevxiodbztm\njvovealysgs"
b2,g,lsb,xy .. text: "QAEAQ@AD"
b2,b,lsb,xy .. text: "PQQT@PAPPTPPP"
b2,b,msb,xy .. text: "U_]WuW]W"
The problem is, this b1,rgb,lsb,xy text does not have the hidden message which is "there is no quest with a portal it's just an excuse" hidden among a multi-line string with some random chars. However this site and another site worked fine and did yield 62 lines compared to 28 given by zsteg. Websites also do provide some binary chars at the end.
Given that, zsteg is missing something.
I've just reinstalled zsteg and getting the following error:
└─$ sudo gem uninstall zsteg
[sudo] password for user:
Remove executables:
zsteg, zsteg-mask, zsteg-reflow
in addition to the gem? [Yn] Y
Removing zsteg
Removing zsteg-mask
Removing zsteg-reflow
Successfully uninstalled zsteg-0.2.2
┌──(user㉿kali)-[~]
└─$ sudo gem install zsteg --force 1 ⨯
Fetching zsteg-0.2.2.gem
Successfully installed zsteg-0.2.2
Parsing documentation for zsteg-0.2.2
Installing ri documentation for zsteg-0.2.2
Done installing documentation for zsteg after 0 seconds
1 gem installed
┌──(user㉿kali)-[~]
└─$ zsteg
Traceback (most recent call last):
10: from /usr/local/bin/zsteg:23:in `<main>'
9: from /usr/local/bin/zsteg:23:in `load'
8: from /var/lib/gems/2.7.0/gems/zsteg-0.2.2/bin/zsteg:6:in `<top (required)>'
7: from /usr/local/lib/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:85:in `require'
6: from /usr/local/lib/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:85:in `require'
5: from /var/lib/gems/2.7.0/gems/zsteg-0.2.2/lib/zsteg.rb:9:in `<top (required)>'
4: from /usr/local/lib/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:85:in `require'
3: from /usr/local/lib/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:85:in `require'
2: from /var/lib/gems/2.7.0/gems/zsteg-0.2.2/lib/zsteg/result.rb:2:in `<top (required)>'
1: from /var/lib/gems/2.7.0/gems/zsteg-0.2.2/lib/zsteg/result.rb:3:in `<module:ZSteg>'
/var/lib/gems/2.7.0/gems/zsteg-0.2.2/lib/zsteg/result.rb:11:in `<module:Result>': uninitialized constant ZSteg::Result::IOStruct (NameError)
Did you mean? ZSteg::Result::Struct
Hi,
I have a couple .pngs that causes zsteg to behave abnormally.
Traceback (most recent call last): 16: from /usr/local/bin/zsteg:23:in <main>' 15: from /usr/local/bin/zsteg:23:in
load' 14: from /var/lib/gems/2.7.0/gems/zsteg-0.2.5/bin/zsteg:8:in <top (required)>' 13: from /var/lib/gems/2.7.0/gems/zsteg-0.2.5/lib/zsteg.rb:30:in
run' 12: from /var/lib/gems/2.7.0/gems/zsteg-0.2.5/lib/zsteg/cli/cli.rb:151:in run' 11: from /var/lib/gems/2.7.0/gems/zsteg-0.2.5/lib/zsteg/cli/cli.rb:151:in
each_with_index' 10: from /var/lib/gems/2.7.0/gems/zsteg-0.2.5/lib/zsteg/cli/cli.rb:151:in each' 9: from /var/lib/gems/2.7.0/gems/zsteg-0.2.5/lib/zsteg/cli/cli.rb:158:in
block in run' 8: from /var/lib/gems/2.7.0/gems/zsteg-0.2.5/lib/zsteg/cli/cli.rb:158:in each' 7: from /var/lib/gems/2.7.0/gems/zsteg-0.2.5/lib/zsteg/cli/cli.rb:162:in
block (2 levels) in run' 6: from /var/lib/gems/2.7.0/gems/zsteg-0.2.5/lib/zsteg/cli/cli.rb:245:in check' 5: from /var/lib/gems/2.7.0/gems/zsteg-0.2.5/lib/zsteg/checker.rb:113:in
check' 4: from /var/lib/gems/2.7.0/gems/zsteg-0.2.5/lib/zsteg/analyzer.rb:11:in analyze!' 3: from /var/lib/gems/2.7.0/gems/zsteg-0.2.5/lib/zsteg/analyzer.rb:34:in
detect_block_size' 2: from /var/lib/gems/2.7.0/gems/zpng-0.3.3/lib/zpng/image.rb:337:in []' 1: from /var/lib/gems/2.7.0/gems/zpng-0.3.3/lib/zpng/scan_line.rb:147:in
[]' /var/lib/gems/2.7.0/gems/zpng-0.3.3/lib/zpng/scan_line.rb:289:in `decoded_bytes': invalid ScanLine filter 252 (RuntimeError)
Additionally I have a malformed .png that a causes memory leak on my system and the analysis never finishes. If you want I can share that too via method you prefer.
Thanks for making a great tool
Can someone please help me out here. I not sure what I'm doing wrong. I installed zsteg into a folder and tried to run it on a png file, but I got these errors.
I had used gem install zsteg
to install.
The command I was trying to use was zsteg filename.png
Traceback (most recent call last): 15: from C:/Ruby27-x64/bin/zsteg:23:in <main> 14: from C:/Ruby27-x64/bin/zsteg:23:in load 13: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/zsteg-0.2.4/bin/zsteg:8:in
<top (required)>'
12: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/zsteg-0.2.4/lib/zsteg.rb:30:in run' 11: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/zsteg-0.2.4/lib/zsteg/cli/cli.rb:151:in
run'
10: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/zsteg-0.2.4/lib/zsteg/cli/cli.rb:151:in each_with_index' 9: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/zsteg-0.2.4/lib/zsteg/cli/cli.rb:151:in
each'
8: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/zsteg-0.2.4/lib/zsteg/cli/cli.rb:158:in block in run' 7: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/zsteg-0.2.4/lib/zsteg/cli/cli.rb:158:in
each'
6: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/zsteg-0.2.4/lib/zsteg/cli/cli.rb:162:in block (2 levels) in run' 5: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/zsteg-0.2.4/lib/zsteg/cli/cli.rb:245:in
check'
4: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/zsteg-0.2.4/lib/zsteg/checker.rb:68:in check' 3: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/zsteg-0.2.4/lib/zsteg/file_cmd.rb:67:in
start!'
2: from C:/Ruby27-x64/lib/ruby/2.7.0/open3.rb:101:in popen3' 1: from C:/Ruby27-x64/lib/ruby/2.7.0/open3.rb:213:in
popen_run'
C:/Ruby27-x64/lib/ruby/2.7.0/open3.rb:213:in spawn': No such file or directory - file -n -b -f - (Errno::ENOENT) 13: from C:/Ruby27-x64/bin/zsteg:23:in
load' 11: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/zsteg-0.2.4/bin/zsteg:8:in
<top (required)>'run' 9: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/zsteg-0.2.4/lib/zsteg/cli/cli.rb:151:in
run'each_with_index' 7: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/zsteg-0.2.4/lib/zsteg/cli/cli.rb:151:in
each'block in run' 5: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/zsteg-0.2.4/lib/zsteg/cli/cli.rb:158:in
each'block (2 levels) in run' 3: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/zsteg-0.2.4/lib/zsteg/cli/cli.rb:245:in
check'check' 1: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/zsteg-0.2.4/lib/zsteg/checker.rb:119:in
ensure in check'`Hello,
I am not familiar with Ruby, so I may be missing something very obvious, but I think I have an issue, which is specific to zsteg.
After installing zsteg to my machine with gem install zsteg
, the zsteg executable will not run. I get the following error:
<internal:/usr/share/rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- prime (LoadError)
from <internal:/usr/share/rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require'
from /home/yutanagano/.local/share/gem/ruby/gems/zsteg-0.2.9/lib/zsteg/extractor.rb:1:in `<top (required)>'
from <internal:/usr/share/rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require'
from <internal:/usr/share/rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require'
from /home/yutanagano/.local/share/gem/ruby/gems/zsteg-0.2.9/lib/zsteg.rb:6:in `<top (required)>'
from <internal:/usr/share/rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require'
from <internal:/usr/share/rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require'
from /home/yutanagano/.local/share/gem/ruby/gems/zsteg-0.2.9/bin/zsteg:6:in `<top (required)>'
from ./zsteg:25:in `load'
from ./zsteg:25:in `<main>'
I thought at first that maybe something is wrong with the Ruby install on my machine and tried installing other gems, and they worked fine. That's why I'm posting my issue here.
I am on a Fedora Linux (v36) machine.
Ruby version: ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x86_64-linux]
Gem version: 3.3.7
Thank you!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.