I have been through quite a lot of ideas, from testing for /admin/
to looking for cookies. But as far as I can see from the documentation, the admin path can be changed. And a few sites I have known to be osCommerce have not had the cookie I expected set.
Is there a certain file or something I can look for, does the robots.txt almost always contain a certain line? Basically I am looking for the most fool proof solution to identify the two CMS.
3
Answers
I know only Magento, but there is a way to test if a site is a magento.
It work on the vast majority of case.
In magento there are some default repertory that should exist on every magento installation, these directory are forbidden (403) but they exist (not a 404). So just need to test them and you’ll have your answer.
Of course some people can rename these directory (but very very rare) and some other homemade website should have the same naming convention, but it’s more rare if possible).
Just try your webite/app/design/adminhtml/default/default/layout
If you have a 403 it’s a Magento.
Another tip for Magento is the uri of product images, but some extensions can change this. Generally URI are like this :
yourwebsite/media/catalog/product/cache/[0-9A-F]/image/[random Hexadecimal]/x*/y**/myimage.jpg
x* first letter of image name
y* second letter of image name
if image have that name it’s a Magento.
Kind regards,
If you want to test by searching for files/directories, look for
app/code/core/Mage
to test if a website is based on Magento. This directory contains core Magento files and cannot be changed/deleted.For osCommerce you could test for the presences of the actual PHP files:
It might take some time to figure out the correct number of files that is allowed not to be present in the installation.
I guess you could come up with something similar for Magento?