Page 1 of 1

help with parse error

Posted: Tue Nov 08, 2005 10:07 pm
by bruceg
I am getting the following error on line 1

"Parse error: parse error, unexpected T_DOUBLE_ARROW in /hsphere/local/home/bruceg/inspired-evolution.com/isearch2/admin/index.php(2) : eval()'d code(1) : eval()'d code on line 1"

I have downloaded some code off of hotscripts and upload directly from the download, so not sure what could be causing the error.

Any here are the first few lines of the code for the /isearch2/admin/index page

Code: Select all

<?php

$OOO0O0O00=__FILE__;$O00O00O00=__LINE__;$OO00O0000=151204;
eval((base64_decode('JE8wMDBPME8wMD1mb3BlbigkT09PME8wTzAwLCdyYicpO3doaWxlKC0tJE8wME8wME8wMClmZ2V0cygkTzAwME8wTzAwLDEwMjQpO2ZnZXRzKCRPMDAwTzBPMDAsNDA5Nik7JE9PMDBPMDBPMD0oYmFzZTY0X2RlY29kZShzdHJ0cihmcmVhZCgkTzAwME8wTzAwLDM3MiksJ2RUNXhxM1JnRWNoa2FVeksySXdmYlhHV3VDc0Y4cEhNUEppbGVZTG9WUzk0dkJyTzYwTnRtUW4rRHlBWmoxNy89JywnQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLycpKSk7ZXZhbCgkT08wME8wME8wKTs=')));return;?>

Posted: Tue Nov 08, 2005 10:26 pm
by feyd
the code that's in the encoded data... it's being run through eval() ... it has the error..

Posted: Tue Nov 08, 2005 10:32 pm
by bruceg
how do I determine where the error is coming from b/c their are hudrens if no thousands of lines of code. being run through

Posted: Tue Nov 08, 2005 11:08 pm
by feyd
it says right there.. line 1 of the eval'd code..

Code: Select all

$O000O0O00=fopen($OOO0O0O00,'rb');while(--$O00O00O00)fgets($O000O0O00,1024);fgets($O000O0O00,4096);$OO00O00O0=(base64_decode(strtr(fread($O000O0O00,372),'dT5xq3RgEchkaUzK2IwfbXGWuCsF8pHMPJileYLoVS94vBrO60NtmQn+DyAZj17/=','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/')));eval($OO00O00O0);
is the eval'd code.. unfortunately, it is all one line, but you can break that apart into separate lines pretty easily and figure it out from there....

Posted: Tue Nov 08, 2005 11:36 pm
by bruceg
it would probably help if I knew what to look for. Is T_DOUBLE_ARROW generally anything in particular?

Posted: Tue Nov 08, 2005 11:59 pm
by feyd
http://php.net/tokens

Since the eval'd code is loading a file and evaling that, you need to look into what's being run in there too...