# CoreFiles
> The original files of every Joomla and WordPress release, run by mySites.guru. Free, no API key, read-only GET requests.
Use it to tell whether a file on a Joomla or WordPress site is an unmodified core file, which release it came from, and what changed between releases. Hash the site's files where they are and send only the hashes; never upload a site's files.
Base URL: https://corefiles.mysites.guru
Platforms: joomla, wordpress. Versions as released, for example 5.4.0, 6.2.0-rc1, 7.1.4.
Add ?format=json to a page URL (/lookup, /pretty, /folder, /history, /diff, /stats) for the same data as JSON.
## Look up a file by its hash
GET /lookup/{md5 or sha256}?format=json&name={file name}
Lists every release and path that has this content. No matches means it is not a core file in any stored release. With name, "named" lists core files that have that file name, so you can fetch the original and compare.
## Read a core file
GET /raw/{platform}/{version}/{path} the file's bytes
GET /stat/{platform}/{version}/{path} md5, sha1, sha256 and size as JSON
GET /history/{platform}/{path}?format=json the releases where that file changed
## Compare releases
GET /diff/{platform}/{from}/{to}?format=json added, removed and changed files
GET /diff/{platform}/{from}/{to}/{path}?format=text a unified diff of one file
## Check a whole site
GET /hashes/{platform}/{version}/plain
Every core file in that release as path<TAB>md5. Hash the site's files and compare: a different md5 means a modified core file, and a file missing from the list is not core.
## Where a file's bytes came from
GET /provenance/{platform}
Every path any stable release shipped, one per line as path<TAB>md5:first:last[,md5:first:last...]. first and last are positions in the "#releases" line (oldest first), and a run ends where a release lacks the path. Lines starting with / are folders: /folder<TAB>first:last[,...] are the releases that ship a file directly in that folder. The "#set" line names the release set: add ?set={that value} and the answer is cached for good.
## Reading the answers
A 404 with X-Corefiles-Release: present means the path is not in that release, so the file is not core.
A 404 with X-Corefiles-Release: missing means that release is not stored yet. Treat the answer as unknown, never as "not core". New releases are added within the hour.
GET /releases.json lists every stored release.
Paste it into Claude, ChatGPT or Cursor. Agents can also read it at /llms.txt. On a lookup, file, history or compare page, Copy for your AI agent adds what that page shows.
restore_finalisation.php37 lines, 1,976 bytes, from Joomla_4.1.0-alpha1-Alpha-Full_Package.zip
<?php
/**
* @package Joomla.Administrator
* @subpackage com_joomlaupdate
*
* @copyright (C) 2016 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*
* IMPORTANT! DO NOT REMOVE THIS FILE.
*
* This file is required for updating from Joomla 3.x and older 4.x versions to 4.0.4
* and later versions.
*
* The reason is that old versions of Joomla use an older version of Joomla Update which is still
* using an old and unmaintained version of Akeeba Restore to extract the update ZIP file. Akeeba
* Restore will always try to include the file restore_finalisation.php at the end of the archive
* extraction to let the just extracted version of Joomla run its post-extraction code which
* removes obsolete files and allows the new version of Joomla to actually load. As a result every
* new version of Joomla which needs to provide an upgrade path from Joomla 3.x or old versions of
* Joomla 4.0 needs to include this file.
*
* This file can be safely removed once a new Joomla version is released which no longer provides an
* update path from Joomla 3.x and older Joomla 4.0 versions. In theory, that would be Joomla 6.0 or
* later.
*
* In practice, this might be sooner. Due to changes scheduled for PHP 9 (still in the planning
* stage at the time of this writing, August 2021) the old version of Akeeba Restore is very likely
* to stop working on newer PHP versions. As a result updating from the old versions of Joomla to
* newer versions of Joomla with a minimum requirement of PHP 9 will not be possible. Therefore this
* file can be removed when a Joomla version with a minimum requirement of PHP 9 will be released,
* even if it nominally supports updating from older Joomla 4.0 versions. These versions will be
* able to update to newer Joomla versions using the CLI updater.
*/
define('_JOOMLA_UPDATE', 1);
require_once __DIR__ . '/finalisation.php';