开始安装frida

首先需要安装python,Mac已经自带python2.7,frida作者是推荐安装python3.x。python2.x同样也能安装成功。

$ s u d o p i p i n s t a l l f r i d a

如果报错:

D E P R E C A T I O N : U n i n s t a l l i n g a d i s t u t i l s i n s t a l l e d p r o j e c t ( s i x ) h a s b e e n d e p r e c a t e d a n d w i l l b e r e m o v e d i n a f u t u r e v e r s i o n . T h i s i s d u e t o t h e f a c t t h a t u n i n s t a l l i n g a d i s t u t i l s p r o j e c t w i l l o n l y p a r t i a l l y u n i n s t a l l t h e p r o j e c t .

安装命令修改成

$ s u d o p i p i n s t a l l f r i d a - i g n o r e - i n s t a l l e d s i x

如果报错:

E T x r c a F e c i p e l s t b e t i a a o c " t n k / u : L s ( i m b = o r s a s t r e y l r / f e P . c y r e t u n h n t o ( n c p a 2 t l . i l 7 n l s s a i , s t t e a ) - r : p g a s c ) k a g e s / p i p - 9 . 0 . 1 - p y 2 . 7 . e g g / p i p / b a s e c o m m a n d . p y " , l i n e 2 1 5 , i n m a i n

安装命令修改成:

$ s u d o - H p i p i n s t a l l f r i d a - i g n o r e - i n s t a l l e d s i x

然后一个小时过去了,回来一看卡住了,一直停留在下面这个地方。

R u n n i n g s e t u p . p y i n s t a l l f o r f r i d a

如果有科学上网工具,可以操作一下。如果没有也没关系,我们可以先把egg文件下到本地用setuptools进行安装。

先装setuptools

https://pypi.org/project/setuptools/#files

下载最新版的.whl文件,命令行安装:

$ p i p i n s t a l l ( . w h l ) . w h l

通过setuptools安装frida

https://pypi.org/project/frida/#files

下载你需要的版本.egg文件,命令行安装:

$ e a s y _ i n s t a l l ( . e g g ) . e g g

安装frida-tools

$ p i p i n s t a l l f r i d a - t o o l s

如果安装卡住,也可以先下载文件到本地。

https://pypi.org/project/frida-tools/#files

解压后运行setup.py安装。

安装完成

$ f r i d a - p s

如果能显示当前系统进程则证明安装成功。