Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

/usr/bin/ruby vs /usr/bin/env ruby

git-svn-id: file:///home/svn/incoming/trunk@3242 4d416f70-5f16-0410-b530-b9f4589650da
  • Loading branch information...
commit 88658064dfc844ccb6ddd92ecdbef503b60ce41e 1 parent e434262
@hmoore-r7 hmoore-r7 authored
Showing with 203 additions and 203 deletions.
  1. +1 −1  dev/machinetest/machinetest.rb
  2. +1 −1  dev/meterpreter/DemoClient.rb
  3. +1 −1  dev/meterpreter/demo_migrate.rb
  4. +1 −1  dev/meterpreter/demo_mirror_dir.rb
  5. +1 −1  dev/meterpreter/demo_mirror_dir2.rb
  6. +1 −1  dev/meterpreter/demo_site.rb
  7. +1 −1  dev/meterpreter/demo_socket.rb
  8. +1 −1  dev/meterpreter/metcli.rb
  9. +1 −1  dev/meterpreter/mrp.rb
  10. +1 −1  documentation/samples/framework/dump_module_info.rb
  11. +1 −1  documentation/samples/framework/encode_file.rb
  12. +1 −1  documentation/samples/framework/enumerate_modules.rb
  13. +1 −1  documentation/samples/framework/run_exploit_using_base.rb
  14. +1 −1  documentation/samples/framework/run_exploit_using_core.rb
  15. +1 −1  lib/msf/base.rb.ts.rb
  16. +1 −1  lib/msf/base/sessions/command_shell.rb.ut.rb
  17. +1 −1  lib/msf/core.rb.ts.rb
  18. +1 −1  lib/msf/core/exceptions.rb.ut.rb
  19. +1 −1  lib/msf/core/exploit.rb.ut.rb
  20. +1 −1  lib/msf/core/exploit/dcerpc.rb.ut.rb
  21. +1 −1  lib/msf/core/exploit/seh.rb.ut.rb
  22. +1 −1  lib/msf/core/exploit/tcp.rb.ut.rb
  23. +1 −1  lib/msf/core/handler/bind_tcp.rb.ut.rb
  24. +1 −1  lib/msf/core/handler/reverse_tcp.rb.ut.rb
  25. +1 −1  lib/msf/core/module/author.rb.ut.rb
  26. +1 −1  lib/msf/core/module/platform_list.rb
  27. +1 −1  lib/msf/core/module/platform_list.rb.ut.rb
  28. +1 −1  lib/msf/core/module/reference.rb.ut.rb
  29. +1 −1  lib/msf/core/module/target.rb.ut.rb
  30. +1 −1  lib/msf/core/option_container.rb.ut.rb
  31. +1 −1  lib/msf/core/recon/attribute/group.rb.ut.rb
  32. +1 −1  lib/msf/core/recon/entity.rb.ut.rb
  33. +1 −1  lib/msf/core/recon/entity/host.rb.ut.rb
  34. +1 −1  lib/msf/core/recon/event_context.rb.ut.rb
  35. +1 −1  lib/msf/core/session_manager.rb.ut.rb
  36. +1 −1  lib/rex.rb.ts.rb
  37. +1 −1  lib/rex/arch/sparc.rb
  38. +1 −1  lib/rex/arch/sparc.rb.ut.rb
  39. +1 −1  lib/rex/arch/x86.rb
  40. +1 −1  lib/rex/arch/x86.rb.ut.rb
  41. +1 −1  lib/rex/assembly/nasm.rb
  42. +1 −1  lib/rex/assembly/nasm.rb.ut.rb
  43. +1 −1  lib/rex/encoder/xor.rb
  44. +1 −1  lib/rex/encoder/xor/dword.rb
  45. +1 −1  lib/rex/encoder/xor/dword_additive.rb
  46. +1 −1  lib/rex/encoders/xor_dword.rb
  47. +1 −1  lib/rex/encoders/xor_dword.rb.ut.rb
  48. +1 −1  lib/rex/encoders/xor_dword_additive.rb
  49. +1 −1  lib/rex/encoders/xor_dword_additive.rb.ut.rb
  50. +1 −1  lib/rex/encoding/xor.rb
  51. +1 −1  lib/rex/encoding/xor.rb.ts.rb
  52. +1 −1  lib/rex/encoding/xor/byte.rb
  53. +1 −1  lib/rex/encoding/xor/byte.rb.ut.rb
  54. +1 −1  lib/rex/encoding/xor/dword.rb
  55. +1 −1  lib/rex/encoding/xor/dword.rb.ut.rb
  56. +1 −1  lib/rex/encoding/xor/dword_additive.rb
  57. +1 −1  lib/rex/encoding/xor/dword_additive.rb.ut.rb
  58. +1 −1  lib/rex/encoding/xor/exceptions.rb
  59. +1 −1  lib/rex/encoding/xor/generic.rb
  60. +1 −1  lib/rex/encoding/xor/generic.rb.ut.rb
  61. +1 −1  lib/rex/encoding/xor/word.rb
  62. +1 −1  lib/rex/encoding/xor/word.rb.ut.rb
  63. +1 −1  lib/rex/evasion.rb.ut.rb
  64. +1 −1  lib/rex/exceptions.rb
  65. +1 −1  lib/rex/exceptions.rb.ut.rb
  66. +1 −1  lib/rex/exploitation/egghunter.rb.ut.rb
  67. +1 −1  lib/rex/exploitation/opcodedb.rb.ut.rb
  68. +1 −1  lib/rex/exploitation/seh.rb.ut.rb
  69. +1 −1  lib/rex/file.rb.ut.rb
  70. +1 −1  lib/rex/io/datagram_abstraction.rb
  71. +1 −1  lib/rex/io/stream_abstraction.rb
  72. +1 −1  lib/rex/nop/opty2.rb.ut.rb
  73. +1 −1  lib/rex/parser/arguments.rb.ut.rb
  74. +1 −1  lib/rex/parser/ini.rb.ut.rb
  75. +1 −1  lib/rex/post.rb
  76. +1 −1  lib/rex/post/dir.rb
  77. +1 −1  lib/rex/post/dispatch_ninja.rb
  78. +1 −1  lib/rex/post/dispatch_ninja/client.rb
  79. +1 −1  lib/rex/post/dispatch_ninja/dir.rb
  80. +1 −1  lib/rex/post/dispatch_ninja/file.rb
  81. +1 −1  lib/rex/post/dispatch_ninja/file_stat.rb
  82. +1 −1  lib/rex/post/dispatch_ninja/i_o.rb
  83. +1 −1  lib/rex/post/dispatch_ninja/process.rb
  84. +1 −1  lib/rex/post/file.rb
  85. +1 −1  lib/rex/post/file_stat.rb
  86. +1 −1  lib/rex/post/io.rb
  87. +1 −1  lib/rex/post/meterpreter.rb
  88. +1 −1  lib/rex/post/meterpreter/channel.rb
  89. +1 −1  lib/rex/post/meterpreter/channel_container.rb
  90. +1 −1  lib/rex/post/meterpreter/channels/pool.rb
  91. +1 −1  lib/rex/post/meterpreter/channels/pools/file.rb
  92. +1 −1  lib/rex/post/meterpreter/channels/pools/stream_pool.rb
  93. +1 −1  lib/rex/post/meterpreter/channels/stream.rb
  94. +1 −1  lib/rex/post/meterpreter/client.rb
  95. +1 −1  lib/rex/post/meterpreter/client_core.rb
  96. +1 −1  lib/rex/post/meterpreter/dependencies.rb
  97. +1 −1  lib/rex/post/meterpreter/extension.rb
  98. +1 −1  lib/rex/post/meterpreter/extensions/priv/fs.rb
  99. +1 −1  lib/rex/post/meterpreter/extensions/priv/passwd.rb
  100. +1 −1  lib/rex/post/meterpreter/extensions/priv/priv.rb
  101. +1 −1  lib/rex/post/meterpreter/extensions/stdapi/constants.rb
  102. +1 −1  lib/rex/post/meterpreter/extensions/stdapi/fs/dir.rb
  103. +1 −1  lib/rex/post/meterpreter/extensions/stdapi/fs/file.rb
  104. +1 −1  lib/rex/post/meterpreter/extensions/stdapi/fs/file_stat.rb
  105. +1 −1  lib/rex/post/meterpreter/extensions/stdapi/fs/io.rb
  106. +1 −1  lib/rex/post/meterpreter/extensions/stdapi/net/config.rb
  107. +1 −1  lib/rex/post/meterpreter/extensions/stdapi/net/interface.rb
  108. +1 −1  lib/rex/post/meterpreter/extensions/stdapi/net/route.rb
  109. +1 −1  lib/rex/post/meterpreter/extensions/stdapi/net/socket.rb
  110. +1 −1  lib/rex/post/meterpreter/extensions/stdapi/net/socket_subsystem/tcp_client_channel.rb
  111. +1 −1  lib/rex/post/meterpreter/extensions/stdapi/stdapi.rb
  112. +1 −1  lib/rex/post/meterpreter/extensions/stdapi/sys/config.rb
  113. +1 −1  lib/rex/post/meterpreter/extensions/stdapi/sys/event_log.rb
  114. +1 −1  lib/rex/post/meterpreter/extensions/stdapi/sys/event_log_subsystem/event_record.rb
  115. +1 −1  lib/rex/post/meterpreter/extensions/stdapi/sys/power.rb
  116. +1 −1  lib/rex/post/meterpreter/extensions/stdapi/sys/process.rb
  117. +1 −1  lib/rex/post/meterpreter/extensions/stdapi/sys/process_subsystem/image.rb
  118. +1 −1  lib/rex/post/meterpreter/extensions/stdapi/sys/process_subsystem/io.rb
  119. +1 −1  lib/rex/post/meterpreter/extensions/stdapi/sys/process_subsystem/memory.rb
  120. +1 −1  lib/rex/post/meterpreter/extensions/stdapi/sys/process_subsystem/thread.rb
  121. +1 −1  lib/rex/post/meterpreter/extensions/stdapi/sys/registry.rb
  122. +1 −1  lib/rex/post/meterpreter/extensions/stdapi/sys/registry_subsystem/registry_key.rb
  123. +1 −1  lib/rex/post/meterpreter/extensions/stdapi/sys/registry_subsystem/registry_value.rb
  124. +1 −1  lib/rex/post/meterpreter/extensions/stdapi/sys/thread.rb
  125. +1 −1  lib/rex/post/meterpreter/extensions/stdapi/tlv.rb
  126. +1 −1  lib/rex/post/meterpreter/extensions/stdapi/ui.rb
  127. +1 −1  lib/rex/post/meterpreter/inbound_packet_handler.rb
  128. +1 −1  lib/rex/post/meterpreter/object_aliases.rb
  129. +1 −1  lib/rex/post/meterpreter/packet.rb
  130. +1 −1  lib/rex/post/meterpreter/packet_dispatcher.rb
  131. +1 −1  lib/rex/post/meterpreter/packet_parser.rb
  132. +1 −1  lib/rex/post/meterpreter/packet_response_waiter.rb
  133. +1 −1  lib/rex/post/permission.rb
  134. +1 −1  lib/rex/post/process.rb
  135. +1 −1  lib/rex/post/thread.rb
  136. +1 −1  lib/rex/post/ui.rb
  137. +1 −1  lib/rex/proto.rb.ts.rb
  138. +1 −1  lib/rex/proto.ts.rb
  139. +1 −1  lib/rex/proto/dcerpc.rb.ts.rb
  140. +1 −1  lib/rex/proto/dcerpc.ts.rb
  141. +1 −1  lib/rex/proto/dcerpc/client.rb.ut.rb
  142. +1 −1  lib/rex/proto/dcerpc/handle.rb.ut.rb
  143. +1 −1  lib/rex/proto/dcerpc/ndr.rb.ut.rb
  144. +1 −1  lib/rex/proto/dcerpc/packet.rb.ut.rb
  145. +1 −1  lib/rex/proto/dcerpc/response.rb.ut.rb
  146. +1 −1  lib/rex/proto/dcerpc/uuid.rb.ut.rb
  147. +1 −1  lib/rex/proto/http.rb.ts.rb
  148. +1 −1  lib/rex/proto/http.ts.rb
  149. +1 −1  lib/rex/proto/http/client.rb.ut.rb
  150. +1 −1  lib/rex/proto/http/handler/erb.rb.ut.rb
  151. +1 −1  lib/rex/proto/http/handler/proc.rb.ut.rb
  152. +1 −1  lib/rex/proto/http/packet.rb.ut.rb
  153. +1 −1  lib/rex/proto/http/request.rb.ut.rb
  154. +1 −1  lib/rex/proto/http/response.rb.ut.rb
  155. +1 −1  lib/rex/proto/http/server.rb.ut.rb
  156. +1 −1  lib/rex/proto/smb.rb.ts.rb
  157. +1 −1  lib/rex/proto/smb.ts.rb
  158. +1 −1  lib/rex/proto/smb/client.rb.ut.rb
  159. +1 −1  lib/rex/proto/smb/constants.rb.ut.rb
  160. +1 −1  lib/rex/proto/smb/crypt.rb.ut.rb
  161. +1 −1  lib/rex/proto/smb/simpleclient.rb.ut.rb
  162. +1 −1  lib/rex/proto/smb/utils.rb.ut.rb
  163. +1 −1  lib/rex/service_manager.rb.ut.rb
  164. +1 −1  lib/rex/socket.rb.ut.rb
  165. +1 −1  lib/rex/socket/comm/local.rb.ut.rb
  166. +1 −1  lib/rex/socket/parameters.rb.ut.rb
  167. +1 −1  lib/rex/socket/ssl_tcp.rb.ut.rb
  168. +1 −1  lib/rex/socket/subnet_walker.rb.ut.rb
  169. +1 −1  lib/rex/socket/switch_board.rb.ut.rb
  170. +1 −1  lib/rex/socket/tcp.rb.ut.rb
  171. +1 −1  lib/rex/socket/tcp_server.rb.ut.rb
  172. +1 −1  lib/rex/socket/udp.rb.ut.rb
  173. +1 −1  lib/rex/struct2.rb
  174. +1 −1  lib/rex/struct2/c_struct.rb
  175. +1 −1  lib/rex/struct2/c_struct_template.rb
  176. +1 −1  lib/rex/struct2/constant.rb
  177. +1 −1  lib/rex/struct2/element.rb
  178. +1 −1  lib/rex/struct2/generic.rb
  179. +1 −1  lib/rex/struct2/restraint.rb
  180. +1 −1  lib/rex/struct2/s_string.rb
  181. +1 −1  lib/rex/struct2/s_struct.rb
  182. +1 −1  lib/rex/text.rb.ut.rb
  183. +1 −1  lib/rex/transformer.rb.ut.rb
  184. +1 −1  lib/rex/ui/text/color.rb.ut.rb
  185. +1 −1  lib/rex/ui/text/progress_tracker.rb.ut.rb
  186. +1 −1  lib/rex/ui/text/table.rb.ut.rb
  187. +1 −1  modules/encoders/generic/none.rb.ut.rb
  188. +1 −1  modules/encoders/x86/call4_dword_xor.rb.ut.rb
  189. +1 −1  modules/encoders/x86/countdown.rb.ut.rb
  190. +1 −1  modules/encoders/x86/fnstenv_mov.rb.ut.rb
  191. +1 −1  modules/encoders/x86/jmp_call_additive.rb.ut.rb
  192. +1 −1  modules/modules.rb.ts.rb
  193. +1 −1  msfcli
  194. +1 −1  msfconsole
  195. +1 −1  msfd
  196. +1 −1  msfencode
  197. +1 −1  msfopcode
  198. +1 −1  msfpayload
  199. +1 −1  msfweb
  200. +1 −1  plugins/msfd.rb
  201. +1 −1  tools/nasm_shell.rb
  202. +1 −1  tools/pattern_create.rb
  203. +1 −1  tools/pattern_offset.rb
