27 lines
569 B
Ruby
27 lines
569 B
Ruby
#
|
|
# Copyright (c) 2006-2013 Wade Alcorn - wade@bindshell.net
|
|
# Browser Exploitation Framework (BeEF) - http://beefproject.com
|
|
# See the file 'doc/COPYING' for copying permission
|
|
#
|
|
module BeEF
|
|
module Extension
|
|
module Evasion
|
|
require 'uglifier'
|
|
class Minify
|
|
include Singleton
|
|
|
|
def need_bootstrap
|
|
false
|
|
end
|
|
|
|
def execute(input, config)
|
|
input = Uglifier.compile(input)
|
|
print_debug "[OBFUSCATION - MINIFIER] Javascript has been minified"
|
|
input
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|