[ create a new paste ] login | about

Link: http://codepad.org/uoSYP9ro    [ raw code | output | fork ]

Ludim - PHP, pasted on Oct 16:
<?php
	include 'funciones.php';
	$fun = new Funciones();
	$x_S = $_COOKIE["x_S"];
	$fx = $fun->f($x_S);
	$n = 2501; // cuando son muy grandes los numeros tiene lata javascript
	$e = 37;
	$d = 973;
	$e_C = "<script> document.write(sessionStorage.getItem('e_C')) </script>";
	echo "e =".$e_C."<br>";
	$e_C = (int)$e_C;
	echo "e =".$e_C."<br>";
	$n_C = "<script> document.write(sessionStorage.getItem('n_C')) </script>";
	echo $n_C."<br>";
	$n_C = (int)$n_C;

	echo "suma",(int)$n_C+(int)$e_C,"<br>";

	$rsptCliente = $_COOKIE['respuestaCliente'];
	echo "es numero ".is_numeric($rsptCliente)."??<br>";
	echo $rsptCliente;
	// lo decifro
	$msjDescifrado = $fun->expModRap($rsptCliente,$e_C,$n_C);
	//le quito la firma
	$msjSnFrma = $fun->expModRap($msjDescifrado,$d,$n);

	echo $fx." == ".$msjSnFrma;
	echo $msjSnFrma;
?>


Output:
1
2
3
4
5
6

Warning: include(funciones.php): failed to open stream: No such file or directory on line 2

Warning: include(): Failed opening 'funciones.php' for inclusion (include_path='.:/usr/lib/php') on line 2

Fatal error: Class 'Funciones' not found on line 3


Create a new paste based on this one


Comments: