Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

No such file or directory 29131.rb #26

Closed
jkldgoefgkljefogeg opened this issue Jan 15, 2016 · 3 comments
Closed

No such file or directory 29131.rb #26

jkldgoefgkljefogeg opened this issue Jan 15, 2016 · 3 comments
Labels

Comments

@jkldgoefgkljefogeg
Copy link

exploit-database/platforms/hardware/webapps/29131.rb

I am not sure if I am missing something. 29131.rb always returns : No such file or directory.

$ ruby -v
ruby 2.1.5p273 (2014-11-13) [x86_64-linux-gnu]

@g0tmi1k
Copy link
Collaborator

g0tmi1k commented Jan 17, 2016

[root:~]# ruby /usr/share/exploitdb/platforms/hardware/webapps/29131.rb
/usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- highline/import (LoadError)
    from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/share/exploitdb/platforms/hardware/webapps/29131.rb:33:in `<main>'
[root:~]#

[root:~]# gem install highline
Fetching: highline-1.7.8.gem (100%)
Successfully installed highline-1.7.8
Parsing documentation for highline-1.7.8
Installing ri documentation for highline-1.7.8
Done installing documentation for highline after 2 seconds
1 gem installed
[root:~]#
[root:~]# ruby /usr/share/exploitdb/platforms/hardware/webapps/29131.rb
Usage: sc_mix.rb -s <Src_PATH> -d <Dest_PATH>
Usage:
    -s, --source Src_PATH            Source File
    -d, --destination Dest_PATH      Destination File
    -u                               Uncompress
    -h                               Show this message
[root:~]#
[root:~]# ruby --version
ruby 2.1.5p273 (2014-11-13) [x86_64-linux-gnu]
[root:~]# 
[root:~]# uname -a
Linux kali 4.0.0-kali1-amd64 #1 SMP Debian 4.0.4-1+kali2 (2015-06-03) x86_64 GNU/Linux
[root:~]# 

@jkldgoefgkljefogeg
Copy link
Author

I have highline installed when I got 'No such file or directory.' It did show Usage when I ran the script without arguments.

Maybe my ruby environment was kinda messed up. The script works now.

@offensive-security
Copy link
Owner

Fixed, thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants