Metasploit mailing list archives
Error while running command db_hosts: can't convert String into Integer
From: qnix69 at gmail.com (Qnix)
Date: Tue, 17 Jul 2007 09:00:32 +0300
Man i really dont know what the problem and what happened ...
i just did what i did and everything seems running fine ...
(506)qnix:~/pentest/exploits/framework-3.0> ./msfconsole
__. .__. .__. __.
_____ _____/ |______ ____________ | | ____ |__|/ |_
/ \_/ __ \ __\__ \ / ___/\____ \| | / _ \| \ __\
| Y Y \ ___/| | / __ \_\___ \ | |_> > |_( <_> ) || |
|__|_| /\___ >__| (____ /____ >| __/|____/\____/|__||__|
\/ \/ \/ \/ |__|
=[ msf v3.0
+ -- --=[ 191 exploits - 106 payloads
+ -- --=[ 17 encoders - 5 nops
=[ 36 aux
msf > load db_mysql
[*] Successfully loaded plugin: db_mysql
msf > db_connect root:********@localhost:3306/metasploit
msf > db_
db_add_host db_destroy db_nmap
db_add_port db_disconnect db_services
db_autopwn db_hosts db_vulns
db_connect db_import_nessus_nbe
db_create db_import_nmap_xml
msf > db_hosts
[*] Host: 127.0.0.1
msf > db_services
[*] Service: host=127.0.0.1 port=22 proto=tcp state=up name=ssh
[*] Service: host=127.0.0.1 port=80 proto=tcp state=up name=http
[*] Service: host=127.0.0.1 port=3306 proto=tcp state=up name=mysql
/usr/local/lib/ruby/gems/1.8/gems>
actionmailer-1.3.2 activerecord-1.15.2 mysql-2.7.3-mswin32
actionmailer-1.3.3 activerecord-1.15.3 rails-1.2.2
actionpack-1.13.2 activesupport-1.4.1 rails-1.2.3
actionpack-1.13.3 activesupport-1.4.2 rake-0.7.3
actionwebservice-1.2.2 mysql-2.6 sources-0.0.1
actionwebservice-1.2.3 mysql-2.7
wxruby2-preview-0.0.40-i686-linux
as you can see i have both activerecord-1.15.2 activerecord-1.15.3 but im
using activerecord-1.15.2 ...
these are some other information that might be useful
gem 0.9.3
activerecord-1.15.2
mysql-2.7
my operation system is : ubuntu feisty
kernel: 2.6.2-16-generic
ruby version : 1.8.6
On 7/16/07, axn jxn <axnjxnind at gmail.com> wrote:
Were there any other actions that you performed in addition to removing and reinstalling activerecord? I tried this solution before I read your email and again after in addition to uninstalling and reinstalling ruby gems and was unable to get it to work. I have only been able to find these two posts concerning activerecord and the "can't convert String into Integer" error message: http://dev.rubyonrails.org/ticket/3272 http://dev.rubyonrails.org/ticket/4378 On 7/16/07, Qnix <qnix69 at gmail.com> wrote:I have fixed the problem and i dont really know how i did ??? i just removed the 1.15.3 version of activerecord and i used 1.15.2 andigot the same error then i removed activerecord 1.15.2 and upgrade it to 1.15.3 and done ..idont get the error anymore :S dunno what happened and dunno how it happened On 7/16/07, Qnix <qnix69 at gmail.com> wrote:i get the same problem with both activerecord 1.15.3 and 1.15.2 [-] Error while running command db_services: can't convert String intoIntegerCall stack: /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.2/lib/active_record/connection_adapters/mysql_adapter.rb:389:in `real_connect'................etc On 7/16/07, H D Moore < hdm at metasploit.com> wrote:Still does not reproduce with 1.15.3 (using postgres).
-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.metasploit.com/pipermail/framework/attachments/20070717/bd9d2f70/attachment.htm>
Current thread:
- Error while running command db_hosts: can't convert String into Integer axn jxn (Jul 11)
- Error while running command db_hosts: can't convert String into Integer Qnix (Jul 11)
- Error while running command db_hosts: can't convert String into Integer axn jxn (Jul 12)
- Error while running command db_hosts: can't convert String into Integer H D Moore (Jul 15)
- Error while running command db_hosts: can't convert String into Integer H D Moore (Jul 15)
- Error while running command db_hosts: can't convert String into Integer Qnix (Jul 15)
- Error while running command db_hosts: can't convert String into Integer Qnix (Jul 15)
- Error while running command db_hosts: can't convert String into Integer axn jxn (Jul 16)
- Error while running command db_hosts: can't convert String into Integer Qnix (Jul 16)
- Error while running command db_hosts: can't convert String into Integer axn jxn (Jul 12)
- Error while running command db_hosts: can't convert String into Integer Qnix (Jul 11)
- <Possible follow-ups>
- Error while running command db_hosts: can't convert String into Integer Qnix (Jul 15)
- Error while running command db_hosts: can't convert String into Integer H D Moore (Jul 15)
- Re: Error while running command db_hosts: can't convert String into Integer H D Moore (Jul 17)
