Skip to content

Commit

Permalink
/usr/bin/ruby vs /usr/bin/env ruby
Browse files Browse the repository at this point in the history
git-svn-id: file:///home/svn/incoming/trunk@3242 4d416f70-5f16-0410-b530-b9f4589650da
  • Loading branch information
HD Moore committed Dec 17, 2005
1 parent e434262 commit 8865806
Show file tree
Hide file tree
Showing 203 changed files with 203 additions and 203 deletions.
2 changes: 1 addition & 1 deletion dev/machinetest/machinetest.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby #!/usr/bin/env ruby


require 'machinetestinternal' require 'machinetestinternal'


Expand Down
2 changes: 1 addition & 1 deletion dev/meterpreter/DemoClient.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby -I../../lib #!/usr/bin/env ruby -I../../lib


require 'Rex/Post' require 'Rex/Post'


Expand Down
2 changes: 1 addition & 1 deletion dev/meterpreter/demo_migrate.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby -I. -I../../lib #!/usr/bin/env ruby -I. -I../../lib


require 'DemoClient' require 'DemoClient'


Expand Down
2 changes: 1 addition & 1 deletion dev/meterpreter/demo_mirror_dir.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby -I. -I../../lib #!/usr/bin/env ruby -I. -I../../lib


require 'DemoClient' require 'DemoClient'


Expand Down
2 changes: 1 addition & 1 deletion dev/meterpreter/demo_mirror_dir2.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby -I. -I../../lib #!/usr/bin/env ruby -I. -I../../lib


require 'DemoClient' require 'DemoClient'


Expand Down
2 changes: 1 addition & 1 deletion dev/meterpreter/demo_site.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby -I. -I../../lib #!/usr/bin/env ruby -I. -I../../lib


require 'DemoClient' require 'DemoClient'


Expand Down
2 changes: 1 addition & 1 deletion dev/meterpreter/demo_socket.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby -I. -I../../lib #!/usr/bin/env ruby -I. -I../../lib


require 'DemoClient' require 'DemoClient'
require 'Rex/Socket/Parameters' require 'Rex/Socket/Parameters'
Expand Down
2 changes: 1 addition & 1 deletion dev/meterpreter/metcli.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby -I../../lib #!/usr/bin/env ruby -I../../lib


require 'Rex/Post' require 'Rex/Post'


Expand Down
2 changes: 1 addition & 1 deletion dev/meterpreter/mrp.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby #!/usr/bin/env ruby


$: << 'lib' << '../lib' << '../../lib' $: << 'lib' << '../lib' << '../../lib'


Expand Down
2 changes: 1 addition & 1 deletion documentation/samples/framework/dump_module_info.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby #!/usr/bin/env ruby
# #
# This sample demonstrates how a module's information can be easily serialized # This sample demonstrates how a module's information can be easily serialized
# to a readable format. # to a readable format.
Expand Down
2 changes: 1 addition & 1 deletion documentation/samples/framework/encode_file.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby #!/usr/bin/env ruby
# #
# This sample demonstrates how a file can be encoded using a framework # This sample demonstrates how a file can be encoded using a framework
# encoder. # encoder.
Expand Down
2 changes: 1 addition & 1 deletion documentation/samples/framework/enumerate_modules.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby #!/usr/bin/env ruby
# #
# This sample demonstrates enumerating all of the modules in the framework and # This sample demonstrates enumerating all of the modules in the framework and
# displays their module type and reference name. # displays their module type and reference name.
Expand Down
2 changes: 1 addition & 1 deletion documentation/samples/framework/run_exploit_using_base.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby #!/usr/bin/env ruby
# #
# This sample demonstrates using the framework core directly to launch an # This sample demonstrates using the framework core directly to launch an
# exploit. It makes use of the simplified exploit wrapper method provided by # exploit. It makes use of the simplified exploit wrapper method provided by
Expand Down
2 changes: 1 addition & 1 deletion documentation/samples/framework/run_exploit_using_core.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby #!/usr/bin/env ruby
# #
# This sample demonstrates using the framework core directly to launch an # This sample demonstrates using the framework core directly to launch an
# exploit. It uses the framework base Framework class so that the # exploit. It uses the framework base Framework class so that the
Expand Down
2 changes: 1 addition & 1 deletion lib/msf/base.rb.ts.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby #!/usr/bin/env ruby


