Skip to content

Commit 9af1e76

Browse files
committed
Obfuscate js
1 parent c7fa01c commit 9af1e76

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

modules/auxiliary/gather/ms14_052_xmldom.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@
44
##
55

66
require 'msf/core'
7+
require 'msf/core/exploit/jsobfu'
78

89
class Metasploit3 < Msf::Auxiliary
910

1011
include Msf::Exploit::Remote::HttpServer::HTML
12+
include Msf::Exploit::JSObfu
1113

1214
def initialize(info={})
1315
super(update_info(info,
@@ -146,13 +148,14 @@ def js
146148
end
147149

148150
def html
151+
new_js = js_obfuscate(js)
149152
%Q|
150153
<html>
151154
<head>
152155
</head>
153156
<body>
154157
<script>
155-
#{js}
158+
#{new_js}
156159
</script>
157160
</body>
158161
</html>

0 commit comments

Comments
 (0)