Obfuscate js

bug/bundler_fix
sinn3r 2015-03-30 10:52:01 -05:00
parent c7fa01c5ae
commit 9af1e76bf7
1 changed files with 4 additions and 1 deletions

View File

@ -4,10 +4,12 @@
## ##
require 'msf/core' require 'msf/core'
require 'msf/core/exploit/jsobfu'
class Metasploit3 < Msf::Auxiliary class Metasploit3 < Msf::Auxiliary
include Msf::Exploit::Remote::HttpServer::HTML include Msf::Exploit::Remote::HttpServer::HTML
include Msf::Exploit::JSObfu
def initialize(info={}) def initialize(info={})
super(update_info(info, super(update_info(info,
@ -146,13 +148,14 @@ class Metasploit3 < Msf::Auxiliary
end end
def html def html
new_js = js_obfuscate(js)
%Q| %Q|
<html> <html>
<head> <head>
</head> </head>
<body> <body>
<script> <script>
#{js} #{new_js}
</script> </script>
</body> </body>
</html> </html>