php encode/obfuscate

General discussions related to php

Moderators: macek, egami, gesf

Post Reply
seandisanti
php-forum Fan User
php-forum Fan User
Posts: 973
Joined: Mon Oct 01, 2012 12:32 pm

Re: php encode/obfuscate

Post by seandisanti » Wed Feb 27, 2013 2:02 pm

if you change the only eval statement to be an echo statement, it tells you that what it's trying to execute is

Code: Select all

eval(gzinflate(str_rot13(base64_decode($f))));
so you take that and turn it into an echo also; and you get....

Code: Select all

* * * * * @summary IRCI Political CRM * @description Security encryption function * @version 1.3.0 * @file pencode.php * @author Ilios Resources and Cosultancy, Inc. (http://ilios-resources.com) * @contact http://ilios-resources.com/contactus.php * * @copyright Copyright 2012 Ilios Resources and Cosultancy, Inc., all rights reserved. * * This source file is free software, under either the GPL v2 license or a * BSD style license, available at: * eula.txt * eula.pdf * * * For details please refer to: http://ilios-resources.com * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ function php_decrypt($sValue, $sSecretKey) { return rtrim( mcrypt_decrypt( MCRYPT_RIJNDAEL_256, $sSecretKey, base64_decode($sValue), MCRYPT_MODE_ECB, mcrypt_create_iv( mcrypt_get_iv_size( MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB ), MCRYPT_RAND ) ), "\0" ); } function php_encrypt($sValue, $sSecretKey) { return rtrim( base64_encode( mcrypt_encrypt( MCRYPT_RIJNDAEL_256, $sSecretKey, $sValue, MCRYPT_MODE_ECB, mcrypt_create_iv( mcrypt_get_iv_size( MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB ), MCRYPT_RAND) ) ), "\0" ); } function tokenf($algo=' adler32 ', $bsixfour=' ODc0NzUzNTQ2Ng== ', $bool=false) { return strtoupper(hash(trim($algo), trim($bsixfour), $bool)); } function machineid() { $zv='snefru'; $v='tiger128,4'; $data = hash($zv, gethostbyaddr($_SERVER['REMOTE_ADDR']), true); return strtoupper(hash($v, $data, false)); }
obfuscation is not security, anyone who tells you different is trying to sell you something.

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests