Land #10440, fix apk injection on windows

GSoC/Meterpreter_Web_Console
Tim W 2018-08-13 01:09:55 +08:00
commit 1ca6cb31d1
No known key found for this signature in database
GPG Key ID: 217FBA50ABBAABEF
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ class Msf::Payload::Apk
def parse_orig_cert_data(orig_apkfile)
orig_cert_data = Array[]
keytool_output = run_cmd("keytool -J-Duser.language=en -printcert -jarfile '#{orig_apkfile}'")
keytool_output = run_cmd(%Q{keytool -J-Duser.language=en -printcert -jarfile "#{orig_apkfile}"})
owner_line = keytool_output.match(/^Owner:.+/)[0]
orig_cert_dname = owner_line.gsub(/^.*:/, '').strip
orig_cert_data.push("#{orig_cert_dname}")