Fix generate_uri

bug/bundler_fix
nixawk 2017-04-14 21:52:31 -05:00
parent 590816156f
commit fb001180c4
1 changed files with 2 additions and 1 deletions

View File

@ -4,7 +4,7 @@
##
require 'msf/core'
require 'rex/ole'
class MetasploitModule < Msf::Exploit::Remote
Rank = NormalRanking
@ -79,6 +79,7 @@ class MetasploitModule < Msf::Exploit::Remote
uri = Rex::Text.hexify(Rex::Text.to_unicode(uri))
uri.delete!("\n")
uri.delete!("\\x")
uri.delete!("\\")
padding_length = uri_maxlength * 2 - uri.length
fail_with(Failure::BadConfig, "please use a uri < #{uri_maxlength} bytes ") if padding_length.negative?