shell bypass 403

GrazzMean Shell

: /proc/thread-self/root/usr/local/ei/ei/ [ drwxr-xr-x ]
Uname: Linux web3.us.cloudlogin.co 5.10.226-xeon-hst #2 SMP Fri Sep 13 12:28:44 UTC 2024 x86_64
Software: Apache
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.210.96.117
Your Ip: 3.147.66.200
User: edustar (269686) | Group: tty (888)
Safe Mode: OFF
Disable Function:
NONE

name : drupal8.patch
diff -Nur drupal/core/lib/Drupal/Core/Database/Driver/mysql/Connection.php drupal-orig/core/lib/Drupal/Core/Database/Driver/mysql/Connection.php
--- drupal/core/lib/Drupal/Core/Database/Driver/mysql/Connection.php	2020-05-14 11:35:23.238162000 +0000
+++ drupal-orig/core/lib/Drupal/Core/Database/Driver/mysql/Connection.php	2020-05-14 11:12:28.740979000 +0000
@@ -453,7 +453,7 @@
     // https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-11.html#mysqld-8-0-11-deprecation-removal
     $version_server = $pdo->getAttribute(\PDO::ATTR_SERVER_VERSION);
     if (version_compare($version_server, '8.0.11', '<')) {
-      $sql_mode .= ',NO_AUTO_CREATE_USER';
+      //$sql_mode .= ',NO_AUTO_CREATE_USER';
     }
     $connection_options['init_commands'] += [
       'sql_mode' => "SET sql_mode = '$sql_mode'",
diff -Nur drupal/core/lib/Drupal/Core/Database/Schema.php drupal-orig/core/lib/Drupal/Core/Database/Schema.php
--- drupal/core/lib/Drupal/Core/Database/Schema.php	2020-05-14 11:35:44.070944000 +0000
+++ drupal-orig/core/lib/Drupal/Core/Database/Schema.php	2020-05-14 10:18:20.368611000 +0000
@@ -201,7 +201,7 @@
     // couldn't use \Drupal::database()->select() here because it would prefix
     // information_schema.tables and the query would fail.
     // Don't use {} around information_schema.tables table.
-    $results = $this->connection->query("SELECT table_name as table_name FROM information_schema.tables WHERE " . (string) $condition, $condition->arguments());
+    $results = $this->connection->query("SELECT TABLE_NAME as table_name FROM information_schema.tables WHERE " . (string) $condition, $condition->arguments());
     foreach ($results as $table) {
       // Take into account tables that have an individual prefix.
       if (isset($individually_prefixed_tables[$table->table_name])) {
© 2025 GrazzMean