Land #10440, fix apk injection on windows
commit
1ca6cb31d1
|
@ -125,7 +125,7 @@ class Msf::Payload::Apk
|
||||||
|
|
||||||
def parse_orig_cert_data(orig_apkfile)
|
def parse_orig_cert_data(orig_apkfile)
|
||||||
orig_cert_data = Array[]
|
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]
|
owner_line = keytool_output.match(/^Owner:.+/)[0]
|
||||||
orig_cert_dname = owner_line.gsub(/^.*:/, '').strip
|
orig_cert_dname = owner_line.gsub(/^.*:/, '').strip
|
||||||
orig_cert_data.push("#{orig_cert_dname}")
|
orig_cert_data.push("#{orig_cert_dname}")
|
||||||
|
|
Loading…
Reference in New Issue