Results 1 to 9 of 9

Thread: metasploit ruby errors?

  1. #1
    Just burned his ISO
    Join Date
    Jul 2010
    Posts
    8

    Default metasploit ruby errors?

    I have been banging my head against the wall for a week on this one.. I have searched all over these forums, google, asked fellow wannabe pen testers, everything and I can't figure out what I am missing here. I simply cannot figure out what I am doing wrong, I have installed a whole bunch of extra ruby packages, tried different set ups (username and password) for both postgresql and mysql.. both postgresql 8.4 and 9.0 and I get this same thing for both, I think it is a ruby issue.. but I don't know.

    running gnome with a 2.6.38-8 kernel

    Code:
    =[ metasploit v3.8.0-dev [core:3.8 api:1.0]
     + -- --=[ 697 exploits - 358 auxiliary - 54 post
     + -- --=[ 224 payloads - 27 encoders - 8 nops
     =[ svn r12970 updated today (2011.06.18)
    
     msf > db_driver mysql[*] Using database driver mysql
     msf > db_connect root:toor@127.0.0.1/me
     msf > db_nmap 192.168.1.1[*] Nmap: Starting Nmap 5.51 ( http://nmap.org ) at 2011-06-18 22:15 AKDT[*] Nmap: Nmap scan report for 192.168.1.1[*] Nmap: Host is up (0.0016s latency).[*] Nmap: Not shown: 996 closed ports[*] Nmap: PORT STATE SERVICE[*] Nmap: 23/tcp open telnet[*] Nmap: 53/tcp open domain[*] Nmap: 80/tcp open http[*] Nmap: 5000/tcp open upnp[*] Nmap: MAC Address: C0:3F:0E:51:A9:4E (Netgear)[*] Nmap: Nmap done: 1 IP address (1 host up) scanned in 4.11 seconds
     /pentest/exploits/framework3/lib/rex/parser/nmap_nokogiri.rb:96: warning: multiple values for a block parameter (2 for 1)
     from /pentest/exploits/framework3/lib/rex/parser/nmap_nokogiri.rb:96
     /pentest/exploits/framework3/lib/rex/parser/nmap_nokogiri.rb:96: warning: multiple values for a block parameter (2 for 1)
     from /pentest/exploits/framework3/lib/rex/parser/nmap_nokogiri.rb:96
     /pentest/exploits/framework3/lib/rex/parser/nmap_nokogiri.rb:96: warning: multiple values for a block parameter (2 for 1)
     from /pentest/exploits/framework3/lib/rex/parser/nmap_nokogiri.rb:96
     /pentest/exploits/framework3/lib/rex/parser/nmap_nokogiri.rb:96: warning: multiple values for a block parameter (2 for 1)
     from /pentest/exploits/framework3/lib/rex/parser/nmap_nokogiri.rb:96
     [-] Error while running command db_nmap: undefined method `delete' for nil:NilClass
    
     Call stack:
     /pentest/exploits/framework3/lib/rex/parser/nmap_nokogiri.rb:99:in `end_element'
     /usr/lib/ruby/1.8/nokogiri/xml/sax/document.rb:125:in `end_element_namespace'
     /usr/lib/ruby/1.8/nokogiri/xml/sax/parser.rb:110:in `parse_with'
     /usr/lib/ruby/1.8/nokogiri/xml/sax/parser.rb:110:in `parse_memory'
     /usr/lib/ruby/1.8/nokogiri/xml/sax/parser.rb:83:in `parse'
     /pentest/exploits/framework3/lib/msf/core/db.rb:3860:in `import_nmap_noko_stream'
     /pentest/exploits/framework3/lib/msf/core/db.rb:3877:in `import_nmap_xml'
     /pentest/exploits/framework3/lib/msf/core/db.rb:3830:in `import_nmap_xml_file'
     /pentest/exploits/framework3/lib/msf/ui/console/command_dispatcher/db.rb:1568:in `cmd_db_nmap'
     /pentest/exploits/framework3/lib/rex/ui/text/dispatcher_shell.rb:376:in `send'
     /pentest/exploits/framework3/lib/rex/ui/text/dispatcher_shell.rb:376:in `run_command'
     /pentest/exploits/framework3/lib/rex/ui/text/dispatcher_shell.rb:338:in `run_single'
     /pentest/exploits/framework3/lib/rex/ui/text/dispatcher_shell.rb:332:in `each'
     /pentest/exploits/framework3/lib/rex/ui/text/dispatcher_shell.rb:332:in `run_single'
     /pentest/exploits/framework3/lib/rex/ui/text/shell.rb:143:in `run'
     /pentest/exploits/framework3/./msfconsole:130
     msf > db_hosts
    
     Hosts
     =====
    
     address mac name os_name os_flavor os_sp purpose info comments
     ------- --- ---- ------- --------- ----- ------- ---- --------
    
     msf >
    any help would be greatly appreciated, thanks in advance

  2. #2
    Administrator sickness's Avatar
    Join Date
    Jan 2010
    Location
    Behind the screen.
    Posts
    2,921

    Default Re: metasploit ruby errors?

    Try upgrading Backtrack, it also upgrades framework3

    Code:
    root@bt:~# msfconsole 
    
                     o                       8         o   o
                     8                       8             8
    ooYoYo. .oPYo.  o8P .oPYo. .oPYo. .oPYo. 8 .oPYo. o8  o8P
    8' 8  8 8oooo8   8  .oooo8 Yb..   8    8 8 8    8  8   8
    8  8  8 8.       8  8    8   'Yb. 8    8 8 8    8  8   8
    8  8  8 `Yooo'   8  `YooP8 `YooP' 8YooP' 8 `YooP'  8   8
    ..:..:..:.....:::..::.....::.....:8.....:..:.....::..::..:
    ::::::::::::::::::::::::::::::::::8:::::::::::::::::::::::
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    
    
           =[ metasploit v3.8.0-dev [core:3.8 api:1.0]
    + -- --=[ 697 exploits - 358 auxiliary - 54 post
    + -- --=[ 224 payloads - 27 encoders - 8 nops
           =[ svn r12973 updated today (2011.06.18)
    
    msf > db_driver mysql[*] Using database driver mysql
    msf > db_connect root:toor@127.0.0.1/msf3
    msf > db_nmap 192.168.1.70[*] Nmap: Starting Nmap 5.51SVN ( http://nmap.org ) at 2011-06-19 10:34 EEST
    [*] Nmap: Nmap scan report for sickness-2d9b51.lan (192.168.1.70)
    [*] Nmap: Host is up (0.028s latency).
    [*] Nmap: Not shown: 997 closed ports
    [*] Nmap: PORT    STATE SERVICE
    [*] Nmap: 135/tcp open  msrpc
    [*] Nmap: 139/tcp open  netbios-ssn
    [*] Nmap: 445/tcp open  microsoft-ds
    [*] Nmap: MAC Address: 00:22:5F:02:30:22 (Liteon Technology)
    [*] Nmap: Nmap done: 1 IP address (1 host up) scanned in 0.52 seconds
    
    msf > db_hosts 
    
    Hosts
    =====
    
    address        mac                name                 os_name  os_flavor  os_sp  purpose  info  comments
    -------        ---                ----                 -------  ---------  -----  -------  ----  --------                                              
    192.168.1.70   00:22:5F:02:30:22  sickness-2d9b51.lan                                            
    
    msf >
    Back|track giving machine guns to monkeys since 2007 !

    Do not read the Wiki, most your questions will not be answered there !
    Do not take a look at the: Forum Rules !

  3. #3
    Just burned his ISO
    Join Date
    Jul 2010
    Posts
    8

    Default Re: metasploit ruby errors?

    hmmm, updated, upgraded, still the same thing. I feel like I screwed up my ruby packages for some reason, so I reinstalled ruby, still nothing.. any other suggestions?

  4. #4
    Just burned their ISO
    Join Date
    Feb 2010
    Posts
    22

    Default Re: metasploit ruby errors?

    Im updeted and upgradet BT5 but still wrong with metasploit
    root@bt:~# msfconsole
    msfconsole: command not found

    oot@bt:/pentest/exploits# ls
    exploitdb framework2 framework3 sapyto set spamhole
    root@bt:/pentest/exploits# cd framework3
    bash: cd: framework3: No such file or directory ???

    Anyone can help?

  5. #5
    Administrator sickness's Avatar
    Join Date
    Jan 2010
    Location
    Behind the screen.
    Posts
    2,921

    Default Re: metasploit ruby errors?

    Quote Originally Posted by matrix75 View Post
    Im updeted and upgradet BT5 but still wrong with metasploit
    root@bt:~# msfconsole
    msfconsole: command not found

    oot@bt:/pentest/exploits# ls
    exploitdb framework2 framework3 sapyto set spamhole
    root@bt:/pentest/exploits# cd framework3
    bash: cd: framework3: No such file or directory ???

    Anyone can help?
    Purge it, remove remaining files (if any) than install it again and it will work.
    Back|track giving machine guns to monkeys since 2007 !

    Do not read the Wiki, most your questions will not be answered there !
    Do not take a look at the: Forum Rules !

  6. #6
    Just burned his ISO
    Join Date
    Oct 2011
    Posts
    2

    Unhappy Re: metasploit ruby errors?

    bash: ./msfconsole: No such file or directory, I am getting this error in BT Kde 32 bit after the recent upgrade. Also ,there is no framework 3 directory under root@bt:/pentest/exploits# ls
    exploitdb fasttrack framework framework2 sapyto set spamhole

    framework is in red and none of metasploit stuff works including armitage.

    when i do locate , this is what i get : root@bt:/pentest/exploits# locate framework3
    /opt/framework3
    /pentest/exploits/framework3
    /usr/share/applications/backtrack-framework3-armitage.desktop
    /usr/share/applications/backtrack-framework3-msfcli.desktop
    /usr/share/applications/backtrack-framework3-msfconsole.desktop
    /usr/share/applications/backtrack-framework3-msfencode.desktop
    /usr/share/applications/backtrack-framework3-msfpayload.desktop
    /usr/share/applications/backtrack-framework3-msfupdate.desktop
    /var/lib/dpkg/info/framework3.changelog
    /var/lib/dpkg/info/framework3.copyright
    /var/lib/dpkg/info/framework3.list
    /var/lib/dpkg/info/framework3.postinst
    /var/lib/dpkg/info/framework3.preinst

    Please suggest a solution ....

  7. #7
    Administrator sickness's Avatar
    Join Date
    Jan 2010
    Location
    Behind the screen.
    Posts
    2,921

    Default Re: metasploit ruby errors?

    There no longer is a framework3 directory, the latest metasploit is in the framework directory:
    Code:
    cd /pentest/exploits/framework/ && ./msfconsole
    Back|track giving machine guns to monkeys since 2007 !

    Do not read the Wiki, most your questions will not be answered there !
    Do not take a look at the: Forum Rules !

  8. #8
    Good friend of the forums espreto's Avatar
    Join Date
    Mar 2010
    Location
    Brazil
    Posts
    303

    Default Re: metasploit ruby errors?

    bash: ./msfconsole: No such file or directory, I am getting this error in BT Kde 32 bit after the recent upgrade. Also ,there is no framework 3 directory under root@bt:/pentest/exploits# ls
    exploitdb fasttrack framework framework2 sapyto set spamhole
    There is no directory "framework3" but "framework", see above in red.
    Do not specify "./" the msfconsole is included in the path. Just the command "msfconsole" and voì la.

    Regards,
    (gdb) disass m(y_br)ain

    ®

  9. #9
    Just burned his ISO
    Join Date
    Oct 2011
    Posts
    2

    Unhappy Re: metasploit ruby errors?

    well , i am doing exactly the same as you have mentioned but still i am getting the same error:


    root@bt:~# cd /pentest/exploits
    root@bt:/pentest/exploits# ls
    exploitdb fasttrack framework framework2 sapyto set spamhole
    root@bt:/pentest/exploits# cd framework
    bash: cd: framework: No such file or directory
    root@bt:/pentest/exploits# msfconsole
    msfconsole: command not found
    root@bt:/pentest/exploits# cd framework
    bash: cd: framework: No such file or directory
    root@bt:/pentest/exploits#

    also , msfconsole doesn't launch from backtrack menu including msfupdate.
    Neither , armitage is launching .

    please help ...

Similar Threads

  1. Ruby Gems Error after Metasploit Update
    By blakhal0 in forum BackTrack Bugs
    Replies: 7
    Last Post: 01-19-2011, 03:21 AM
  2. Problem with Metasploit Ruby Language
    By centaurios in forum Beginners Forum
    Replies: 1
    Last Post: 10-08-2010, 10:49 AM
  3. Screwed up metasploit / ruby
    By hawaii67 in forum OLD Programming
    Replies: 10
    Last Post: 09-05-2008, 11:27 AM
  4. Metasploit Auto-Exploitation (ruby postgres plugin)
    By tothakosh in forum OLD Newbie Area
    Replies: 1
    Last Post: 10-15-2007, 03:45 PM
  5. Metasploit Exploits written in C it needs Ruby
    By andy1 in forum OLD Newbie Area
    Replies: 7
    Last Post: 04-08-2007, 11:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •