We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d79a3c8 commit 4c87b1bCopy full SHA for 4c87b1b
lib/msf/core/exploit/mixins.rb
@@ -1,5 +1,5 @@
1
# -*- coding: binary -*-
2
-# $Id: mixins.rb 16142 2012-11-30 19:45:04Z rapid7 $
+# $Id$
3
#
4
# All exploit mixins should be added to the list below
5
lib/rex/exploitation/cmdstager/bourne.rb
@@ -21,6 +21,8 @@ def initialize(exe)
21
22
def generate(opts = {})
23
opts[:temp] = opts[:temp] || '/tmp/'
24
+ opts[:temp] = opts[:temp].gsub(/'/, "\\\\'")
25
+ opts[:temp] = opts[:temp].gsub(/ /, "\\ ")
26
super
27
end
28
0 commit comments