akamajoris / msfmap

Automatically exported from code.google.com/p/msfmap
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

error on BT5 r3 #8

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
this is the error i get:

meterpreter > load msfmap
Loading extension msfmap...[-] Error running command load: LoadError cannot 
load such file -- rex/post/meterpreter/extensions/msfmap/msfmap

Original issue reported on code.google.com by miche...@gmail.com on 28 Jan 2013 at 2:03

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
It looks like you haven't installed it correctly.  Did you use the included 
install script as outlined in the INSTALL file?

If you have multiple versions of metasploit installed, you'll need to install 
it on the one that you're attempting to use.

Original comment by zeroStei...@gmail.com on 28 Jan 2013 at 2:19

GoogleCodeExporter commented 8 years ago
yes, but i used the generic example:
    Generic Example:
        sh install.sh /opt/metasploit3/msf3

because on my box that dir (/opt/metasploit3/msf3) exists and 
/pentest/exploits/framework3 doesn't exist, only /pentest/exploits/framework2 
does.

Original comment by miche...@gmail.com on 28 Jan 2013 at 2:26

GoogleCodeExporter commented 8 years ago
I'm assuming the install script completed successfully?  It should have printed 
"Done." at the end.

Also have you restarted Metasploit completely since you installed MSFMap?

Original comment by zeroStei...@gmail.com on 28 Jan 2013 at 2:38

GoogleCodeExporter commented 8 years ago
yes it printed "Done" and i have restarted it.

Original comment by miche...@gmail.com on 28 Jan 2013 at 3:03

GoogleCodeExporter commented 8 years ago
Can you verify that a directory 
"/opt/metasploit/msf3/lib/rex/post/meterpreter/extensions/msfmap" exists and 
that within it are files config.rb, constants.rb msfmap.rb and tlv.rb?

There also needs to be another "msfmab.rb" file in 
/opt/metasploit/msf3/lib/rex/post/meterpreter/ui/console/command_dispatcher/

Also can you verify your Msf root by using irb in the msfconsole like:
msf > irb
[*] Starting IRB shell...

>> Msf::Config.install_root
=> "/opt/metasploit/msf3"
>> 

If that doesn't return "/opt/metasploit/msf3" then you'll need to rerun the 
msfmap installer with the value that it returns as the install path.

Original comment by zeroStei...@gmail.com on 28 Jan 2013 at 3:14

GoogleCodeExporter commented 8 years ago
all files are there:

root@RO-CZC8242YKZ:~/Downloads/MSFMap-v0.1.1# ls
/opt/metasploit/msf3/lib/rex/post/meterpreter/extensions/msfmap
config.rb  constants.rb  msfmap.rb  tlv.rb

root@RO-CZC8242YKZ:~/Downloads/MSFMap-v0.1.1# ls
/opt/metasploit/msf3/lib/rex/post/meterpreter/ui/console/command_dispatcher/
core.rb  espia.rb  incognito.rb  msfmap.rb  networkpug.rb  priv  priv.rb
sniffer.rb  stdapi  stdapi.rb
root@RO-CZC8242YKZ:~/Downloads/MSFMap-v0.1.1#

however when i run irb from msf console all i get is this:
       =[ metasploit v4.6.0-dev [core:4.6 api:1.0]
+ -- --=[ 1036 exploits - 634 auxiliary - 176 post
+ -- --=[ 265 payloads - 28 encoders - 8 nops

msf > irb
[*] Starting IRB shell...

Original comment by miche...@gmail.com on 28 Jan 2013 at 3:33

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Running "irb" should return a prompt of >>  that you need to put the command of 

puts Msf::Config.install_root

into.  That will print the directory that you need to pass to the install 
script so it searches the correct locations.  Have you installed another 
version of Metasploit from Git or the installer?

Original comment by zeroStei...@gmail.com on 28 Jan 2013 at 3:43

GoogleCodeExporter commented 8 years ago
>> puts Msf::Config.install_root
/opt/metasploit/apps/pro/msf3

indeed there was another dir. I've reinstalled it and now it works.
Thanks.

Original comment by miche...@gmail.com on 28 Jan 2013 at 4:03

GoogleCodeExporter commented 8 years ago

Original comment by zeroStei...@gmail.com on 28 Jan 2013 at 4:31