Quote:
|
Originally Posted by sde
so you are just obsfucating function names?
|
I obfuscate function names, variables, classes, strings, numbers, file names, define(), require_once() and include() and so on.
Here is class obfuscated with ROPE:
class _f494a5740f6f626d {
var $_d5af1f610a12434c;
var $_cbd3e5f683ece543 = "[";
var $_5bcd1aafb4f0b0ae = "]";
var $_9557b12de1a4b9e2 = ">";
var $_4d23e841d8e88041;
var $_8e1db4d207d5a824;
var $_0382a6dd992239d4;
var $_3d8abf7d80270918;
var $_b915dcba1566493b;
var $_f288d1412bd71bd3;
var $_66e64f6c3677d0c5;
var $_4c3ca7e2ce5550f1;
var $_a6130a21d7d578d8;
var $_d777f385d3dfec88;
function _f494a5740f6f626d()
{
$_d777f385d3dfec88 = array();
$this->_6266ee937d97f812();
}
function _37f0136aa3ffaf14()
{
}
function _6266ee937d97f812()
{
$this->_8e1db4d207d5a824 = 0x0;
$this->_0382a6dd992239d4 = 0x0;
$this->_3d8abf7d80270918 = 0x0;
$this->_a6130a21d7d578d8 = 0x0;
}
function _daeeeba9b4a4c5eb($_c6e0b8a9c15224a8, $_063c1608d6e0baf8)
{
$this->_d777f385d3dfec88[$_c6e0b8a9c15224a8] = $_063c1608d6e0baf8;
}
function _e40063e25753005c($_45cffe084dd3d20d)
{
$_e0bdcbddccca4d66 = strpos($_45cffe084dd3d20d, $this->_cbd3e5f683ece543, $this->_8e1db4d207d5a824);
if ($_e0bdcbddccca4d66 === false)return 0x0;
$this->_0382a6dd992239d4 = $_e0bdcbddccca4d66;
$_e0bdcbddccca4d66 = strpos($_45cffe084dd3d20d, $this->_5bcd1aafb4f0b0ae, $this->_8e1db4d207d5a824 + $this->_8e1db4d207d5a824 + $this->_0382a6dd992239d4);
if ($_e0bdcbddccca4d66 === false)return 0x0;
$this->_3d8abf7d80270918 = $_e0bdcbddccca4d66;
$_a86c157ee9713c34 = $this->_8e1db4d207d5a824;
$_6c4ce156d33384c5 = 0x64;
while (0x1) {
$_e0bdcbddccca4d66 = strpos($_45cffe084dd3d20d, $this->_cbd3e5f683ece543, $_a86c157ee9713c34);
if ($_e0bdcbddccca4d66 === false)break;
if ($_e0bdcbddccca4d66 >= $this->_3d8abf7d80270918)break;
$_a86c157ee9713c34 = $_e0bdcbddccca4d66 + 0x1;
$_6c4ce156d33384c5--;
if ($_6c4ce156d33384c5 == 0x0)break;
}
if ($_a86c157ee9713c34) {
$_a86c157ee9713c34--;
$this->_0382a6dd992239d4 = $_a86c157ee9713c34;
} else $this->_8e1db4d207d5a824 = $this->_3d8abf7d80270918;
$this->_b915dcba1566493b = substr($_45cffe084dd3d20d, $this->_0382a6dd992239d4 + 0x1, $this->_3d8abf7d80270918 - $this->_0382a6dd992239d4-0x1);
return 0x1;
}
function _50cca126108b8c44()
{
$this->_f288d1412bd71bd3 = 0x0;
$this->_4c3ca7e2ce5550f1 = "";
$_d801aa532c1cec3e = strpos($this->_b915dcba1566493b, $this->_9557b12de1a4b9e2);
if ($_d801aa532c1cec3e)$this->_4c3ca7e2ce5550f1 = substr($this->_b915dcba1566493b, 0x0, $_d801aa532c1cec3e);
else {
$this->_4c3ca7e2ce5550f1 = trim($this->_b915dcba1566493b);
return 0x0;
}
$this->_66e64f6c3677d0c5 = split("\x7c", substr($this->_b915dcba1566493b, $_d801aa532c1cec3e + 0x1));
$this->_f288d1412bd71bd3 = sizeof($this->_66e64f6c3677d0c5);
return $this->_f288d1412bd71bd3;
}
function _72f06f30e2877a2d()
{
$_4a88417b3d0170d7 = $this->_d777f385d3dfec88[$this->_4c3ca7e2ce5550f1];
if ($this->_f288d1412bd71bd3) {
$_2942a04780e223b2 = 0x1;
while ($_2942a04780e223b2 < 0x32) {
$_b8dc71df23110196 = "\x5f\x70" . $_2942a04780e223b2 . "\x5f";
if (strstr($_4a88417b3d0170d7, $_b8dc71df23110196)) {
$_4a88417b3d0170d7 = str_replace($_b8dc71df23110196, $this->_66e64f6c3677d0c5[$_2942a04780e223b2-0x1], $_4a88417b3d0170d7);
} else {
break;
}
$_2942a04780e223b2++;
}
} else {
}
return $_4a88417b3d0170d7;
}
function _c4d1eb36b22d1972($_35ed7e9f07f740ab)
{
$_81ff09422ad9d637 = 0x2710;
$this->_d777f385d3dfec88 = array();
$_6eba1e1e34327985 = fopen ($_35ed7e9f07f740ab, "\x72");
if ($_6eba1e1e34327985) {
while (!feof ($_6eba1e1e34327985) && $_81ff09422ad9d637--) {
$_cf32fb218dd531e2 = fgets($_6eba1e1e34327985, 0x1000);
if ($_cf32fb218dd531e2) {
$_e0bdcbddccca4d66 = strpos($_cf32fb218dd531e2, "\x3d");
$_a8db4c996d8ed828 = trim(substr($_cf32fb218dd531e2, 0x0, $_e0bdcbddccca4d66));
$this->_d777f385d3dfec88[$_a8db4c996d8ed828] = trim(substr($_cf32fb218dd531e2, $_e0bdcbddccca4d66 + 0x1));
}
}
fclose ($_6eba1e1e34327985);
}
}
function _1407b18c5a9dd810($_45cffe084dd3d20d)
{
$this->_6266ee937d97f812();
while (0x1) {
if ($this->_e40063e25753005c($_45cffe084dd3d20d)) {
if (!$this->_50cca126108b8c44()) {
} else {
}
} else break;
$_a6130a21d7d578d8 = $this->_72f06f30e2877a2d();
$_a1585a864d9e6762 = substr($_45cffe084dd3d20d, 0x0, $this->_0382a6dd992239d4);
$_a1585a864d9e6762 .= $_a6130a21d7d578d8;
$_a1585a864d9e6762 .= substr($_45cffe084dd3d20d, $this->_3d8abf7d80270918 + 0x1);
$_45cffe084dd3d20d = $_a1585a864d9e6762;
}
$_45cffe084dd3d20d = str_replace("\x7b\x6f\x7d", $this->_cbd3e5f683ece543, $_45cffe084dd3d20d);
$_45cffe084dd3d20d = str_replace("\x7b\x63\x7d", $this->_5bcd1aafb4f0b0ae, $_45cffe084dd3d20d);
return $_45cffe084dd3d20d;
}
function _455b637e1af9c8c0(&$_582dec943ff7b743, $_a08769cdcb26674c)
{
$_582dec943ff7b743[$_a08769cdcb26674c][_54e57f26c5bf6036] = $this->_1407b18c5a9dd810($_582dec943ff7b743[$_a08769cdcb26674c][_54e57f26c5bf6036]);
}
}
Once you've worked out this one, you have another 45 to crack the application.