Symlink-friendly msf interfaces

git-svn-id: file:///home/svn/framework3/trunk@3795 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2006-07-31 15:36:08 +00:00
parent a2c0c8fb7c
commit ce52979566
10 changed files with 22 additions and 10 deletions

3
msfcli
View File

@ -5,7 +5,8 @@
# or web-based interface.
#
$:.unshift(File.join(File.dirname(__FILE__), 'lib'))
msfbase = File.symlink?(__FILE__) ? File.readlink(__FILE__) : __FILE__
$:.unshift(File.join(File.dirname(msfbase), 'lib'))
require 'rex'
require 'msf/ui'

View File

@ -4,7 +4,8 @@
# framework.
#
$:.unshift(File.join(File.dirname(__FILE__), 'lib'))
msfbase = File.symlink?(__FILE__) ? File.readlink(__FILE__) : __FILE__
$:.unshift(File.join(File.dirname(msfbase), 'lib'))
require 'rex'
require 'msf/ui'

3
msfd
View File

@ -6,7 +6,8 @@
# possible for sessions to to be shared from a single vantage point.
#
$:.unshift(File.join(File.dirname(__FILE__), 'lib'))
msfbase = File.symlink?(__FILE__) ? File.readlink(__FILE__) : __FILE__
$:.unshift(File.join(File.dirname(msfbase), 'lib'))
require 'msf/base'
require 'msf/ui'

View File

@ -1,6 +1,7 @@
#!/usr/bin/env ruby
$:.unshift(File.join(File.dirname(__FILE__), 'lib'))
msfbase = File.symlink?(__FILE__) ? File.readlink(__FILE__) : __FILE__
$:.unshift(File.join(File.dirname(msfbase), 'lib'))
require 'rex'
require 'msf/ui'

View File

@ -3,7 +3,8 @@
# This script lists each module by its licensing terms
#
$:.unshift(File.join(File.dirname(__FILE__), 'lib'))
msfbase = File.symlink?(__FILE__) ? File.readlink(__FILE__) : __FILE__
$:.unshift(File.join(File.dirname(msfbase), 'lib'))
require 'rex'
require 'msf/ui'

View File

@ -5,7 +5,8 @@
# and to display information about modules.
#
$:.unshift(File.join(File.dirname(__FILE__), 'lib'))
msfbase = File.symlink?(__FILE__) ? File.readlink(__FILE__) : __FILE__
$:.unshift(File.join(File.dirname(msfbase), 'lib'))
require 'rex'
require 'rex/ui'

View File

@ -1,6 +1,7 @@
#!/usr/bin/env ruby
$:.unshift(File.join(File.dirname(__FILE__), 'lib'))
msfbase = File.symlink?(__FILE__) ? File.readlink(__FILE__) : __FILE__
$:.unshift(File.join(File.dirname(msfbase), 'lib'))
require 'rex'
require 'msf/ui'

View File

@ -1,6 +1,7 @@
#!/usr/bin/env ruby
$:.unshift(File.join(File.dirname(__FILE__), 'lib'))
msfbase = File.symlink?(__FILE__) ? File.readlink(__FILE__) : __FILE__
$:.unshift(File.join(File.dirname(msfbase), 'lib'))
require 'rex/peparsey'
require 'rex/pescan'

4
msfweb
View File

@ -4,7 +4,9 @@
# framework that can be shared.
#
$:.unshift(File.join(File.dirname(__FILE__), 'lib'))
msfbase = File.symlink?(__FILE__) ? File.readlink(__FILE__) : __FILE__
$:.unshift(File.join(File.dirname(msfbase), 'lib'))
require 'rex'
require 'msf/ui'

4
msfwx
View File

@ -3,7 +3,9 @@
# This is a basic user interface using the Wx GUI library
#
$:.unshift(File.join(File.dirname(__FILE__), 'lib'))
msfbase = File.symlink?(__FILE__) ? File.readlink(__FILE__) : __FILE__
$:.unshift(File.join(File.dirname(msfbase), 'lib'))
require 'rex'
require 'msf/base'