Mini Shell

Direktori : /proc/self/root/proc/self/root/home/rizant5/public_html-1210/development/
Upload File :
Current File : //proc/self/root/proc/self/root/home/rizant5/public_html-1210/development/test-captcha.php

<!DOCTYPE html>
<html>
<head>
	<title>Captcha</title>
</head>
<body>
	<?php
	if(isset($_REQUEST['save'])){
		$resp = $_REQUEST['g-recaptcha-response'];

		$url = 'https://www.google.com/recaptcha/api/siteverify';
		$myvars = 'secret=6LdyowgUAAAAAAu9GB5pEFspr4mlV5LW5izyDOnm&response=' . $resp;

		$ch = curl_init( $url );
		curl_setopt( $ch, CURLOPT_POST, 1);
		curl_setopt( $ch, CURLOPT_POSTFIELDS, $myvars);
		curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, 1);
		curl_setopt( $ch, CURLOPT_HEADER, 0);
		curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1);

		$response = curl_exec( $ch );
		$response = json_decode($response);
		if($response->success){
			echo 'true';
		}else{
			echo 'false';
		}
	}
	?>
	<script src='https://www.google.com/recaptcha/api.js'></script>
	<form method="post">
		<div class="g-recaptcha" data-sitekey="6LdyowgUAAAAAPJ5DqkUio1T562uPWXra5igTke4"></div>
		<input type="submit" name="save" value="submit">
	</form>
</body>
</html>

Zerion Mini Shell 1.0