SMF Support > SMF 2.0.x Support
Errpr: Use of undefined constant c - assumed 'c'
Kindred:
If you were hacked and they altered ANY of your files, it is likely that they dropped backdoor (or multiple) into some hidden, buried directory.
I would suggest replacing **ALL** forum files in **ALL** directories.
Specifically:
save a copy of your Settings.php, as well as your attachments and avatars directories
delete the entire forum tree.
install a fresh copy of the forum files
restore your saved Settings.php file and directories.
reinstall mods and/or themes.
MrPhil:
Your index.template.php file looks very suspicious to me. Between the opening <?php and the normal prologue comments are a bunch of obfuscated code lines with eval(base64_decode()) statements. Legitimate code rarely looks like that... I think it's a hack. Try removing those lines 2 through 9 (keep a copy of the file, just in case). Or, compare it to a known clean backup copy.
Мel:
Kindred
Yes, thank you. But it wasn't a deliberate hack, just an ad trojan on my configuration (it appeared to be flawed, somebody wrote about this kind of problem some time ago). Also, I've made my FTPAccess to recognize only one my IP.
MrPhil
I've replaced it with a new one from that theme.
Kindred:
note: base64 encoding is not used in **ANY** part of SMF, as distributed.
there are several mods (mostly by ADK) which add their copyrights in base64, but this is **BAD** practice, and IMO, any code with the start base64 should be killed with fire and removed from the code as soon as found.
Мel:
Thanks.
Navigation
[0] Message Index
[*] Previous page
Go to full version