
بوت نت وباب خلفي بلغة بايثون
Ares هي أداة وصول عن بعد مكتوبة بلغة بايثون.
تحذير: استخدم هذا البرنامج فقط وفقًا للتشريعات المحلية. الاستخدام الخاطئ قد يثير قضايا قانونية وأخلاقية لا أدعمها ولا أتحمل مسؤوليتها.
يتكون Ares من برنامجين رئيسيين:
يمكن تشغيل الواجهة على أي خادم يعمل بلغة بايثون. يمكن تجميع الوكيل إلى ملفات تنفيذية أصلية باستخدام pyinstaller.
تثبيت متطلبات بايثون:
pip install -r requirements.txt
تهيئة قاعدة البيانات:
cd server
./ares.py initdb
لتجميع وكلاء ويندوز على لينكس، قم بإعداد 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
تشغيل وكيل بايثون (قم بتحديث 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.