Uname:Linux antigravity-cli 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64

Base Dir : /var/www/moonbloom

User : wp-moonbloom


403WebShell
403Webshell
Server IP : 85.155.190.233  /  Your IP : 216.73.216.103
Web Server : nginx/1.24.0
System : Linux antigravity-cli 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64
User : wp-moonbloom ( 1001)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /opt/Gemini_Swarm_Core/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/Gemini_Swarm_Core/deep_audit.py
import sys
import os
sys.path.insert(0, 'Gemini_Swarm_Core/scripts')
from _ssh import connect, run_cmd, safe_print

def deep_audit():
    try:
        client = connect()
    except Exception as e:
        safe_print(f"Failed to connect for audit: {e}")
        return

    commands = [
        ("ACTIVE LISTENERS", "ss -tulpn"),
        ("ESTABLISHED CONNECTIONS", "ss -tun"),
        ("RECENT AUTH EVENTS", "tail -n 50 /var/log/auth.log"),
        ("SUDO ATTEMPTS", "grep 'sudo' /var/log/auth.log | tail -n 10"),
        ("SWARM PROCESSES", "ps aux | grep -v grep | grep 'swarm'"),
        ("WORLD WRITABLE FILES IN CORE", "find /opt/Gemini_Swarm_Core -perm -o+w -type f"),
        ("CRON JOBS", "crontab -l || echo 'No crontab for root'"),
        ("FAILED SSH ATTEMPTS (24h)", "grep 'Failed password' /var/log/auth.log | wc -l")
    ]

    for title, cmd in commands:
        safe_print(f"\n--- {title} ---")
        code, out, err = run_cmd(client, cmd)
        if code == 0:
            safe_print(out if out.strip() else "None/Empty")
        else:
            safe_print(f"Error: {err}")

    client.close()

if __name__ == "__main__":
    deep_audit()

Youez - 2016 - github.com/yon3zu
LinuXploit