#!/usr/bin/ruby # Ghetto include for lib relative to the msfconsole script $:.unshift(File.join(File.dirname(__FILE__), '../lib')) require 'rex' require 'msf/ui' # TODO: streamline logging f = Rex::Logging::Sinks::Flatfile.new('/tmp/msfcli.log') register_log_source('rex', f) register_log_source('core', f) Msf::Ui::Console::Driver.new.run