2

Windows 7にWeevelyをインストールしているときにエラーが発生します私はPythonの初心者です:/

C:\Python27\weevely>python weevely.py generate testmypwd

Traceback (most recent call last):
  File "weevely.py", line 108, in <module>
    Terminal (ModHandler(genname, password), True).run_module_cmd(args_list)
  File "C:\Python27\weevely\core\modules_handler.py", line 17, in __init__
    self.__set_path_modules()
  File "C:\Python27\weevely\core\modules_handler.py", line 42, in __set_path_modules
    raise Exception( "No module directory %s found." % self.path_modules )
Exception: No module directory /modules found.

誰かが私を助けることができますか?

4

2 に答える 2

0

基本的な問題は、このモジュールがLinux / Unixで実行されることです(weevely.pyがシバン行を呼び出しているために注意してください:)#!/usr/bin/env pythonが、WebJuiceはWindowsで実行しようとしているので、36行目と37行目を変更してみました。ファイル:C:\ Python27 \ weevely \ core \ modules_handler.pyを次のように:

root_path = os.path.dirname(current_path)
self.path_modules = os.path.join(root_path,'modules')

しかし、それでも他の依存モジュールがあります:Windowsでは利用できないreadline(http://pypi.python.org/pypi/readline/から明らかです)、そしてあなたはもっと目に見えないLinux関連の依存関係があるかどうかわかりません。したがって、これをWindowsで実行することはできないと結論付けます。

PS : http: //cloud.github.com/downloads/epinna/Weevely/weevely-0.7.1.tar.gzからダウンロードしたweevelyパッケージを参照しています。ただし、同等のLinuxパッケージを見つけた場合は、そのURLを投稿してください。

于 2012-08-19T19:25:14.450 に答える
0

バージョン1.0以降、チュートリアルで説明されているように、WeevelyはWindowsおよびMacOS環境を公式にサポートします。

https://github.com/epinna/Weevely/wiki/Tutorial

公式サイトhttp://epinna.github.com/Weevely/からダウンロードしてください

于 2013-02-02T13:29:42.320 に答える