PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
bruceg
Forum Contributor
Posts: 174 Joined: Wed Mar 16, 2005 11:07 am
Location: Morrisville, NC
Contact:
Post
by bruceg » Tue Nov 08, 2005 10:07 pm
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;?>
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Tue Nov 08, 2005 10:26 pm
the code that's in the encoded data... it's being run through eval() ... it has the error..
bruceg
Forum Contributor
Posts: 174 Joined: Wed Mar 16, 2005 11:07 am
Location: Morrisville, NC
Contact:
Post
by bruceg » Tue Nov 08, 2005 10:32 pm
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
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Tue Nov 08, 2005 11:08 pm
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....
bruceg
Forum Contributor
Posts: 174 Joined: Wed Mar 16, 2005 11:07 am
Location: Morrisville, NC
Contact:
Post
by bruceg » Tue Nov 08, 2005 11:36 pm
it would probably help if I knew what to look for. Is T_DOUBLE_ARROW generally anything in particular?
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Tue Nov 08, 2005 11:59 pm
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...