require 'test/unit' require 'test/unit'
require 'msf/base' require 'msf/base'
Expand Down
2 changes: 1 addition & 1 deletion lib/msf/base/sessions/command_shell.rb.ut.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby #!/usr/bin/env ruby


require 'test/unit' require 'test/unit'
require 'msf/base' require 'msf/base'
Expand Down
2 changes: 1 addition & 1 deletion lib/msf/core.rb.ts.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby #!/usr/bin/env ruby


require 'test/unit' require 'test/unit'
require 'msf/core' require 'msf/core'
Expand Down
2 changes: 1 addition & 1 deletion lib/msf/core/exceptions.rb.ut.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby #!/usr/bin/env ruby


$:.unshift(File.join(File.dirname(__FILE__), '..', '..')) $:.unshift(File.join(File.dirname(__FILE__), '..', '..'))


Expand Down
2 changes: 1 addition & 1 deletion lib/msf/core/exploit.rb.ut.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby #!/usr/bin/env ruby


$:.unshift(File.join(File.dirname(__FILE__), '..', '..')) $:.unshift(File.join(File.dirname(__FILE__), '..', '..'))


Expand Down
2 changes: 1 addition & 1 deletion lib/msf/core/exploit/dcerpc.rb.ut.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby #!/usr/bin/env ruby


$:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..', '..')) $:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..', '..'))


Expand Down
2 changes: 1 addition & 1 deletion lib/msf/core/exploit/seh.rb.ut.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby #!/usr/bin/env ruby


$:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..')) $:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..'))


Expand Down
2 changes: 1 addition & 1 deletion lib/msf/core/exploit/tcp.rb.ut.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby #!/usr/bin/env ruby


$:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..', '..')) $:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..', '..'))


Expand Down
2 changes: 1 addition & 1 deletion lib/msf/core/handler/bind_tcp.rb.ut.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby #!/usr/bin/env ruby


$:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..')) $:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..'))


Expand Down
2 changes: 1 addition & 1 deletion lib/msf/core/handler/reverse_tcp.rb.ut.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby #!/usr/bin/env ruby


$:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..')) $:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..'))


Expand Down
2 changes: 1 addition & 1 deletion lib/msf/core/module/author.rb.ut.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby #!/usr/bin/env ruby


$:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..')) $:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..'))


Expand Down
2 changes: 1 addition & 1 deletion lib/msf/core/module/platform_list.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby #!/usr/bin/env ruby


# #
# This is a helper to a easy way to specify support platforms. It will take a # This is a helper to a easy way to specify support platforms. It will take a
Expand Down
2 changes: 1 addition & 1 deletion lib/msf/core/module/platform_list.rb.ut.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby #!/usr/bin/env ruby


$:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..')) $:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..'))


Expand Down
2 changes: 1 addition & 1 deletion lib/msf/core/module/reference.rb.ut.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby #!/usr/bin/env ruby


$:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..')) $:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..'))


Expand Down
2 changes: 1 addition & 1 deletion lib/msf/core/module/target.rb.ut.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby #!/usr/bin/env ruby


$:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..')) $:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..'))


Expand Down
2 changes: 1 addition & 1 deletion lib/msf/core/option_container.rb.ut.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby #!/usr/bin/env ruby


$:.unshift(File.join(File.dirname(__FILE__), '..', '..')) $:.unshift(File.join(File.dirname(__FILE__), '..', '..'))


Expand Down
2 changes: 1 addition & 1 deletion lib/msf/core/recon/attribute/group.rb.ut.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby #!/usr/bin/env ruby


$:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..', '..')) $:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..', '..'))


Expand Down
2 changes: 1 addition & 1 deletion lib/msf/core/recon/entity.rb.ut.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby #!/usr/bin/env ruby


$:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..')) $:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..'))


Expand Down
2 changes: 1 addition & 1 deletion lib/msf/core/recon/entity/host.rb.ut.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby #!/usr/bin/env ruby


$:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..', '..')) $:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..', '..'))


