1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Kali Linuxに、Angrをインストールする手順

Last updated at Posted at 2021-03-04

概要

Kali LinuxにGhidraをインストールしたので、勢いでAngrもインストールした。

この資料は、既にいくつも資料が存在するのを承知の上で、自分のメモ用にWindows10上のVertualBoxで稼働する、Kali LinuxにAngrをインストールした手順を記録したもの。

VirtualBoxにKali Linuxをインストールする手順はこちら
Kali Linux

ダウンロード(実は不要)

AngrのWEBサイトは以下のもの。
https://angr.io/
angr_001.png
ただし、実際にインストールには、pythonのpipコマンドを使用するので、ここでインストールファイルをダウンロードする必要はない。

Pythonの環境準備

Pythonの確認

Kali Linuxをインストールする際に、[ソフトウェアの選択]画面で[large -- default selection plus additional tools]を選択しておくと、Python3がインストールされている。

[ターミナルエミュレータ]を起動し、以下のコマンドを実行。

python --version
python3 --version

angr_101.png
python 2.7と3.9がインストールされている。

venvとpipの確認

以下のコマンドを実行。

apt list | grep python3-venv
apt list | grep python3-pip

angr_102.png
Kali LinuxはDebianと同様、OSディストリビューションでpythonを組み込んでいるので、venvとpipを使用する場合には、
python3-venvとpython3-pipをaptでインストールすることが推奨されているようである。

venvとpipのインストール

以下のコマンドを実行。
python3-venvのインストール。

sudo apt install python3-venv

angr_201.png
途中確認プロンプトが表示されたらYを入力。
angr_202.png
python3-venv(と、python-pip-whl、python3.9-venv)のインストールが完了。

sudo apt install python3-pip

python3-pipのインストール。
angr_203.png
途中確認プロンプトが表示されたらYを入力。
angr_204.png
python3-pip(と、python3-wheel)のインストールが完了。

Angrインストール

インストール用python仮想環境の作成

Angrのサイトでは、virtualenvの使用を強く推奨されている。
python3からは、venvが仮想環境として一般的に使用されているようなので、venvを使用する。

以下のコマンドを実行。

python3 -m venv angr
cd angr
ls -la
source bin/activate

angr_301.png
angr用のpython仮想環境を作成する。

インストール

作成した仮想環境にangrをインストール。
以下のコマンドを実行。

ls -la
pip3 install angr

angr_302.png

angr_303.png
angr-9.0.6281(と必要な諸々のパッケージ)がインストールされる。

上記例では、以下の34のパッケージが追加されている。
CppHeaderParser-2.7.4
GitPython-3.1.14
ailment-9.0.6281
archinfo-9.0.6281
bitstring-3.1.7
cachetools-4.2.1
capstone-4.0.2
cffi-1.14.5
claripy-9.0.6281
cle-9.0.6281
decorator-4.4.2
dpkt-1.9.5
future-0.18.2
gitdb-4.0.5
itanium-demangler-1.0
mulpyplexer-0.9
networkx-2.5
pefile-2019.4.18
plumbum-1.7.0
ply-3.11
progressbar2-3.53.1
protobuf-3.15.4
psutil-5.8.0
pycparser-2.20
pyelftools-0.27
pysmt-0.9.0
python-utils-2.5.6
pyvex-9.0.6281
rpyc-5.0.1
six-1.15.0
smmap-3.0.5
sortedcontainers-2.3.0
unicorn-1.0.2rc4
z3-solver-4.8.10.0

動作確認

以下のコマンドを実行。

python3
import angr

angr_401.png
エラーメッセージが出なければ、インストールは完了している。

参考資料

AngrのGitHub上のソースコード
https://github.com/angr

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?