Skip to content

Commit c833888

Browse files
committed
Just randomize
1 parent 79cabc6 commit c833888

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

lib/msf/core/payload/jsp.rb

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,6 @@ def jsp_bind_tcp
2828
var_in = Rex::Text.rand_text_alpha_lower(2)
2929
var_out = Rex::Text.rand_text_alpha_lower(3)
3030

31-
# The 'out' name variable can cause conflicts
32-
# when compiling the JSP under Tomcat with the
33-
# JASPER engine
34-
while var_out == 'out'
35-
var_out = Rex::Text.rand_text_alpha_lower(3)
36-
end
37-
3831
jsp = <<-EOS
3932
<%@page import="java.lang.*"%>
4033
<%@page import="java.util.*"%>
@@ -106,13 +99,6 @@ def jsp_reverse_tcp
10699
var_in = Rex::Text.rand_text_alpha_lower(2)
107100
var_out = Rex::Text.rand_text_alpha_lower(3)
108101

109-
# The 'out' name variable can cause conflicts
110-
# when compiling the JSP under Tomcat with the
111-
# JASPER engine
112-
while var_out == 'out'
113-
var_out = Rex::Text.rand_text_alpha_lower(3)
114-
end
115-
116102
jsp = <<-EOS
117103
<%@page import="java.lang.*"%>
118104
<%@page import="java.util.*"%>

0 commit comments

Comments
 (0)