403Webshell
Server IP : 157.230.181.24  /  Your IP : 216.73.217.11
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux conductive 6.8.0-117-generic #117-Ubuntu SMP PREEMPT_DYNAMIC Tue May 5 19:26:24 UTC 2026 x86_64
User :  ( 1000)
PHP Version : 8.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /opt/aim-bots/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/aim-bots//create_side_chick_services.py
#!/usr/bin/env python3
"""Create systemd units for side-chick AIM bots."""

from __future__ import annotations

import json
from pathlib import Path

MANIFEST = Path("/opt/aim-bots/side_chicks_manifest.json")
SYSTEMD = Path("/etc/systemd/system")
TEMPLATE = """[Unit]
Description=AIM Persona Bot - {key}
After=ras.service network-online.target
Wants=ras.service network-online.target
Requires=ras.service

[Service]
Type=simple
User=ras
Group=ras
WorkingDirectory=/opt/aim-bots
EnvironmentFile=/opt/aim-bots/shared.env
EnvironmentFile=/opt/aim-bots/personas/{key}/bot.env
ExecStart=/usr/bin/python3 /opt/aim-bots/aim_persona_bot.py /opt/aim-bots/personas/{key}
Restart=always
RestartSec=5

[Install]
WantedBy=multi-user.target
"""


def main() -> None:
    data = json.loads(MANIFEST.read_text())
    for key in data["deployed_bots"]:
        path = SYSTEMD / f"aim-bot-{key}.service"
        path.write_text(TEMPLATE.format(key=key))
        print(f"wrote {path}")


if __name__ == "__main__":
    main()

Youez - 2016 - github.com/yon3zu
LinuXploit