View
2  dev/machinetest/machinetest.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'machinetestinternal'
View
2  dev/meterpreter/DemoClient.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby -I../../lib
+#!/usr/bin/env ruby -I../../lib
require 'Rex/Post'
View
2  dev/meterpreter/demo_migrate.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby -I. -I../../lib
+#!/usr/bin/env ruby -I. -I../../lib
require 'DemoClient'
View
2  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'
View
2  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'
View
2  dev/meterpreter/demo_site.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby -I. -I../../lib
+#!/usr/bin/env ruby -I. -I../../lib
require 'DemoClient'
View
2  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 'Rex/Socket/Parameters'
View
2  dev/meterpreter/metcli.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby -I../../lib
+#!/usr/bin/env ruby -I../../lib
require 'Rex/Post'
View
2  dev/meterpreter/mrp.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
$: << 'lib' << '../lib' << '../../lib'
View
2  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
# to a readable format.
View
2  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
# encoder.
View
2  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
# displays their module type and reference name.
View
2  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
# exploit. It makes use of the simplified exploit wrapper method provided by
View
2  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
# exploit. It uses the framework base Framework class so that the
View
2  lib/msf/base.rb.ts.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'test/unit'
require 'msf/base'
View
2  lib/msf/base/sessions/command_shell.rb.ut.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'test/unit'
require 'msf/base'
View
2  lib/msf/core.rb.ts.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'test/unit'
require 'msf/core'
View
2  lib/msf/core/exceptions.rb.ut.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
$:.unshift(File.join(File.dirname(__FILE__), '..', '..'))
View
2  lib/msf/core/exploit.rb.ut.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
$:.unshift(File.join(File.dirname(__FILE__), '..', '..'))
View
2  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__), '..', '..', '..', '..'))
View
2  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__), '..', '..', '..'))
View
2  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__), '..', '..', '..', '..'))
View
2  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__), '..', '..', '..'))
View
2  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__), '..', '..', '..'))
View
2  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__), '..', '..', '..'))
View
2  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
View
2  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__), '..', '..', '..'))
View
2  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__), '..', '..', '..'))
View
2  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__), '..', '..', '..'))
View
2  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__), '..', '..'))
View
2  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__), '..', '..', '..', '..'))
View
2  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__), '..', '..', '..'))
View
2  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__), '..', '..', '..', '..'))
View
2  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__), '..', '..', '..'))
View
2  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__), '..', '..'))
View
2  lib/rex.rb.ts.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby -I..
+#!/usr/bin/env ruby -I..
require 'test/unit'
View
2  lib/rex/arch/sparc.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
module Rex
module Arch
View
2  lib/rex/arch/sparc.rb.ut.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
$:.unshift(File.join(File.dirname(__FILE__), '..', '..'))
View
2  lib/rex/arch/x86.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
module Rex
module Arch
View
2  lib/rex/arch/x86.rb.ut.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
$:.unshift(File.join(File.dirname(__FILE__), '..', '..'))
View
2  lib/rex/assembly/nasm.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'tempfile'
require 'rex/file'
View
2  lib/rex/assembly/nasm.rb.ut.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
$:.unshift(File.join(File.dirname(__FILE__), '..', '..'))
View
2  lib/rex/encoder/xor.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
module Rex
module Encoder
View
2  lib/rex/encoder/xor/dword.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'rex/encoder/xor'
require 'rex/encoding/xor/dword'
View
2  lib/rex/encoder/xor/dword_additive.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'rex/encoder/xor'
require 'rex/encoding/xor/dword_additive'
View
2  lib/rex/encoders/xor_dword.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'rex/arch/x86'
require 'rex/encoder/xor/dword'
View
2  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__), '..', '..', '..', 'dev', 'machinetest'))
View
2  lib/rex/encoders/xor_dword_additive.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'rex/encoder/xor/dword_additive'
View
2  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__), '..', '..', '..', 'dev', 'machinetest'))
View
2  lib/rex/encoding/xor.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
#
# make sure the namespace is created
View
2  lib/rex/encoding/xor.rb.ts.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
$:.unshift(File.join(File.dirname(__FILE__), '..', '..'))
View
2  lib/rex/encoding/xor/byte.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'rex/encoding/xor/generic'
View
2  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__), '..', '..', '..'))
View
2  lib/rex/encoding/xor/dword.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'rex/encoding/xor/generic'
View
2  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__), '..', '..', '..'))
View
2  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/generic'
View
2  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__), '..', '..', '..'))
View
2  lib/rex/encoding/xor/exceptions.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
module Rex
module Encoding
View
2  lib/rex/encoding/xor/generic.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'rex/encoding/xor/exceptions'
require 'rex/text'
View
2  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__), '..', '..', '..'))
View
2  lib/rex/encoding/xor/word.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'rex/encoding/xor/generic'
View
2  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__), '..', '..', '..'))
View
2  lib/rex/evasion.rb.ut.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
$:.unshift(File.join(File.dirname(__FILE__), '..'))
View
2  lib/rex/exceptions.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
module Rex
View
2  lib/rex/exceptions.rb.ut.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
$:.unshift(File.join(File.dirname(__FILE__), '..'))
View
2  lib/rex/exploitation/egghunter.rb.ut.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
$:.unshift(File.join(File.dirname(__FILE__), '..', '..'))
View
2  lib/rex/exploitation/opcodedb.rb.ut.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
$:.unshift(File.join(File.dirname(__FILE__), '..', '..'))
View
2  lib/rex/exploitation/seh.rb.ut.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
$:.unshift(File.join(File.dirname(__FILE__), '..', '..'))
View
2  lib/rex/file.rb.ut.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
$:.unshift(File.join(File.dirname(__FILE__), '..'))
View
2  lib/rex/io/datagram_abstraction.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'socket'
View
2  lib/rex/io/stream_abstraction.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'socket'
View
2  lib/rex/nop/opty2.rb.ut.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
$:.unshift(File.join(File.dirname(__FILE__), '..', '..'))
View
2  lib/rex/parser/arguments.rb.ut.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
$:.unshift(File.join(File.dirname(__FILE__), '..', '..'))
View
2  lib/rex/parser/ini.rb.ut.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
$:.unshift(File.join(File.dirname(__FILE__), '..', '..'))
View
2  lib/rex/post.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
# General independent containers
require 'rex/post/permission'
View
2  lib/rex/post/dir.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
module Rex
module Post
View
2  lib/rex/post/dispatch_ninja.rb
@@ -1,3 +1,3 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'rex/post/dispatch_ninja/client.rb'
View
2  lib/rex/post/dispatch_ninja/client.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'rex/post/dispatch_ninja/file'
require 'rex/post/dispatch_ninja/file_stat'
View
2  lib/rex/post/dispatch_ninja/dir.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'rex/post/dir'
View
2  lib/rex/post/dispatch_ninja/file.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'rex/post/file'
require 'rex/post/dispatch_ninja/io'
View
2  lib/rex/post/dispatch_ninja/file_stat.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'rex/post/file_stat'
View
2  lib/rex/post/dispatch_ninja/i_o.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'rex/post/io'
View
2  lib/rex/post/dispatch_ninja/process.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'rex/post/process'
View
2  lib/rex/post/file.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'rex/post/io'
View
2  lib/rex/post/file_stat.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
#
# This is just a container class basically, that acts like File::Struct
View
2  lib/rex/post/io.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
module Rex
module Post
View
2  lib/rex/post/meterpreter.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'rex/post/meterpreter/client'
require 'rex/post/meterpreter/ui/console'
View
2  lib/rex/post/meterpreter/channel.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'rex/post/meterpreter/inbound_packet_handler'
View
2  lib/rex/post/meterpreter/channel_container.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
module Rex
module Post
View
2  lib/rex/post/meterpreter/channels/pool.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'rex/post/meterpreter/channel'
View
2  lib/rex/post/meterpreter/channels/pools/file.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'rex/post/meterpreter/channels/pool'
require 'rex/post/meterpreter/extensions/stdapi/tlv'
View
2  lib/rex/post/meterpreter/channels/pools/stream_pool.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'rex/post/meterpreter/channels/pool'
require 'rex/post/meterpreter/extensions/stdapi/tlv'
View
2  lib/rex/post/meterpreter/channels/stream.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'rex/io/stream_abstraction'
require 'rex/post/meterpreter/channel'
View
2  lib/rex/post/meterpreter/client.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'socket'
require 'rex/post/meterpreter/client_core'
View
2  lib/rex/post/meterpreter/client_core.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'rex/post/meterpreter/packet'
require 'rex/post/meterpreter/extension'
View
2  lib/rex/post/meterpreter/dependencies.rb
@@ -1,3 +1,3 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'rex/post/permission'
View
2  lib/rex/post/meterpreter/extension.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
module Rex
module Post
View
2  lib/rex/post/meterpreter/extensions/priv/fs.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
module Rex
module Post
View
2  lib/rex/post/meterpreter/extensions/priv/passwd.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
module Rex
module Post
View
2  lib/rex/post/meterpreter/extensions/priv/priv.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'rex/post/meterpreter/extensions/priv/tlv'
require 'rex/post/meterpreter/extensions/priv/passwd'
View
2  lib/rex/post/meterpreter/extensions/stdapi/constants.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
###
#
View
2  lib/rex/post/meterpreter/extensions/stdapi/fs/dir.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'rex/post/dir'
require 'rex/post/meterpreter/extensions/stdapi/stdapi'
View
2  lib/rex/post/meterpreter/extensions/stdapi/fs/file.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'rex/post/file'
require 'rex/post/meterpreter/channel'
View
2  lib/rex/post/meterpreter/extensions/stdapi/fs/file_stat.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'rex/post/file_stat'
require 'rex/post/meterpreter/extensions/stdapi/stdapi'
View
2  lib/rex/post/meterpreter/extensions/stdapi/fs/io.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'rex/post/io'
View
2  lib/rex/post/meterpreter/extensions/stdapi/net/config.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'rex/post/meterpreter/extensions/stdapi/tlv'
require 'rex/post/meterpreter/extensions/stdapi/net/route'
View
2  lib/rex/post/meterpreter/extensions/stdapi/net/interface.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'ipaddr'
View
2  lib/rex/post/meterpreter/extensions/stdapi/net/route.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'ipaddr'
View
2  lib/rex/post/meterpreter/extensions/stdapi/net/socket.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'thread'
require 'rex/socket/tcp'
View
2  lib/rex/post/meterpreter/extensions/stdapi/net/socket_subsystem/tcp_client_channel.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'rex/post/meterpreter/channels/stream'
require 'rex/post/meterpreter/extensions/stdapi/tlv'
View
2  lib/rex/post/meterpreter/extensions/stdapi/stdapi.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'rex/post/meterpreter/object_aliases'
require 'rex/post/meterpreter/extension'
View
2  lib/rex/post/meterpreter/extensions/stdapi/sys/config.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'rex/post/process'
require 'rex/post/meterpreter/packet'
View
2  lib/rex/post/meterpreter/extensions/stdapi/sys/event_log.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'rex/post/process'
require 'rex/post/meterpreter/packet'
View
2  lib/rex/post/meterpreter/extensions/stdapi/sys/event_log_subsystem/event_record.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
module Rex
module Post
View
2  lib/rex/post/meterpreter/extensions/stdapi/sys/power.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'rex/post/process'
require 'rex/post/meterpreter/packet'
View
2  lib/rex/post/meterpreter/extensions/stdapi/sys/process.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'rex/post/process'
require 'rex/post/meterpreter/packet'
View
2  lib/rex/post/meterpreter/extensions/stdapi/sys/process_subsystem/image.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'rex/post/meterpreter/client'
require 'rex/post/meterpreter/extensions/stdapi/constants'
View
2  lib/rex/post/meterpreter/extensions/stdapi/sys/process_subsystem/io.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'rex/post/meterpreter/client'
require 'rex/post/meterpreter/extensions/stdapi/constants'
View
2  lib/rex/post/meterpreter/extensions/stdapi/sys/process_subsystem/memory.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'rex/post/meterpreter/client'
require 'rex/post/meterpreter/extensions/stdapi/constants'
View
2  lib/rex/post/meterpreter/extensions/stdapi/sys/process_subsystem/thread.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'rex/post/meterpreter/client'
require 'rex/post/meterpreter/extensions/stdapi/constants'
View
2  lib/rex/post/meterpreter/extensions/stdapi/sys/registry.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'rex/post/process'
require 'rex/post/meterpreter/packet'
View
2  lib/rex/post/meterpreter/extensions/stdapi/sys/registry_subsystem/registry_key.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'rex/post/meterpreter/extensions/stdapi/constants'
require 'rex/post/meterpreter/extensions/stdapi/sys/registry'
View
2  lib/rex/post/meterpreter/extensions/stdapi/sys/registry_subsystem/registry_value.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'rex/post/meterpreter/extensions/stdapi/constants'
require 'rex/post/meterpreter/extensions/stdapi/sys/registry'
View
2  lib/rex/post/meterpreter/extensions/stdapi/sys/thread.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'rex/post/thread'
require 'rex/post/meterpreter/client'
View
2  lib/rex/post/meterpreter/extensions/stdapi/tlv.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
module Rex
module Post
View
2  lib/rex/post/meterpreter/extensions/stdapi/ui.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'rex/post/ui'
View
2  lib/rex/post/meterpreter/inbound_packet_handler.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
module Rex
module Post
View
2  lib/rex/post/meterpreter/object_aliases.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
module Rex
module Post
View
2  lib/rex/post/meterpreter/packet.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
module Rex
module Post
View
2  lib/rex/post/meterpreter/packet_dispatcher.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'rex/post/meterpreter/packet_response_waiter'
View
2  lib/rex/post/meterpreter/packet_parser.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
module Rex
module Post
View
2  lib/rex/post/meterpreter/packet_response_waiter.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'timeout'
require 'thread'
View
2  lib/rex/post/permission.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
# Generic page protection flags
PROT_NONE = 0
View
2  lib/rex/post/process.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
module Rex
module Post
View
2  lib/rex/post/thread.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
module Rex
module Post
View
2  lib/rex/post/ui.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
module Rex
module Post
View
2  lib/rex/proto.rb.ts.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
# $:.unshift(File.join(File.dirname(__FILE__), '..'))
View
2  lib/rex/proto.ts.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'test/unit'
require 'rex/proto/smb.ts'
View
2  lib/rex/proto/dcerpc.rb.ts.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'rex/test'
require 'rex/proto/dcerpc/uuid.rb.ut'
View
2  lib/rex/proto/dcerpc.ts.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'test/unit'
require 'rex/proto/dcerpc/uuid.rb.ut'
View
2  lib/rex/proto/dcerpc/client.rb.ut.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
$:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..'))
View
2  lib/rex/proto/dcerpc/handle.rb.ut.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
$:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..'))
View
2  lib/rex/proto/dcerpc/ndr.rb.ut.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
$:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..'))
View
2  lib/rex/proto/dcerpc/packet.rb.ut.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
$:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..'))
View
2  lib/rex/proto/dcerpc/response.rb.ut.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
$:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..'))
View
2  lib/rex/proto/dcerpc/uuid.rb.ut.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
$:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..'))
View
2  lib/rex/proto/http.rb.ts.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'test/unit'
View
2  lib/rex/proto/http.ts.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'test/unit'
View
2  lib/rex/proto/http/client.rb.ut.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
$:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..'))
View
2  lib/rex/proto/http/handler/erb.rb.ut.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
$:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..', '..'))
View
2  lib/rex/proto/http/handler/proc.rb.ut.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
$:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..', '..'))
View
2  lib/rex/proto/http/packet.rb.ut.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
$:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..'))
View
2  lib/rex/proto/http/request.rb.ut.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
$:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..'))
View
2  lib/rex/proto/http/response.rb.ut.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
$:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..'))
View
2  lib/rex/proto/http/server.rb.ut.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
$:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..'))
View
2  lib/rex/proto/smb.rb.ts.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'rex/test'
require 'rex/proto/smb/client.rb.ut.rb'
View
2  lib/rex/proto/smb.ts.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'test/unit'
require 'rex/proto/dcerpc'
View
2  lib/rex/proto/smb/client.rb.ut.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
$:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..'))
View
2  lib/rex/proto/smb/constants.rb.ut.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
$:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..'))
View
2  lib/rex/proto/smb/crypt.rb.ut.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
$:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..'))
View
2  lib/rex/proto/smb/simpleclient.rb.ut.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
$:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..'))
View
2  lib/rex/proto/smb/utils.rb.ut.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
$:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..'))
View
2  lib/rex/service_manager.rb.ut.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
$:.unshift(File.join(File.dirname(__FILE__), '..'))
View
2  lib/rex/socket.rb.ut.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
$:.unshift(File.join(File.dirname(__FILE__), '..'))
View
2  lib/rex/socket/comm/local.rb.ut.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
$:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..'))
View
2  lib/rex/socket/parameters.rb.ut.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
$:.unshift(File.join(File.dirname(__FILE__), '..', '..'))
View
2  lib/rex/socket/ssl_tcp.rb.ut.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
$:.unshift(File.join(File.dirname(__FILE__), '..', '..'))
View
2  lib/rex/socket/subnet_walker.rb.ut.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
$:.unshift(File.join(File.dirname(__FILE__), '..', '..'))
View
2  lib/rex/socket/switch_board.rb.ut.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
$:.unshift(File.join(File.dirname(__FILE__), '..', '..'))
View
2  lib/rex/socket/tcp.rb.ut.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
$:.unshift(File.join(File.dirname(__FILE__), '..', '..'))
View
2  lib/rex/socket/tcp_server.rb.ut.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
$:.unshift(File.join(File.dirname(__FILE__), '..', '..'))
View
2  lib/rex/socket/udp.rb.ut.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
$:.unshift(File.join(File.dirname(__FILE__), '..', '..'))
View
2  lib/rex/struct2.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
# just a shim to load all of the Struct2 libraries
View
2  lib/rex/struct2/c_struct.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
# Rex::Struct2
module Rex
View
2  lib/rex/struct2/c_struct_template.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
# Rex::Struct2
module Rex
View
2  lib/rex/struct2/constant.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
# Rex::Struct2
module Rex
View
2  lib/rex/struct2/element.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
# Rex::Struct2
module Rex
View
2  lib/rex/struct2/generic.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
# Rex::Struct2
module Rex
View
2  lib/rex/struct2/restraint.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
# Rex::Struct2
module Rex
View
2  lib/rex/struct2/s_string.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
# Rex::Struct2
module Rex
View
2  lib/rex/struct2/s_struct.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
# Rex::Struct2
module Rex
View
2  lib/rex/text.rb.ut.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
$:.unshift(File.join(File.dirname(__FILE__), '..'))
View
2  lib/rex/transformer.rb.ut.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
$:.unshift(File.join(File.dirname(__FILE__), '..'))
View
2  lib/rex/ui/text/color.rb.ut.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
$:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..'))
View
2  lib/rex/ui/text/progress_tracker.rb.ut.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
$:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..'))
View
2  lib/rex/ui/text/table.rb.ut.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
$:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..'))
View
2  modules/encoders/generic/none.rb.ut.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
$:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..', 'lib'))