Skip to content

Commit

Permalink
Just randomize
Browse files Browse the repository at this point in the history
  • Loading branch information
jvazquez-r7 committed Nov 5, 2014
1 parent 79cabc6 commit c833888
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions lib/msf/core/payload/jsp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,6 @@ def jsp_bind_tcp
var_in = Rex::Text.rand_text_alpha_lower(2)
var_out = Rex::Text.rand_text_alpha_lower(3)

# The 'out' name variable can cause conflicts
# when compiling the JSP under Tomcat with the
# JASPER engine
while var_out == 'out'
var_out = Rex::Text.rand_text_alpha_lower(3)
end

jsp = <<-EOS
<%@page import="java.lang.*"%>
<%@page import="java.util.*"%>
Expand Down Expand Up @@ -106,13 +99,6 @@ def jsp_reverse_tcp
var_in = Rex::Text.rand_text_alpha_lower(2)
var_out = Rex::Text.rand_text_alpha_lower(3)

# The 'out' name variable can cause conflicts
# when compiling the JSP under Tomcat with the
# JASPER engine
while var_out == 'out'
var_out = Rex::Text.rand_text_alpha_lower(3)
end

jsp = <<-EOS
<%@page import="java.lang.*"%>
<%@page import="java.util.*"%>
Expand Down

0 comments on commit c833888

Please sign in to comment.