Jump to content

Does anyone know how to install ruby in rbenv for Metasploit payload?


Bitwise

Recommended Posts

I want to install rbenv on the bunny for the metasploit payload.

Have been searching on google, and the solutions i could find didn't work.

Can anybody please leave a link or make a short explenation on howto install the rbenv in /root with ruby 2.4.1.

thnx in advance.. 

Link to comment
Share on other sites

Ok .. i  have found a page with some info on installing ruby with rbenv :

https://www.digitalocean.com/community/tutorials/how-to-install-ruby-on-rails-with-rbenv-on-ubuntu-18-04)

But i get stuck at installing a version of ruby ( in my case 2.4.1 ).. 

Did get a lot of missing packages while compiling and now i got stuck with unmet dependency's and don't know how to continue from here.

<error message>

apt-get install -y libreadline6-dev libtinfo-dev
Reading package lists... Done
Building dependency tree        
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
libtinfo-dev : Depends: libtinfo5 (= 5.9+20140913-1+deb8u3) but 6.0+20161126-1+deb9u2
is to be installed
E: Unable to correct problems, you have held broken packages.


</error message>

Link to comment
Share on other sites

  • 6 months later...
On 2/6/2021 at 2:27 PM, Bitwise said:

Ok .. i  have found a page with some info on installing ruby with rbenv :

https://www.digitalocean.com/community/tutorials/how-to-install-ruby-on-rails-with-rbenv-on-ubuntu-18-04)

But i get stuck at installing a version of ruby ( in my case 2.4.1 ).. 

Did get a lot of missing packages while compiling and now i got stuck with unmet dependency's and don't know how to continue from here.

<error message>

apt-get install -y libreadline6-dev libtinfo-dev
Reading package lists... Done
Building dependency tree        
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
libtinfo-dev : Depends: libtinfo5 (= 5.9+20140913-1+deb8u3) but 6.0+20161126-1+deb9u2
is to be installed
E: Unable to correct problems, you have held broken packages.


</error message>

I keep getting this as well when I use Putty to serial into BB. Could someone possibly explain to me what I am doing wrong with the Kali Linux / Linux version of this? 

sudo bash ./bb.sh 

Bash bunny is detected and everything seems right, but then what? How do we access the console after setup and it is detected and in ECM_Ethernet mode? 

Otherwise, I keep trying to apt-get install <package name> to BB and it either fails or something like this happens. Hopefully someone out there can figure out what the issue is. 

Link to comment
Share on other sites

When you have established a working internet connection for the Bunny using the bb.sh script and ssh into the Bunny, can you ping (for example) www.google.com from the Bunny? If not, then something is wrong with the execution of bb.sh and the requirements for giving the Bunny internet access is not there and it hasn't been set up correctly by the script. What output do you get when running the bb.sh script and select to connect? Is the Linux box running on bare metal or in a VM?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...