rapid7 / metasploit-framework

Metasploit Framework
https://www.metasploit.com/
Other
34.14k stars 13.97k forks source link

fatal: needed a single revision #8398

Closed NnB01 closed 7 years ago

NnB01 commented 7 years ago

Steps to reproduce

How'd you do it?

  1. sudo msfconsole

Expected behavior

start metasploit-framework without any errors.

Current behavior

terminal says: "fatal: Needed a single revision" and metasploit starts loading normally. I'm not really sure if this fatal error is able to disrupt metasploits normal operation even though it starts normally.

System stuff

Metasploit version

metasploit v4.14.17-dev-

I installed Metasploit with:

ParrotSec OS 3.6 x64 bit ISO

OS

Parrot 3.6 JollyRoger 64-bit

wvu commented 7 years ago

Try posting a screenshot. That error sounds like it's coming from git rebase, which is a strange thing to be seeing when you start msfconsole.

busterb commented 7 years ago

If this is a native 'ParrotSec OS' package, please contact the maintainer rather than us. It sounds like they have a problem with how Metasploit is packaged. If they are packaging Metasploit without the .git directory, they need to apply a patch like this:

https://github.com/rapid7/metasploit-omnibus/blob/master/config/patches/metasploit-framework/no-git.diff

wvu commented 7 years ago

Yeah, this is definitely not a Metasploit bug.

NnB01 commented 7 years ago

github

This is exactly what happens. I made also another test to make sure that this is not a maintainer problem, i ran same iso on a live usb and ran metasploit, no message like this appeared. Also i'm pretty sure that this started when i downloaded and installed other tools with git method (like MITMf-framework).

wvu commented 7 years ago

strace it. ¯\_(ツ)_/¯

busterb commented 7 years ago

Pretty sure the patch above is at least part of the answer.

NnB01 commented 7 years ago

No doubt, but how can i use that please?

wvu commented 7 years ago

The diff above is for our Omnibus package. If you want to use it, you want to talk to the package maintainer for your distro.

0xspade commented 7 years ago

still waiting for the fix :(

busterb commented 7 years ago

I think I showed you what to do, and the fix isn't likely to come from us - it's in your distro packager. Can you point where the ParrotSec bug tracker is? I'll file a report there.

Calabrase commented 7 years ago

Am sorry, I am a novice to Linux. After problems with the git repo. Am now having this error above 'fatal: Needed a single revision. You pointed to talk with Package maintainer. How can I reach mine, for same distro

busterb commented 7 years ago

go here: https://community.parrotsec.org/ post a message