lib/rex/exploitation/js/memory.rb in rex-2.0.9 vs lib/rex/exploitation/js/memory.rb in rex-2.0.10
- old
+ new
@@ -25,10 +25,10 @@
end
def self.heaplib2(custom_js='', opts={})
js = ::File.read(::File.join(Msf::Config.data_directory, "js", "memory", "heaplib2.js"))
- unless custom_js.blank?
+ unless custom_js.to_s.empty?
js << custom_js
end
js = ::Rex::Exploitation::JSObfu.new js
js.obfuscate