Every time I try to run a ruby exploit from the exploitdb, I get a ruby error that looks like:
cannot load such file -- msf/core (LoadError)
I realize this means it’s looking for libraries it can’t find because the path is incorrect and I even figured out how to get it to go find the right directory by changing the require line, but then I immediately get another error of the same type from a different script the original one called. So I feel like there is a better way to get the scripts to work in my environment like setting a global environment variable or something. My env is Kali Linux btw. I’m very familiar with programming in Python and other languages as well as linux systems administration, so I understnad the concepts, I just don’t know exactly what the right way to do this in Ruby is and apparently my google fu is not as good as I thought…
Any hints would be greatly appreciated. Thanks!