Skip to content

Commit

Permalink
Land #16332, fix zipalign to align shared object files
Browse files Browse the repository at this point in the history
  • Loading branch information
timwr committed Mar 13, 2022
2 parents db19f88 + 6ae5456 commit df81a48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/msf/core/payload/apk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ def backdoor_apk(apkfile, raw_payload, signature = true, manifest = true, apk_da

if signature
print_status "Aligning #{injected_apk}\n"
zipalign_output = run_cmd(['zipalign', '4', injected_apk, aligned_apk])
zipalign_output = run_cmd(['zipalign', '-p', '4', injected_apk, aligned_apk])

unless File.readable?(aligned_apk)
print_error(zipalign_output)
Expand Down

0 comments on commit df81a48

Please sign in to comment.