Expand Down
2 changes: 1 addition & 1 deletion lib/msf/core/recon/event_context.rb.ut.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby #!/usr/bin/env ruby


$:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..')) $:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..'))


Expand Down
2 changes: 1 addition & 1 deletion lib/msf/core/session_manager.rb.ut.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby #!/usr/bin/env ruby


$:.unshift(File.join(File.dirname(__FILE__), '..', '..')) $:.unshift(File.join(File.dirname(__FILE__), '..', '..'))


Expand Down
2 changes: 1 addition & 1 deletion lib/rex.rb.ts.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby -I.. #!/usr/bin/env ruby -I..


require 'test/unit' require 'test/unit'


Expand Down
2 changes: 1 addition & 1 deletion lib/rex/arch/sparc.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby #!/usr/bin/env ruby


module Rex module Rex
module Arch module Arch
Expand Down
2 changes: 1 addition & 1 deletion lib/rex/arch/sparc.rb.ut.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby #!/usr/bin/env ruby


$:.unshift(File.join(File.dirname(__FILE__), '..', '..')) $:.unshift(File.join(File.dirname(__FILE__), '..', '..'))


Expand Down
2 changes: 1 addition & 1 deletion lib/rex/arch/x86.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby #!/usr/bin/env ruby


module Rex module Rex
module Arch module Arch
Expand Down
2 changes: 1 addition & 1 deletion lib/rex/arch/x86.rb.ut.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby #!/usr/bin/env ruby


$:.unshift(File.join(File.dirname(__FILE__), '..', '..')) $:.unshift(File.join(File.dirname(__FILE__), '..', '..'))


Expand Down
2 changes: 1 addition & 1 deletion lib/rex/assembly/nasm.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby #!/usr/bin/env ruby


require 'tempfile' require 'tempfile'
require 'rex/file' require 'rex/file'
Expand Down
2 changes: 1 addition & 1 deletion lib/rex/assembly/nasm.rb.ut.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby #!/usr/bin/env ruby


$:.unshift(File.join(File.dirname(__FILE__), '..', '..')) $:.unshift(File.join(File.dirname(__FILE__), '..', '..'))


Expand Down
2 changes: 1 addition & 1 deletion lib/rex/encoder/xor.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby #!/usr/bin/env ruby


module Rex module Rex
module Encoder module Encoder
Expand Down
2 changes: 1 addition & 1 deletion lib/rex/encoder/xor/dword.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby #!/usr/bin/env ruby


require 'rex/encoder/xor' require 'rex/encoder/xor'
require 'rex/encoding/xor/dword' require 'rex/encoding/xor/dword'
Expand Down
2 changes: 1 addition & 1 deletion lib/rex/encoder/xor/dword_additive.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby #!/usr/bin/env ruby


require 'rex/encoder/xor' require 'rex/encoder/xor'
require 'rex/encoding/xor/dword_additive' require 'rex/encoding/xor/dword_additive'
Expand Down
2 changes: 1 addition & 1 deletion lib/rex/encoders/xor_dword.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby #!/usr/bin/env ruby


require 'rex/arch/x86' require 'rex/arch/x86'
require 'rex/encoder/xor/dword' require 'rex/encoder/xor/dword'
Expand Down
2 changes: 1 addition & 1 deletion lib/rex/encoders/xor_dword.rb.ut.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby #!/usr/bin/env ruby


$:.unshift(File.join(File.dirname(__FILE__), '..', '..')) $:.unshift(File.join(File.dirname(__FILE__), '..', '..'))
$:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..', 'dev', 'machinetest')) $:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..', 'dev', 'machinetest'))
Expand Down
2 changes: 1 addition & 1 deletion lib/rex/encoders/xor_dword_additive.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby #!/usr/bin/env ruby


require 'rex/encoder/xor/dword_additive' require 'rex/encoder/xor/dword_additive'


Expand Down
2 changes: 1 addition & 1 deletion lib/rex/encoders/xor_dword_additive.rb.ut.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby #!/usr/bin/env ruby


