mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-11-05 14:57:30 +01:00
See #478. Handle cygwin better for open url
git-svn-id: file:///home/svn/framework3/trunk@7387 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
parent
948e1ba5e9
commit
1bb29e2835
@ -94,6 +94,11 @@ end
|
||||
|
||||
def self.open_browser(url='http://metasploit.com/')
|
||||
case RUBY_PLATFORM
|
||||
when /cygwin/
|
||||
if(url[0,1] == "/")
|
||||
url = cygwin_to_win32(url)
|
||||
end
|
||||
system("cmd.exe /c start #{url}")
|
||||
when /mswin32/
|
||||
@s32 ||= DL.dlopen("shell32.dll")
|
||||
se = @s32['ShellExecute', 'LPPPPPL']
|
||||
|
Loading…
Reference in New Issue
Block a user