|
Menu |
|
|
Home |
| |
|
Discussions |
| |
|
Tools |
| |
|
Affiliates |
| |
|
Content |
| |
|
Info |
| | |
|
|
|
|
|
User Info |
|
Membership:
Latest: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9144
People Online:
Visitors: 58
Members: 0
Total: 58
|
|
|
|
|
|
Full disclosure |
|
|
|
|
|
|
|
|
|
IT Security and Insecurity Portal |
|
|
Ioncube //0046b decode |
|
Posted: Fri May 17, 2013 12:02 pm |
|
|
payback_boy |
Beginner |
|
|
Joined: May 17, 2013 |
Posts: 2 |
|
|
|
|
|
|
|
Can anyone help to decode this?
Code: |
<?php //0046b
if(!extension_loaded('ionCube Loader')){$__oc=strtolower(substr(php_uname(),0,3));$__ln='ioncube_loader_'.$__oc.'_'.substr(phpversion(),0,3).(($__oc=='win')?'.dll':'.so');if(function_exists('dl')){@dl($__ln);}if(function_exists('_il_exec')){return _il_exec();}$__ln='/ioncube/'.$__ln;$__oid=$__id=realpath(ini_get('extension_dir'));$__here=dirname(__FILE__);if(strlen($__id)>1&&$__id[1]==':'){$__id=str_replace('\\','/',substr($__id,2));$__here=str_replace('\\','/',substr($__here,2));}$__rd=str_repeat('/..',substr_count($__id,'/')).$__here.'/';$__i=strlen($__rd);while($__i--){if($__rd[$__i]=='/'){$__lp=substr($__rd,0,$__i).$__ln;if(file_exists($__oid.$__lp)){$__ln=$__lp;break;}}}if(function_exists('dl')){@dl($__ln);}}else{die('The file '.__FILE__." is corrupted.\n");}if(function_exists('_il_exec')){return _il_exec();}echo('Site error: the file <b>'.__FILE__.'</b> requires the ionCube PHP Loader '.basename($__ln).' to be installed by the website operator. If you are the website operator please use the <a href="http://www.ioncube.com/lw/">ionCube Loader Wizard</a> to assist with installation.');exit(199);
?>
4+oV59Dqb93yysodxPy1iqrB4wUKK/rolfzdGk+JybOZ+Fh1EZ3BhWbbL33HMf5GJO3jNz7YkPdj
zX0uobjx9EaWywEKdN9Agli29bQ2bIsarNDutCeUpzC36aZcFc1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a8UgxKRAXvJ0Wep8fE9BhHcisE9+kZ4CZz/eaasGHS2UNGBNheayfGtSAZLgwKuypV8ndn
EiLjusx/8qcToVB0ahRfkwPTM1luLbj57+JXIXYXR8wVrKMtYmwtn/TuMsElJoLMEM0MvWzojvdE
P0ZD6mhCME8KP7XQTadfQWD1EaaRcsVVZkQ4UBCSr4HQYhphu06AxWzgT3EOqZItyzR1pZ1xcgYo
8dbKb687siah1yo/fGknb/vDChKcwT/t0+E3fGufyAtWkGg1igCJrAxqLMmHpJLqdnPK8aEKqZIK
97mKNsvE7aLLwm7fwm+hHGELxm==
|
Thanks in advance! |
|
|
|
|
|
|
|
|
Posted: Fri May 17, 2013 7:58 pm |
|
|
Sinfuls |
Regular user |
|
|
Joined: Nov 29, 2012 |
Posts: 22 |
|
|
|
|
|
|
|
Code: | <?php
class verificarcielo
{
public $license_key;
public $home_url_site = "www.locasistemas.com";
public $home_url_port = 80;
public $home_url_iono = "/clientes/remote.php";
public $key_location;
public $remote_auth;
public $key_age;
public $key_data;
public $now;
public $result;
public function verificarcielo( $license_key, $remote_auth, $key_location = "key.php", $key_age = 1296000 )
{
$this->license_key = $license_key;
$this->remote_auth = $remote_auth;
$this->key_location = $key_location;
$this->key_age = $key_age;
$this->now = time( );
if ( empty( $license_key ) )
{
$this->result = 4;
return false;
}
if ( empty( $remote_auth ) )
{
$this->result = 4;
return false;
}
if ( file_exists( $this->key_location ) )
{
$this->result = $this->read_key( );
}
else
{
$this->result = $this->generate_key( );
if ( empty( $this->result ) )
{
$this->result = $this->read_key( );
}
}
unset( $ && _156351996['remote_auth'] );
return true;
}
public function generate_key( )
{
$novoip = gethostbyname( $_SERVER['SERVER_NAME'] );
$request = "remote=licenses&type=5&license_key=".urlencode( base64_encode( $this->license_key ) );
$request .= "&host_ip=".urlencode( base64_encode( $_SERVER['SERVER_ADDR'] ) )."&host_name=".urlencode( base64_encode( $_SERVER['SERVER_NAME'] ) );
$request .= "&hash=".urlencode( base64_encode( md5( $request ) ) );
$request = $this->home_url_iono."?".$request;
$header = "GET {$request} HTTP/1.0\r\nHost: {$this->home_url_site}\r\nConnection: Close\r\nUser-Agent: iono (www.olate.co.uk/iono)\r\n";
$header .= "\r\n\r\n";
$fpointer = @fsockopen( @$this->home_url_site, @$this->home_url_port, @$errno, @$errstr, 5 );
$return = "";
if ( $fpointer )
{
@fwrite( @$fpointer, @$header );
while ( @!feof( @$fpointer ) )
{
$return .= @fread( @$fpointer, 1024 );
}
@fclose( @$fpointer );
}
else
{
return 12;
}
$content = explode( "\r\n\r\n", $return );
$content = explode( $content[0], $return );
$string = urldecode( $content[1] );
$exploded = explode( "|", $string );
switch ( $exploded[0] )
{
case 0 :
return 8;
case 2 :
return 9;
case 3 :
return 5;
case 10 :
return 4;
}
$data['license_key'] = $exploded[1];
$data['expiry'] = $exploded[2];
$data['hostname'] = $exploded[3];
$data['ip'] = $exploded[4];
$data['timestamp'] = $this->now;
if ( empty( $data['hostname'] ) )
{
$data['hostname'] = $_SERVER['SERVER_NAME'];
}
if ( empty( $data['ip'] ) )
{
if ( isset( $_SERVER['SERVER_ADDR'] ) )
{
$data['ip'] = $_SERVER['SERVER_ADDR'];
}
else
{
$data['ip'] = $novoip;
}
}
$data_encoded = serialize( $data );
$data_encoded = base64_encode( $data_encoded );
$data_encoded = md5( $this->now.$this->remote_auth ).$data_encoded;
$data_encoded = strrev( $data_encoded );
$data_encoded_hash = sha1( $data_encoded.$this->remote_auth );
$fp = fopen( $this->key_location, "w" );
if ( $fp )
{
$fp_write = fwrite( $fp, wordwrap( $data_encoded.$data_encoded_hash, 40, "\n", true ) );
if ( !$fp_write )
{
return 11;
}
fclose( $fp );
}
else
{
return 10;
}
}
public function read_key( )
{
$key = file_get_contents( $this->key_location );
if ( $key !== false )
{
$key = str_replace( "\n", "", $key );
$key_string = substr( $key, 0, strlen( $key ) - 40 );
$key_sha_hash = substr( $key, strlen( $key ) - 40, strlen( $key ) );
if ( sha1( $key_string.$this->remote_auth ) == $key_sha_hash )
{
$key = strrev( $key_string );
$key_hash = substr( $key, 0, 32 );
$key_data = substr( $key, 32 );
$key_data = base64_decode( $key_data );
$key_data = unserialize( $key_data );
if ( md5( $key_data['timestamp'].$this->remote_auth ) == $key_hash )
{
if ( $this->key_age <= $this->now - $key_data['timestamp'] )
{
unlink( $this->key_location );
$this->result = $this->generate_key( );
if ( empty( $this->result ) )
{
$this->result = $this->read_key( );
}
return 1;
}
$this->key_data = $key_data;
if ( $key_data['license_key'] != $this->license_key )
{
return 4;
}
if ( $key_data['expiry'] <= $this->now && $key_data['expiry'] != 1 )
{
return 5;
}
if ( substr_count( $key_data['hostname'], "," ) == 0 )
{
if ( $key_data['hostname'] != $_SERVER['SERVER_NAME'] && !empty( $key_data['hostname'] ) )
{
return 6;
}
}
else
{
$hostnames = explode( ",", $key_data['hostname'] );
if ( !in_array( $_SERVER['SERVER_NAME'], $hostnames ) )
{
return 6;
}
}
if ( isset( $_SERVER['SERVER_ADDR'] ) )
{
$ipver = $_SERVER['SERVER_ADDR'];
}
else
{
$ipver = $novoip;
}
if ( substr_count( $key_data['ip'], "," ) == 0 )
{
if ( $key_data['ip'] != $ipver && !empty( $key_data['ip'] ) )
{
return 7;
return 1;
}
}
$ips = explode( ",", $key_data['ip'] );
if ( !in_array( $ipver, $ips ) )
{
return 7;
}
return 1;
}
return 3;
}
return 2;
}
return 0;
}
public function get_data( )
{
return $this->key_data;
}
}
include( "dados.php" );
if ( !isset( $_GET['token'] ) )
{
exit( );
}
$urls = $config->get( "cielo_url_loja" );
global $itemId;
$tk = $_GET['token'];
$a = explode( "#", base64_decode( $tk ) );
$cartao = $a[0];
$itemId = ( integer );
$tipocc = $a[2];
$parcela = ( integer );
$hash = $a[4];
echo "<br><br><br><br><br><center><h2>Aguarde...</h2></center>";
require( "includes/include.php" );
$afiliacao = $config->get( "cielo_afiliacao" );
$chave = $config->get( "cielo_chave" );
$modo = $config->get( "cielo_modo" );
$juros = $config->get( "cielo_juros" );
$desconto = $config->get( "cielo_desconto" );
$tipojuros = $config->get( "cielo_par" );
$semjurosate = $config->get( "cielo_sem" );
$getovalor = TotalPedidoCielo( $db, $itemId );
$valorreal = number_format( $getovalor, 2, "", "" );
$key_string = $config->get( "cielo_serial" );
$remote_auth = "df08acba4ec3";
$key_location = "key.php";
$key_age = 604800;
$resultado = new verificarcielo( $key_string, $remote_auth, $key_location, $key_age );
switch ( $resultado->result )
{
case 0 :
exit( "<br>Impossivel de ler o arquivo - - De permicao de escrita (777) na pasta addons/newsletter/chaves/" );
break;
case 2 :
exit( "<br>SHA1 hash incorreto." );
break;
case 3 :
exit( "<br>MD5 hash incorreto." );
break;
case 4 :
exit( "<br>Erro ao salvar licensa local - De permicao de escrita (777) na pasta do modulo usado." );
break;
case 5 :
exit( "<br>Seu tempo de testes acabou - contato: suportedaloja@gmail.com<br>Vendas: www.loja5.com.br" );
break;
case 6 :
exit( "<br>Você não está autorizado a executar este programa - contato: suportedaloja@gmail.com<br>Vendas: www.loja5.com.br" );
break;
case 7 :
exit( "<br>Você não está autorizado a executar este programa - contato: suportedaloja@gmail.com<br>Vendas: www.loja5.com.br" );
break;
case 8 :
exit( "<br>Você não está autorizado a executar este programa - contato: suportedaloja@gmail.com<br>Vendas: www.loja5.com.br" );
break;
case 9 :
exit( "<br>Você não está autorizado a executar este programa - contato: suportedaloja@gmail.com<br>Vendas: www.loja5.com.br" );
break;
case 10 :
exit( "<br>Não foi possÃvel abrir o arquivo para escrita." );
break;
case 11 :
exit( "<br>Não foi possÃvel escrever no arquivo." );
}
if ( $tipocc == "A" && 0 < $desconto )
{
$vald = $getovalor / 100 * $desconto;
$valor = number_format( $getovalor - $vald, 2, "", "" );
}
else
{
$valor = $valorreal;
}
if ( $modo == 1 )
{
$urlvisa = TESTE;
}
else
{
$urlvisa = PRODUCAO;
}
define( "ENDERECO", $urlvisa );
$Pedido = new Pedido( );
$Pedido->formaPagamentoBandeira = $op;
if ( $tipocc != "A" && $parcela != "1" )
{
$Pedido->formaPagamentoProduto = $tipocc;
$Pedido->formaPagamentoParcelas = $parcela;
}
else
{
$Pedido->formaPagamentoProduto = $tipocc;
$Pedido->formaPagamentoParcelas = 1;
}
$Pedido->dadosEcNumero = $afiliacao;
$Pedido->dadosEcChave = $chave;
$Pedido->capturar = "false";
$Pedido->autorizar = $autorizar;
$Pedido->dadosPedidoNumero = $itemId;
$Pedido->dadosPedidoValor = $valor;
$Pedido->urlRetorno = $urls."/lib/cielo/cupom.php?id=".base64_encode( $itemId );
$objResposta = $Pedido->RequisicaoTransacao( false );
if ( !empty( $objResposta->tid ) )
{
$Pedido->tid = $objResposta->tid;
$Pedido->pan = $objResposta->pan;
$Pedido->status = $objResposta->status;
$urlAutenticacao = "url-autenticacao";
$Pedido->urlAutenticacao = $objResposta->$urlAutenticacao;
$tid = $objResposta->tid;
$query = $db->query( "SELECT COUNT(id) as total FROM `cielo` WHERE pedido ='".$itemId."'" );
$total = $query->rows;
if ( $total[0]['total'] == 0 )
{
$sql = "INSERT INTO `cielo` (`id` ,`pedido` ,`valor` ,`tid` ,`auth` ,`data`,`cc`) VALUES (\r\nNULL , '".$itemId."', '".$valor."', '".$tid."', '".$hash."', '".time( )."', '".$op."');";
@$db->query( @$sql );
}
else if ( 1 <= $total[0]['total'] )
{
@$db->query( @"UPDATE `cielo` SET valor=\"".@$valor."\",tid=\"".@$tid."\",auth=\"".@$hash."\",data=\"".@time( )."\",cc=\"".@$op."\" WHERE pedido =\"".@$itemId."\"" );
}
echo "<script type=\"text/javascript\">\r\n //window.opener.location.href=\"".$urlsredir."\";\r\n window.location.href=\"".$Pedido->urlAutenticacao."\";\r\n </script>";
}
echo "Ocorreu um erro ao solititar o pagamento, verifique se o ambiente esta correto para a afiliacao usada e se a afiliacao e chave usada estao corretas.<br>Log:</br>";
print_r( $objResposta );
echo "\r\n";
?>
|
|
|
|
|
|
|
|
|
|
Posted: Fri May 17, 2013 8:37 pm |
|
|
payback_boy |
Beginner |
|
|
Joined: May 17, 2013 |
Posts: 2 |
|
|
|
|
|
|
|
Hi guy! thanks a lot. Only 3 issues, but i can bypass this |
|
|
|
|
www.waraxe.us Forum Index -> PHP script decode requests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
All times are GMT
Page 1 of 1
|
|
|
Powered by phpBB © 2001-2008 phpBB Group
|
|
|
|
|
|