Code Monkey home page Code Monkey logo

Comments (8)

zed-0xff avatar zed-0xff commented on July 29, 2024 1

I believe there's something wrong with your rubygems, can you try a clean Kali install?

iostruct (0.0.4)
zpng (0.3.2)

from zsteg.

zed-0xff avatar zed-0xff commented on July 29, 2024

try newer version 0.2.4

from zsteg.

SharonCohenGitHub avatar SharonCohenGitHub commented on July 29, 2024

Thank you for the reply @zed-0xff!

Still getting the same error however:

/var/lib/gems/2.7.0/gems/zsteg-0.2.3/lib/zsteg/result.rb:11:in `<module:Result>': uninitialized constant ZSteg::Result::IOStruct (NameError)
Did you mean?  ZSteg::Result::Struct
	from /var/lib/gems/2.7.0/gems/zsteg-0.2.3/lib/zsteg/result.rb:3:in `<module:ZSteg>'
	from /var/lib/gems/2.7.0/gems/zsteg-0.2.3/lib/zsteg/result.rb:2:in `<top (required)>'
	from /usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:72:in `require'
	from /usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:72:in `require'
	from /var/lib/gems/2.7.0/gems/zsteg-0.2.3/lib/zsteg.rb:9:in `<top (required)>'
	from /usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
	from /usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
	from /var/lib/gems/2.7.0/gems/zsteg-0.2.3/bin/zsteg:6:in `<top (required)>'
	from /usr/local/bin/zsteg:23:in `load'
	from /usr/local/bin/zsteg:23:in `<main>'

Distro info:

PRETTY_NAME="Kali GNU/Linux Rolling"
NAME="Kali GNU/Linux"
ID=kali
VERSION="2020.4"
VERSION_ID="2020.4"
VERSION_CODENAME="kali-rolling"
ID_LIKE=debian
ANSI_COLOR="1;31"
HOME_URL="https://www.kali.org/"
SUPPORT_URL="https://forums.kali.org/"
BUG_REPORT_URL="https://bugs.kali.org/"

from zsteg.

zed-0xff avatar zed-0xff commented on July 29, 2024

Can you also post the exact ruby version?

from zsteg.

SharonCohenGitHub avatar SharonCohenGitHub commented on July 29, 2024

Ruby version:

ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-linux-gnu]

from zsteg.

zed-0xff avatar zed-0xff commented on July 29, 2024

VirtualBox_Kali-Linux-2020 4-vbox-amd64_21_02_2021_11_17_18

I've just tried fresh Kali VirtualBox image, and it worked just fine.
btw, why you installed with --force flag?

Try to remove gems iostruct & zsteg and reinstall zsteg without --force flag.

from zsteg.

SharonCohenGitHub avatar SharonCohenGitHub commented on July 29, 2024

Peculiar!

Uninstalled (iostruct & zsteg) and reinstalled (zsteg 0.24 without --force flag) and the following happens:

/var/lib/gems/2.7.0/gems/zpng-0.3.2/lib/zpng/string_ext.rb:7:in `block (2 levels) in <class:String>': undefined method `color' for #<String:0x00005618bf08ad80> (NoMethodError)
	from /var/lib/gems/2.7.0/gems/zpng-0.3.2/lib/zpng/image.rb:140:in `_from_io'
	from /var/lib/gems/2.7.0/gems/zpng-0.3.2/lib/zpng/image.rb:37:in `initialize'
	from /var/lib/gems/2.7.0/gems/zpng-0.3.2/lib/zpng/image.rb:72:in `new'
	from /var/lib/gems/2.7.0/gems/zpng-0.3.2/lib/zpng/image.rb:72:in `block in load'
	from /var/lib/gems/2.7.0/gems/zpng-0.3.2/lib/zpng/image.rb:71:in `open'
	from /var/lib/gems/2.7.0/gems/zpng-0.3.2/lib/zpng/image.rb:71:in `load'
	from /var/lib/gems/2.7.0/gems/zsteg-0.2.4/lib/zsteg/cli/cli.rb:175:in `load_image'
	from /var/lib/gems/2.7.0/gems/zsteg-0.2.4/lib/zsteg/cli/cli.rb:156:in `block in run'
	from /var/lib/gems/2.7.0/gems/zsteg-0.2.4/lib/zsteg/cli/cli.rb:151:in `each'
	from /var/lib/gems/2.7.0/gems/zsteg-0.2.4/lib/zsteg/cli/cli.rb:151:in `each_with_index'
	from /var/lib/gems/2.7.0/gems/zsteg-0.2.4/lib/zsteg/cli/cli.rb:151:in `run'
	from /var/lib/gems/2.7.0/gems/zsteg-0.2.4/lib/zsteg.rb:30:in `run'
	from /var/lib/gems/2.7.0/gems/zsteg-0.2.4/bin/zsteg:8:in `<top (required)>'
	from /usr/local/bin/zsteg:23:in `load'
	from /usr/local/bin/zsteg:23:in `<main>'

Which zpng version do you use?

from zsteg.

SharonCohenGitHub avatar SharonCohenGitHub commented on July 29, 2024

Sounds about right, moved all files and started from scratch - now it works!

Thank you for your time & help!

from zsteg.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.