LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   metasploit error;genfile not detected!!???...plz help (https://www.linuxquestions.org/questions/linux-software-2/metasploit-error%3Bgenfile-not-detected-plz-help-4175617927/)

achintyahacker 11-19-2017 08:16 AM

metasploit error;genfile not detected!!???...plz help
 
hi as many of you can see i am a newcommer on LQ and am trying to get some help.

the problem i have have is that i have installed metasploit(metasploit-framework-4.16.16+20171109102338.git.1.c5fd027~1rapid7-1.el6.x86_64) from the official metasploit repository using the automated linux installer and beore the recent update it used to work just fine , i was able to use its full functionality . but now i just get an error . is it because in the recent update there was one for metasploit too . i really don't know , i may be a learning ethical hacker but i am still new to linux .

whenever i try to run commands like :

1.msfconsole
2.msfvenom
3.msfd
4.msfrpcd
5.msfpayload
6.msfencode

it basically just gives me the same error (which can be seen below) :

You are trying to install in deployment mode after changing
your Gemfile. Run `bundle install` elsewhere and add the
updated ../../opt/metasploit/apps/pro/Gemfile.lock to version control.

If this is a development machine, remove the /opt/metasploit/apps/pro/Gemfile freeze
by running `bundle install --no-deployment`.

The list of sources changed

You have deleted from the Gemfile:
* source: source at `engine`
* source: source at `ui`
* metasploit-pro-engine
* metasploit-pro-ui


.................................................................................................... .....

i don,t kn ow how to deal with this problem , a post with detailed help by anyone interested to help will be highly appreciated .

TB0ne 11-19-2017 09:03 AM

Quote:

Originally Posted by achintyahacker (Post 5782479)
hi as many of you can see i am a newcommer on LQ and am trying to get some help.

the problem i have have is that i have installed metasploit(metasploit-framework-4.16.16+20171109102338.git.1.c5fd027~1rapid7-1.el6.x86_64) from the official metasploit repository using the automated linux installer and beore the recent update it used to work just fine , i was able to use its full functionality . but now i just get an error . is it because in the recent update there was one for metasploit too . i really don't know , i may be a learning ethical hacker but i am still new to linux . whenever i try to run commands like :

1.msfconsole
2.msfvenom
3.msfd
4.msfrpcd
5.msfpayload
6.msfencode

it basically just gives me the same error (which can be seen below) :

You are trying to install in deployment mode after changing
your Gemfile. Run `bundle install` elsewhere and add the
updated ../../opt/metasploit/apps/pro/Gemfile.lock to version control.

If this is a development machine, remove the /opt/metasploit/apps/pro/Gemfile freeze
by running `bundle install --no-deployment`.

The list of sources changed

You have deleted from the Gemfile:
* source: source at `engine`
* source: source at `ui`
* metasploit-pro-engine
* metasploit-pro-ui
.................................................................................................... .....
i don,t kn ow how to deal with this problem , a post with detailed help by anyone interested to help will be highly appreciated .

Ok, so did you try doing what the message SAID???? Did you run "bundle install"?? And you really need to read the LQ Rules and "Question Guidelines". Text-speak isn't a good thing to use here, and unless you provide details when asking questions, there's no way we can help. You don't tell us what version/distro of Linux, what has changed (since this WAS working), anything you've done/tried so far, etc.

achintyahacker 11-19-2017 10:53 AM

Quote:

Originally Posted by TB0ne (Post 5782490)
Ok, so did you try doing what the message SAID???? Did you run "bundle install"?? And you really need to read the LQ Rules and "Question Guidelines". Text-speak isn't a good thing to use here, and unless you provide details when asking questions, there's no way we can help. You don't tell us what version/distro of Linux, what has changed (since this WAS working), anything you've done/tried so far, etc.

i have been using the same distro with a simple kernal version change from the point it was working to not-so-working .

was working : 4.13.11-200.fc26.x86_64 (on running uname -r)

is not working: 4.13.12-200.fc26.x86_64

when i am running the "bundle install" it simply says the following:

"Could not locate Gemfile"

i am not a expert in linux stuff and am new in LQ and will from next time definetly follow the rules .

!!! 11-19-2017 11:26 AM

*fully* understand Gemfile, before metasploit!!!
 
Try: pwd
Did you run it "elsewhere"? (Use Google if don't know what something means.)

Also, have you spent=devoted at least a couple hours, to web-researching all the message output?
I find lots (but I'm spending my days on 32 bit efi, sorry, so I don't have any good help here).

Best wishes; let 'us' know!!!

p.s. Here's one of my searches: "Could not locate Gemfile" metasploit|fedora
http://google.com/search?q=%22Could+...ploit%7Cfedora
https://moz.com/learn/seo/search-operators

p.p.s. (added since you haven't read my post yet, per username->ViewPublicProfile):
I might suggest (tho semi-OffTopic), since CEH will need to write high-quality reports,
that you painstakingly Edit #1 (for only gramatical errors; do not change content, as that would be considered 'cover-up'). I'm just trying to be helpful to your 'soft skills'.

TB0ne 11-19-2017 03:52 PM

Quote:

Originally Posted by achintyahacker (Post 5782518)
i have been using the same distro with a simple kernal version change from the point it was working to not-so-working .

was working : 4.13.11-200.fc26.x86_64 (on running uname -r)
is not working: 4.13.12-200.fc26.x86_64
when i am running the "bundle install" it simply says the following: "Could not locate Gemfile"

Still not telling us version/distro, but we can try to ASSUME you're using Fedora 26, right? And are you saying there has been a kernel update? And did you read/follow the Fedora instructions??? http://fedoraproject.org/wiki/Metasploit
Quote:

i am not a expert in linux stuff and am new in LQ and will from next time definetly follow the rules .
Reading the instructions should be the first thing you do with ANYTHING, not just Linux.


All times are GMT -5. The time now is 03:18 AM.