ronin-rb / ronin-exploits

A Ruby micro-framework for writing and running exploits
https://ronin-rb.dev
GNU Lesser General Public License v3.0
70 stars 23 forks source link

ronin-exploit missing required file when installing to gemset #23

Closed danghvu closed 11 years ago

danghvu commented 11 years ago

ronin-exploit from the repository throws an require error track back to this line of code:

https://github.com/ronin-ruby/ronin-exploits/blob/master/lib/ronin/database/migrations/exploits/exploit.rb#L23

`require': cannot load such file -- ronin/database/migrations/license (LoadError)

I can't find where this license file in either ronin or ronin-exploit

postmodern commented 11 years ago

That file exists in the 1.6.0 branch of ronin. Make sure your using Bundler to install the 1.6.0 branch of ronin.

danghvu commented 11 years ago

Realized the problem since I am trying to put the newest version to my rvm gemset using gem build and gem install. gem build takes the value from gemspec and it's not the valid version ~1.6.0. Is there anyway to ask the gem install to pull the newest from git repository ?

postmodern commented 11 years ago

Try rake build or rake install instead. This will cause the man-pages to be automatically generated, and then a .gem file built in the pkg/ directory. rake install is the same as rake build, except that it also runs gem install pkg/....

danghvu commented 11 years ago

Same problem, the gem still downloads the old version. I have to install 1.6.0 separately... but then now got a problem with ronin-support as ronin-1.6.0 requires ronin-support 0.6 (in Gemfile) but the gemspec list as 0.5 Got this error when run both ronin-exploit and ronin out of the source directory

`require': cannot load such file -- ronin/ui/printing`
postmodern commented 11 years ago

I updated the gemspecs to require the latest versions. Also ensure you installed ronin-support 0.6.0, ronin 1.6.0 and ronin-gen 1.3.0.

danghvu commented 11 years ago

Thanks, finally get the latest ronin, ronin-exploit(s), ronin-gen to work from gemset without error. But it's quite painful as I have to install one by one manually. Is there anyway to make the rake | gem aware of the outdated dependency version and try to get it from the correct git branch ?

postmodern commented 11 years ago

Hopefully I can find the time and release ronin-support 0.6.0, ronin 1.6.0, ronin-gen 1.3.0, and finally release ronin-exploits 1.0.0. Until then, using Bundler to manage gems from git branches is your best option.

postmodern commented 11 years ago

I think I will fix any remaining broken specs this weekend and release pre-release versions of ronin-support 0.6.0, ronin 1.6.0, ronin-gen 1.3.0 and ronin-exploits 1.0.0. This will allow you to test it outside of Bundler/git.