1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-11-05 14:57:30 +01:00

bugs bugs, messing with win32

git-svn-id: file:///home/svn/incoming/trunk@3016 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
Matt Miller 2005-11-04 00:55:46 +00:00
parent a02d21bb57
commit dc33921b98
3 changed files with 26 additions and 2 deletions

View File

@ -7,3 +7,12 @@ meterpreter
msfconsole
- jobs -k on the same exploit twice leads to exception
win32 bugs
- 'gets' blocks
- http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/151367
- works in cmd.exe
- does not work in rxvt (kbhit just keeps returning 0)
X - no HOME variable by default -- need to use another directory

View File

@ -15,13 +15,24 @@ class Config < Hash
#
InstallRoot = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', '..'))
#
# Determines the base configuration directory.
#
def self.get_config_root
begin
File.expand_path("~#{FileSep}.msf3")
rescue ArgumentError
InstallRoot + ".msf3"
end
end
#
# Default values
#
FileSep = File::SEPARATOR
Defaults =
{
'ConfigDirectory' => File.expand_path("~#{FileSep}.msf3"),
'ConfigDirectory' => get_config_root,
'ConfigFile' => "config",
'ModuleDirectory' => "modules",
'LogDirectory' => "logs",

View File

@ -171,7 +171,11 @@ module Shell
# console
#
def supports_color?
return (ENV['TERM'].match(/(?:vt10[03]|xterm(?:-color)?|linux|screen)/i) != nil)
begin
(ENV['TERM'].match(/(?:vt10[03]|xterm(?:-color)?|linux|screen)/i) != nil)
rescue
false
end
end
#