Tul xxx Tul
User / IP
:
216.73.216.227
Host / Server
:
45.84.207.204 / aircan.me
System
:
Linux lt-bnk-web1726.main-hosting.eu 5.14.0-611.36.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Mar 3 11:23:52 EST 2026 x86_64
Command
|
Upload
|
Create
Mass Deface
|
Jumping
|
Symlink
|
Reverse Shell
Ping
|
Port Scan
|
DNS Lookup
|
Whois
|
Header
|
cURL
:
/
home
/
u931257429
/
domains
/
aircan.me
/
public_html
/
red2.2
/
tools
/
Viewing: debug_scan.php
<?php declare(strict_types=1); define('BASE_PATH', dirname(__DIR__)); // Autoload spl_autoload_register(static function (string $class): void { $prefixes = [ 'App\\Models\\' => BASE_PATH . '/app/models/', 'Core\\' => BASE_PATH . '/core/', ]; foreach ($prefixes as $prefix => $baseDir) { if (str_starts_with($class, $prefix)) { $relative = str_replace('\\', '/', substr($class, strlen($prefix))); $file = $baseDir . $relative . '.php'; if (is_file($file)) require $file; return; } } }); $config = require BASE_PATH . '/config/app.php'; echo "=== DEBUG SCAN ===" . PHP_EOL; echo "OS: " . PHP_OS_FAMILY . PHP_EOL; echo "Time: " . date('H:i:s') . PHP_EOL; // Test 1: Can we detect gateway? echo PHP_EOL . "--- Gateway Detection ---" . PHP_EOL; $ipconfigOut = (string) @shell_exec('cmd.exe /c ipconfig'); if (preg_match('/(?:Default Gateway|Puerta de enlace[^:]*?)\s*\.*\s*:\s*(\d{1,3}(?:\.\d{1,3}){3})/i', $ipconfigOut, $m)) { echo "Gateway (ipconfig): " . $m[1] . PHP_EOL; } else { echo "Gateway (ipconfig): NOT FOUND" . PHP_EOL; } // Test 2: PowerShell basic test echo PHP_EOL . "--- PowerShell Test ---" . PHP_EOL; $psTest = (string) @shell_exec('powershell -NoProfile -Command "echo OK"'); echo "PowerShell works: " . (trim($psTest) === 'OK' ? 'YES' : 'NO (' . trim($psTest) . ')') . PHP_EOL; // Test 3: Get-NetNeighbor echo PHP_EOL . "--- Get-NetNeighbor ---" . PHP_EOL; $psNeighbor = (string) @shell_exec('powershell -NoProfile -Command "Get-NetNeighbor -AddressFamily IPv4 | Where-Object { $_.LinkLayerAddress -ne \'00-00-00-00-00-00\' -and $_.LinkLayerAddress -ne \'\' -and $_.State -ne \'Unreachable\' } | Select-Object IPAddress,LinkLayerAddress,State | Format-Table -AutoSize"'); echo $psNeighbor . PHP_EOL; // Test 4: arp -a echo PHP_EOL . "--- ARP Table ---" . PHP_EOL; $arpOut = (string) @shell_exec('cmd.exe /c arp -a'); echo $arpOut . PHP_EOL; // Test 5: Full scan echo PHP_EOL . "--- Full NetworkModel Scan ---" . PHP_EOL; $start = microtime(true); try { $model = new \App\Models\NetworkModel($config); [$devices, $meta] = $model->scanDevicesWithMeta(true); $elapsed = round(microtime(true) - $start, 2); echo "Scan took: " . $elapsed . "s" . PHP_EOL; echo "Devices found: " . count($devices) . PHP_EOL; foreach ($devices as $d) { echo " " . str_pad($d['ip'], 16) . " | " . str_pad($d['mac'] ?? 'no-mac', 18) . " | " . str_pad($d['estado'], 8) . " | " . ($d['hostname'] ?? '') . PHP_EOL; } echo PHP_EOL . "Meta:" . PHP_EOL; echo " source: " . ($meta['source'] ?? 'n/a') . PHP_EOL; echo " command: " . ($meta['command'] ?? 'n/a') . PHP_EOL; echo " probe.enabled: " . (($meta['probe']['enabled'] ?? false) ? 'true' : 'false') . PHP_EOL; echo " probe.method: " . ($meta['probe']['method'] ?? 'n/a') . PHP_EOL; } catch (\Throwable $e) { echo "ERROR: " . $e->getMessage() . PHP_EOL; echo $e->getTraceAsString() . PHP_EOL; }
Coded With 💗 by
0x6ick