How To Install apkverifier on Kali Linux

In this tutorial we learn how to install apkverifier on Kali Linux. apkverifier is Android APK Signature verification tool

Introduction

In this tutorial we learn how to install apkverifier on Kali Linux.

What is apkverifier

apkverifier is:

apkverifier is a simple command line tool that verifies the signatures on Android APK binaries. It can verify APK Signature scheme v1, v2 and v3 and passes Google apksig’s testing suite. It should support all algorithms and downgrade attack protection.

Because Android can handle even broken x509 cerficates and ZIP files, apkverifier is using the ZipReader from apkparser package and vendors crypto/x509 in internal/x509andr and github.com/fullsailor/pkcs7 (https://github.com/fullsailor/pkcs7) in the fullsailor/pkcs7 folder. The last two have some changes to handle some not-entirely-according-to-spec certificates.

Documentation on GoDoc (https://godoc.org/github.com/avast/apkverifier)

There are three methods to install apkverifier on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install apkverifier Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install apkverifier using apt-get by running the following command:

sudo apt-get -y install apkverifier

Install apkverifier Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install apkverifier using apt by running the following command:

sudo apt -y install apkverifier

Install apkverifier Using aptitude

If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install apkverifier using aptitude by running the following command:

sudo aptitude -y install apkverifier

How To Uninstall apkverifier on Kali Linux

To uninstall only the apkverifier package we can use the following command:

sudo apt-get remove apkverifier

Uninstall apkverifier And Its Dependencies

To uninstall apkverifier and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove apkverifier

Remove apkverifier Configurations and Data

To remove apkverifier configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge apkverifier

Remove apkverifier configuration, data, and all of its dependencies

We can use the following command to remove apkverifier configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge apkverifier

Dependencies

apkverifier have the following dependencies:

References

Summary

In this tutorial we learn how to install apkverifier package on Kali Linux using different package management tools: apt, apt-get and aptitude.