$:.unshift(File.join(File.dirname(__FILE__), '..', '..')) $:.unshift(File.join(File.dirname(__FILE__), '..', '..'))
$:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..', 'dev', 'machinetest')) $:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..', 'dev', 'machinetest'))
Expand Down
2 changes: 1 addition & 1 deletion lib/rex/encoding/xor.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby #!/usr/bin/env ruby


# #
# make sure the namespace is created # make sure the namespace is created
Expand Down
2 changes: 1 addition & 1 deletion lib/rex/encoding/xor.rb.ts.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby #!/usr/bin/env ruby


$:.unshift(File.join(File.dirname(__FILE__), '..', '..')) $:.unshift(File.join(File.dirname(__FILE__), '..', '..'))


Expand Down
2 changes: 1 addition & 1 deletion lib/rex/encoding/xor/byte.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby #!/usr/bin/env ruby


require 'rex/encoding/xor/generic' require 'rex/encoding/xor/generic'


Expand Down
2 changes: 1 addition & 1 deletion lib/rex/encoding/xor/byte.rb.ut.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby #!/usr/bin/env ruby


$:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..')) $:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..'))


Expand Down
2 changes: 1 addition & 1 deletion lib/rex/encoding/xor/dword.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby #!/usr/bin/env ruby


require 'rex/encoding/xor/generic' require 'rex/encoding/xor/generic'


Expand Down
2 changes: 1 addition & 1 deletion lib/rex/encoding/xor/dword.rb.ut.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby #!/usr/bin/env ruby


$:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..')) $:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..'))


Expand Down
2 changes: 1 addition & 1 deletion lib/rex/encoding/xor/dword_additive.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby #!/usr/bin/env ruby


require 'rex/encoding/xor/exceptions' require 'rex/encoding/xor/exceptions'
require 'rex/encoding/xor/generic' require 'rex/encoding/xor/generic'
Expand Down
2 changes: 1 addition & 1 deletion lib/rex/encoding/xor/dword_additive.rb.ut.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby #!/usr/bin/env ruby


$:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..')) $:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..'))


Expand Down
2 changes: 1 addition & 1 deletion lib/rex/encoding/xor/exceptions.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby #!/usr/bin/env ruby


module Rex module Rex
module Encoding module Encoding
Expand Down
2 changes: 1 addition & 1 deletion lib/rex/encoding/xor/generic.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby #!/usr/bin/env ruby


require 'rex/encoding/xor/exceptions' require 'rex/encoding/xor/exceptions'
require 'rex/text' require 'rex/text'
Expand Down
2 changes: 1 addition & 1 deletion lib/rex/encoding/xor/generic.rb.ut.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby #!/usr/bin/env ruby


$:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..')) $:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..'))


Expand Down
2 changes: 1 addition & 1 deletion lib/rex/encoding/xor/word.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby #!/usr/bin/env ruby


require 'rex/encoding/xor/generic' require 'rex/encoding/xor/generic'


Expand Down
2 changes: 1 addition & 1 deletion lib/rex/encoding/xor/word.rb.ut.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby #!/usr/bin/env ruby


$:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..')) $:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..'))


Expand Down
2 changes: 1 addition & 1 deletion lib/rex/evasion.rb.ut.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby #!/usr/bin/env ruby


$:.unshift(File.join(File.dirname(__FILE__), '..')) $:.unshift(File.join(File.dirname(__FILE__), '..'))


Expand Down
2 changes: 1 addition & 1 deletion lib/rex/exceptions.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby #!/usr/bin/env ruby


module Rex module Rex


Expand Down
2 changes: 1 addition & 1 deletion lib/rex/exceptions.rb.ut.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby #!/usr/bin/env ruby


$:.unshift(File.join(File.dirname(__FILE__), '..')) $:.unshift(File.join(File.dirname(__FILE__), '..'))


Expand Down
2 changes: 1 addition & 1 deletion lib/rex/exploitation/egghunter.rb.ut.rb
@@ -1,4 +1,4 @@
#!/usr/bin/ruby #!/usr/bin/env ruby


$:.unshift(File.join(File.dirname(__FILE__), '..', '..')) $:.unshift(File.join(File.dirname(__FILE__), '..', '..'))


Expand Down

0 comments on commit 8865806

Please sign in to comment.