[framework] Memory leaks in msf3
nnp
version5 at gmail.com
Tue Nov 28 13:56:53 CST 2006
Hey,
When running msf3 using db_nmap or db_autopwn with large inputs has
anyone else gotten out of memory errors? I don't know ruby so I have
no idea what the story with garbage collection and memory leaks is but
here is the error.
msf > db_create newDB
[-] Error while running command db_create: Cannot allocate memory
Call stack:
/home/meta/framework3/plugins/db_postgres.rb:114:in `system'
/home/meta/framework3/plugins/db_postgres.rb:114:in `cmd_db_create'
./lib/rex/ui/text/dispatcher_shell.rb:229:in `send'
./lib/rex/ui/text/dispatcher_shell.rb:229:in `run_command'
./lib/rex/ui/text/dispatcher_shell.rb:196:in `run_single'
./lib/rex/ui/text/dispatcher_shell.rb:191:in `each'
./lib/rex/ui/text/dispatcher_shell.rb:191:in `run_single'
./lib/rex/ui/text/shell.rb:118:in `run'
./msfconsole:63
That is after running db_autopwn with about 1500 exploits (that seems
to be about the limit for me with 512MB of memory)
Here is the output of free at the same time
free at metasploit:~/temp$ free -m
total used free shared buffers cached
Mem: 504 475 28 0 7 12
-/+ buffers/cache: 456 48
Swap: 133 62 70
As I said, I don't know ruby so I can't tell if this is a msf3 problem
or a ruby one. I am using ruby 1.8.5 by the way.
Thanks,
NNP
--
http://silenthack.co.uk
More information about the framework
mailing list