mobilyzer.py WindowsError:[错误2]系统找不到指定的文件

时间:2016-05-25 14:40:15

标签: android security testing dynamic

我正在尝试运行一个现成的python脚本(名为m0biliz3r),我从这个link下载了该脚本。它主要用于执行android .apk文件的动态安全测试。

因此,在执行python脚本时,我在Windows7(64位)上获得以下错误屏幕。

Traceback (most recent call last):
  File "moblizer.py", line 47, in <module>
    call(["apktool","d",b])
  File "C:\Python27\lib\subprocess.py", line 522, in call
    return Popen(*popenargs, **kwargs).wait()
  File "C:\Python27\lib\subprocess.py", line 710, in __init__
    errread, errwrite)
  File "C:\Python27\lib\subprocess.py", line 958, in _execute_child
    startupinfo)
WindowsError: [Error 2] The system cannot find the file specified

我正在执行moblizer.py脚本的当前文件夹的内容如下。

C:\Python27>dir
 Volume in drive C has no label.
 Volume Serial Number is A6D5-3E2A

 Directory of C:\Python27

25-May-16  07:16 PM    <DIR>          .
25-May-16  07:16 PM    <DIR>          ..
25-May-16  07:15 PM    <DIR>          apktool
14-Feb-16  08:09 PM    <DIR>          DLLs
14-Feb-16  08:09 PM    <DIR>          Doc
22-May-16  04:11 PM        25,996,792 FTP_v8.3_1905.apk
19-May-16  02:12 PM        25,954,247 FT_v10.0_0605.apk
14-Feb-16  08:09 PM    <DIR>          include
07-Mar-16  03:27 PM    <DIR>          Lib
14-Feb-16  08:09 PM    <DIR>          libs
05-Dec-15  08:45 PM            38,584 LICENSE.txt
25-May-16  07:33 PM               422 logfile.log
25-May-16  07:34 PM             4,206 moblizer.py
05-Dec-15  08:25 PM           444,900 NEWS.txt
05-Dec-15  08:41 PM            28,160 python.exe
05-Dec-15  08:41 PM            28,160 pythonw.exe
21-Nov-15  11:03 PM            56,557 README.txt
14-Feb-16  09:16 PM    <DIR>          Scripts
13-Mar-16  09:46 AM    <DIR>          sqlmap
14-Feb-16  08:09 PM    <DIR>          tcl
14-Feb-16  08:09 PM    <DIR>          Tools
               9 File(s)     52,552,028 bytes
              12 Dir(s)  25,998,880,768 bytes free

我感谢任何帮助和建议如何解决我不是程序员或开发人员。

1 个答案:

答案 0 :(得分:0)

如果您仍在寻找解决方案,请在任何文本编辑器中打开moblizer文件,即notepad ++,然后转到第47行,将'apktool'更改为'apktool.bat'并保存文件。你的问题应该解决。