remove rubocop exemption no longer required
This commit is contained in:
parent
08a1fb0c8e
commit
d802a9ee0b
|
@ -130,9 +130,7 @@ class MetasploitModule < Msf::Exploit::Remote
|
|||
if qsl_delta.odd?
|
||||
fail_with Failure::Unknown, "Got odd qslDelta, that means the URL encoding gone wrong: path=#{path}, qsl_delta=#{qsl_delta}"
|
||||
end
|
||||
# rubocop:disable Lint/UriEscapeUnescape
|
||||
prefix = cmd.empty? ? '' : "#{@http_param}=#{URI::DEFAULT_PARSER.escape(cmd)}%26"
|
||||
# rubocop:enable Lint/UriEscapeUnescape
|
||||
qsl_prime = qsl - qsl_delta / 2 - prefix.length
|
||||
if qsl_prime < 0
|
||||
fail_with Failure::Unknown, "QSL value too small to fit the command: QSL=#{qsl}, qsl_delta=#{qsl_delta}, prefix (size=#{prefix.size})=#{prefix}"
|
||||
|
|
Loading…
Reference in New Issue