
AresはPython製のリモートアクセスツールです。
警告:本ソフトウェアは、お住まいの地域の法律に従ってのみ使用してください。本ソフトウェアの誤用は法的・倫理的問題を引き起こす可能性があり、私はそれを支持せず、責任を負いません。
Aresは2つの主要プログラムから構成されています:
WebインターフェースはPythonが動作する任意のサーバーで実行可能です。エージェントはpyinstallerを使用してネイティブ実行可能ファイルにコンパイルできます。
Pythonの依存関係をインストール:
pip install -r requirements.txt
データベースを初期化:
cd server
./ares.py initdb
Linux上でWindows用エージェントをコンパイルするには、wineをセットアップします(オプション):
./wine_setup.sh
組み込み(デバッグ)サーバーで実行:
./ares.py runserver -h 0.0.0.0 -p 8080 --threaded
またはgunicornを使用して実行:
gunicorn ares:app -b 0.0.0.0:8080 --threads 20
サーバーは http://localhost:8080 でアクセスできるはずです。
Pythonエージェントを実行(必要に応じてconfig.pyを更新):
cd agent
./agent.py
スタンドアロンバイナリに新しいエージェントをビルド:
./builder.py -p Linux --server http://localhost:8080 -o agent
./agent
サポートされているオプションの一覧を表示するには、./builder.py -hを実行してください。
./agent/builder.py -h
usage: builder.py [-h] -p PLATFORM --server SERVER -o OUTPUT
[--hello-interval HELLO_INTERVAL] [--idle_time IDLE_TIME]
[--max_failed_connections MAX_FAILED_CONNECTIONS]
[--persistent]
Builds an Ares agent.
optional arguments:
-h, --help show this help message and exit
-p PLATFORM, --platform PLATFORM
Target platform (Windows, Linux).
--server SERVER Address of the CnC server (e.g http://localhost:8080).
-o OUTPUT, --output OUTPUT
Output file name.
--hello-interval HELLO_INTERVAL
Delay (in seconds) between each request to the CnC.
--idle_time IDLE_TIME
Inactivity time (in seconds) after which to go idle.
In idle mode, the agent pulls commands less often
(every <hello_interval> seconds).
--max_failed_connections MAX_FAILED_CONNECTIONS
The agent will self destruct if no contact with the
CnC can be made <max_failed_connections> times in a
row.
--persistent Automatically install the agent on first run.
<any shell command>
Executes the command in a shell and return its output.
upload <local_file>
Uploads <local_file> to server.
download <url> <destination>
Downloads a file through HTTP(S).
zip <archive_name> <folder>
Creates a zip archive of the folder.
screenshot
Takes a screenshot.
python <command|file>
Runs a Python command or local file.
persist
Installs the agent.
clean
Uninstalls the agent.
exit
Kills the agent.
help
This help.