|
| 1 | +--- |
| 2 | +permalink: /404.html |
| 3 | +--- |
| 4 | +<!DOCTYPE html> |
| 5 | +<html lang="en"> |
| 6 | +<head> |
| 7 | + <meta charset="UTF-8"> |
| 8 | + <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 9 | + <title>Page Not Found — The Sleuth Kit Wiki</title> |
| 10 | + <link rel="preconnect" href="https://fonts.googleapis.com"> |
| 11 | + <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> |
| 12 | + <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet"> |
| 13 | + <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet"> |
| 14 | + <link href="/assets/css/style.css" rel="stylesheet"> |
| 15 | +</head> |
| 16 | +<body> |
| 17 | + |
| 18 | +<nav class="navbar navbar-expand-lg navbar-dark" style="background-color: #1c2130;"> |
| 19 | + <div class="container"> |
| 20 | + <a class="navbar-brand fw-semibold" href="/"> |
| 21 | + <span style="color: #3b6fc4;">▲</span> The Sleuth Kit Wiki |
| 22 | + </a> |
| 23 | + <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarMain"> |
| 24 | + <span class="navbar-toggler-icon"></span> |
| 25 | + </button> |
| 26 | + <div class="collapse navbar-collapse" id="navbarMain"> |
| 27 | + <ul class="navbar-nav ms-auto"> |
| 28 | + <li class="nav-item"><a class="nav-link" href="/">Home</a></li> |
| 29 | + <li class="nav-item"><a class="nav-link" href="/The-Sleuth-Kit/">The Sleuth Kit</a></li> |
| 30 | + <li class="nav-item"><a class="nav-link" href="/Autopsy/">Autopsy</a></li> |
| 31 | + <li class="nav-item"> |
| 32 | + <a class="nav-link" href="https://sleuthkit.org" target="_blank" rel="noopener">sleuthkit.org ↗</a> |
| 33 | + </li> |
| 34 | + </ul> |
| 35 | + </div> |
| 36 | + </div> |
| 37 | +</nav> |
| 38 | + |
| 39 | +<div class="container py-5"> |
| 40 | + <div class="row justify-content-center"> |
| 41 | + <div class="col-lg-7"> |
| 42 | + |
| 43 | + <!-- State: checking for redirect (hidden after JS runs) --> |
| 44 | + <div id="state-checking"> |
| 45 | + <p class="text-muted small">Checking for redirect…</p> |
| 46 | + </div> |
| 47 | + |
| 48 | + <!-- State: redirect found --> |
| 49 | + <div id="state-redirect" style="display:none;"> |
| 50 | + <div class="wiki-note mb-4"> |
| 51 | + <strong>Redirecting…</strong> |
| 52 | + Found a matching page at <strong><a id="redirect-url" href="#"></a></strong>. |
| 53 | + <span id="countdown"></span> |
| 54 | + </div> |
| 55 | + <p class="text-muted small"> |
| 56 | + Old URL detected: <code id="old-url-display"></code> |
| 57 | + </p> |
| 58 | + </div> |
| 59 | + |
| 60 | + <!-- State: not found --> |
| 61 | + <div id="state-not-found" style="display:none;"> |
| 62 | + <h1 class="page-title mb-4">Page Not Found</h1> |
| 63 | + |
| 64 | + <p class="lead"> |
| 65 | + The page you requested doesn't exist on this wiki. |
| 66 | + </p> |
| 67 | + |
| 68 | + <div id="suggested-title-block" style="display:none;" class="wiki-note mb-4"> |
| 69 | + Looking for <strong><em><span id="suggested-title"></span></em></strong>? |
| 70 | + That page wasn't found in this archive. It may have been removed or never migrated. |
| 71 | + </div> |
| 72 | + |
| 73 | + <p>A few things to try:</p> |
| 74 | + <ul> |
| 75 | + <li><a href="/">Browse all pages</a> — the full page index, organized by category</li> |
| 76 | + <li>Check the current docs at |
| 77 | + <a href="https://sleuthkit.org/sleuthkit/docs/" target="_blank" rel="noopener">sleuthkit.org/sleuthkit/docs/</a> |
| 78 | + or |
| 79 | + <a href="https://sleuthkit.org/autopsy/docs/" target="_blank" rel="noopener">sleuthkit.org/autopsy/docs/</a> |
| 80 | + </li> |
| 81 | + <li>Search on <a href="https://github.com/sleuthkit" target="_blank" rel="noopener">GitHub</a></li> |
| 82 | + </ul> |
| 83 | + |
| 84 | + <div class="mt-5 text-center"> |
| 85 | + <a href="/" class="btn btn-primary px-4">Go to Home Page</a> |
| 86 | + </div> |
| 87 | + </div> |
| 88 | + |
| 89 | + </div> |
| 90 | + </div> |
| 91 | +</div> |
| 92 | + |
| 93 | +<footer class="mt-5 py-4" style="background-color:#1c2130;color:#aab4c8;"> |
| 94 | + <div class="container"> |
| 95 | + <div class="row"> |
| 96 | + <div class="col-md-6"> |
| 97 | + <p class="mb-1 small"> |
| 98 | + <strong style="color:#fff;">The Sleuth Kit Wiki</strong> — |
| 99 | + Archived documentation for The Sleuth Kit and Autopsy. |
| 100 | + </p> |
| 101 | + <p class="mb-0 small"> |
| 102 | + For current docs visit <a href="https://sleuthkit.org" style="color:#3b6fc4;">sleuthkit.org</a>. |
| 103 | + </p> |
| 104 | + </div> |
| 105 | + <div class="col-md-6 text-md-end mt-3 mt-md-0"> |
| 106 | + <p class="mb-0 small">Content originally from wiki.sleuthkit.org</p> |
| 107 | + </div> |
| 108 | + </div> |
| 109 | + </div> |
| 110 | +</footer> |
| 111 | + |
| 112 | +<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script> |
| 113 | +<script> |
| 114 | +(function () { |
| 115 | + 'use strict'; |
| 116 | + |
| 117 | + // --------------------------------------------------------------------------- |
| 118 | + // Redirect map: old wiki title (lowercase) → canonical Jekyll slug |
| 119 | + // Covers all #REDIRECT pages from the original export. |
| 120 | + // --------------------------------------------------------------------------- |
| 121 | + var REDIRECT_MAP = { |
| 122 | + 'autopsy 3': 'Autopsy', |
| 123 | + 'autopsy 3 data flow': 'Autopsy-3-Nodes-and-Data-Flow', |
| 124 | + 'autopsy forensic browser': 'Autopsy', |
| 125 | + 'books on tsk': 'Books-and-Courses', |
| 126 | + 'books and courses on tsk': 'Books-and-Courses', |
| 127 | + 'data units': 'Data-unit', |
| 128 | + 'dcalc': 'Blkcalc', |
| 129 | + 'dcat': 'Blkcat', |
| 130 | + "developer's guide": 'TSK-Developers-Guide', |
| 131 | + 'dls': 'Blkls', |
| 132 | + 'documents on using tsk': 'Books-and-Courses', |
| 133 | + 'dstat': 'Blkstat', |
| 134 | + 'ext2/3': 'ExtX', |
| 135 | + 'fragments': 'Fragment', |
| 136 | + "library user's guide": 'TSK-Library-Users-Guide', |
| 137 | + 'library users guide': 'TSK-Library-Users-Guide', |
| 138 | + 'mac-robber output': 'Mactime-output', |
| 139 | + 'metadata address': 'Metadata-Address', |
| 140 | + 'metadata addresses': 'Metadata-Address', |
| 141 | + 'project communication': 'Project-Communication', |
| 142 | + 'sectors': 'Sector', |
| 143 | + 'tsk': 'The-Sleuth-Kit', |
| 144 | + 'timeline': 'Timelines', |
| 145 | + 'tools using tsk': 'Tools-Using-TSK-or-Autopsy' |
| 146 | + }; |
| 147 | + |
| 148 | + // --------------------------------------------------------------------------- |
| 149 | + // Replicate the Python title_to_slug() logic in JavaScript. |
| 150 | + // |
| 151 | + // def title_to_slug(title): |
| 152 | + // slug = title.strip() |
| 153 | + // slug = re.sub(r'[:/]', '-', slug) |
| 154 | + // slug = re.sub(r'\s+', '-', slug) |
| 155 | + // slug = re.sub(r'[^A-Za-z0-9_\-]', '', slug) |
| 156 | + // slug = re.sub(r'-+', '-', slug).strip('-') |
| 157 | + // return slug |
| 158 | + // --------------------------------------------------------------------------- |
| 159 | + function titleToSlug(title) { |
| 160 | + var slug = title.trim(); |
| 161 | + slug = slug.replace(/[:/]/g, '-'); |
| 162 | + slug = slug.replace(/\s+/g, '-'); |
| 163 | + slug = slug.replace(/[^A-Za-z0-9_\-]/g, ''); |
| 164 | + slug = slug.replace(/-+/g, '-').replace(/^-+|-+$/g, ''); |
| 165 | + return slug; |
| 166 | + } |
| 167 | + |
| 168 | + // --------------------------------------------------------------------------- |
| 169 | + // Extract a MediaWiki page title from the current URL. |
| 170 | + // |
| 171 | + // Patterns handled: |
| 172 | + // /index.php?title=Page_Name[&action=...] |
| 173 | + // /index.php/Page_Name |
| 174 | + // /wiki/Page_Name |
| 175 | + // ?title=Page_Name (any path) |
| 176 | + // --------------------------------------------------------------------------- |
| 177 | + function extractWikiTitle() { |
| 178 | + var search = window.location.search; // e.g. "?title=The_Sleuth_Kit&action=edit" |
| 179 | + var pathname = window.location.pathname; // e.g. "/wiki/The_Sleuth_Kit" |
| 180 | + |
| 181 | + // 1. Query-string: ?title=... |
| 182 | + if (search) { |
| 183 | + var params = new URLSearchParams(search); |
| 184 | + var t = params.get('title'); |
| 185 | + if (t) { |
| 186 | + return decodeURIComponent(t).replace(/_/g, ' '); |
| 187 | + } |
| 188 | + } |
| 189 | + |
| 190 | + // 2. Path-based: /wiki/Page_Name or /index.php/Page_Name |
| 191 | + var pathMatch = pathname.match(/^\/(?:wiki|index\.php)\/(.+)$/i); |
| 192 | + if (pathMatch) { |
| 193 | + return decodeURIComponent(pathMatch[1]).replace(/_/g, ' '); |
| 194 | + } |
| 195 | + |
| 196 | + return null; |
| 197 | + } |
| 198 | + |
| 199 | + // --------------------------------------------------------------------------- |
| 200 | + // Resolve a title to a Jekyll URL: |
| 201 | + // 1. Check redirect map (case-insensitive) |
| 202 | + // 2. Fall back to direct slug conversion |
| 203 | + // Returns an absolute path like "/The-Sleuth-Kit/" |
| 204 | + // --------------------------------------------------------------------------- |
| 205 | + function resolveUrl(title) { |
| 206 | + var lower = title.toLowerCase(); |
| 207 | + if (REDIRECT_MAP.hasOwnProperty(lower)) { |
| 208 | + return '/' + REDIRECT_MAP[lower] + '/'; |
| 209 | + } |
| 210 | + var slug = titleToSlug(title); |
| 211 | + if (slug) { |
| 212 | + return '/' + slug + '/'; |
| 213 | + } |
| 214 | + return null; |
| 215 | + } |
| 216 | + |
| 217 | + // --------------------------------------------------------------------------- |
| 218 | + // Show a state, hide the others |
| 219 | + // --------------------------------------------------------------------------- |
| 220 | + function showState(id) { |
| 221 | + ['state-checking', 'state-redirect', 'state-not-found'].forEach(function (s) { |
| 222 | + document.getElementById(s).style.display = (s === id) ? '' : 'none'; |
| 223 | + }); |
| 224 | + } |
| 225 | + |
| 226 | + // --------------------------------------------------------------------------- |
| 227 | + // Main |
| 228 | + // --------------------------------------------------------------------------- |
| 229 | + var title = extractWikiTitle(); |
| 230 | + |
| 231 | + if (title) { |
| 232 | + var targetUrl = resolveUrl(title); |
| 233 | + |
| 234 | + if (targetUrl) { |
| 235 | + // Show redirect state with countdown |
| 236 | + showState('state-redirect'); |
| 237 | + |
| 238 | + var oldDisplay = document.getElementById('old-url-display'); |
| 239 | + var redirectLink = document.getElementById('redirect-url'); |
| 240 | + var countdownEl = document.getElementById('countdown'); |
| 241 | + |
| 242 | + oldDisplay.textContent = window.location.href; |
| 243 | + redirectLink.textContent = targetUrl; |
| 244 | + redirectLink.href = targetUrl; |
| 245 | + |
| 246 | + var secs = 3; |
| 247 | + function tick() { |
| 248 | + countdownEl.textContent = ' Redirecting in ' + secs + '\u2026'; |
| 249 | + if (secs === 0) { |
| 250 | + window.location.replace(targetUrl); |
| 251 | + } else { |
| 252 | + secs--; |
| 253 | + setTimeout(tick, 1000); |
| 254 | + } |
| 255 | + } |
| 256 | + tick(); |
| 257 | + return; // done |
| 258 | + } |
| 259 | + } |
| 260 | + |
| 261 | + // No redirect found — show 404 message |
| 262 | + showState('state-not-found'); |
| 263 | + |
| 264 | + if (title) { |
| 265 | + document.getElementById('suggested-title').textContent = title; |
| 266 | + document.getElementById('suggested-title-block').style.display = ''; |
| 267 | + } |
| 268 | + |
| 269 | +})(); |
| 270 | +</script> |
| 271 | +</body> |
| 272 | +</html> |
0 commit comments