peterclemenko / msfmap

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

when msfmap runs "[-] Found No Networks To Scan From." error occurs #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.setup the msfmap by:./install.sh /opt/metasploit/msf3
2.restart the metasploit framework by exit it and input "msfconsole" on the 
shell .
3.load msfmap,  and  output message says : sucessfully
but when i tried to run it. errors occur.
shown as follows:
-------------------------------------------------------
msf > msfmap -PN 127.0.0.1
[-] Found No Networks To Scan From.
[-] Error while running command msfmap: undefined method `length' for 
nil:NilClass

Call stack:
/opt/metasploit/msf3/plugins/msfmap.rb:21:in `cmd_msfmap'
/opt/metasploit/msf3/lib/rex/ui/text/dispatcher_shell.rb:420:in `run_command'
/opt/metasploit/msf3/lib/rex/ui/text/dispatcher_shell.rb:382:in `block in 
run_single'
/opt/metasploit/msf3/lib/rex/ui/text/dispatcher_shell.rb:376:in `each'
/opt/metasploit/msf3/lib/rex/ui/text/dispatcher_shell.rb:376:in `run_single'
/opt/metasploit/msf3/lib/rex/ui/text/shell.rb:200:in `run'
/opt/metasploit/msf3/msfconsole:148:in `<main>'
msf > ls
------------------------------------------------------

What is the expected output? What do you see instead?
.... i think the normal output should be the scan result.....

What version of the product are you using? On what operating system?
version :  the lasted version 0.1.1.tar.bz2..
os :  backtrack 5  /  ubuntu 
operating system information shown as follows:

-------------------------------------------------
root@ieroot:~# 
root@ieroot:~# id
uid=0(root) gid=0(root) 组=0(root)
root@ieroot:~# uname -a
Linux ieroot.com 3.2.6 #1 SMP Fri Feb 17 10:40:05 EST 2012 i686 GNU/Linux
root@ieroot:~# cat /etc/issue
BackTrack 5 R2 - Code Name Revolution 32 bit \n \l
root@ieroot:~# cat /proc/version 
Linux version 3.2.6 (root@bt) (gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) ) #1 
SMP Fri Feb 17 10:40:05 EST 2012
root@ieroot:~# 
----------------------------------------------------

Please provide any additional information below.

... and at first, after installation , i cannot load msfmap successfully . 
after that ,i've cat install.sh. and uncommented the two lines :
----------------------------------------

 echo "cp client/plugin/msfmap.rb $1/plugins/msfmap.rb"
 cp client/plugin/msfmap.rb $1/plugins/msfmap.rb

----------------------------------------
and then . i install it again and can load it sucessfully but along with an 
running time error..

by the way ,  my pc connecting the network very well all the time .  ifconfig 
info says below:
-----------------------------------------------
root@ieroot:~# 
root@ieroot:~# ifconfig
eth0      Link encap:以太网  硬件地址 60:eb:69:15:19:95  
          inet 地址:121.250.211.79  广播:121.250.211.255  掩码:255.255.255.0
          inet6 地址: 2002:79fa:d333:6:62eb:69ff:fe15:1995/64 Scope:Global
          inet6 地址: fec0::6:62eb:69ff:fe15:1995/64 Scope:Site
          inet6 地址: 2001:da8:7001:211:62eb:69ff:fe15:1995/64 Scope:Global
          inet6 地址: fe80::62eb:69ff:fe15:1995/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  跃点数:1
          接收数据包:81440 错误:0 丢弃:0 过载:0 帧数:0
          发送数据包:41130 错误:0 丢弃:0 过载:0 载波:0
          碰撞:0 发送队列长度:1000 
          接收字节:70426959 (70.4 MB)  发送字节:3695232 (3.6 MB)
          中断:16 

lo        Link encap:本地环回  
          inet 地址:127.0.0.1  掩码:255.0.0.0
          inet6 地址: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  跃点数:1
          接收数据包:53843 错误:0 丢弃:0 过载:0 帧数:0
          发送数据包:53843 错误:0 丢弃:0 过载:0 载波:0
          碰撞:0 发送队列长度:0 
          接收字节:27220811 (27.2 MB)  发送字节:27220811 (27.2 MB)

root@ieroot:~# 
---------------------------------------------

thank you very much for any help you'll provide to me

Original issue reported on code.google.com by yuletian...@gmail.com on 28 Sep 2012 at 3:50

GoogleCodeExporter commented 9 years ago
Judging by the prompt "msf > " from your output it appears you tried to execute 
the msfmap framework plugin as opposed to the msfmap meterpreter extension.  
The framework plugin was meant to coordinate scans across multiple sessions, 
however it has not yet been completed and is non-functioning.  This is not a 
bug, what you need to do is interact with your meterpreter sessions (use 
"sessions -i") and then use "load msfmap" from the "meterpreter > " prompt.  
The lines that you uncommented from the install script were meant to prevent 
the non-functioning plugin from being installed.

Sorry for the confusion but once again the framework plugin is for future 
support that is not currently implemented.

Original comment by zeroStei...@gmail.com on 30 Sep 2012 at 9:25

GoogleCodeExporter commented 9 years ago
thank you ..  i  see  now..  @_@

Original comment by yuletian...@gmail.com on 15 Oct 2012 at 2:35