Evidence

Self-identifying JSON Schema document config.json · lines 1–5
1{
2 "$schema": "http://json-schema.org/draft-07/schema#",
3 "app_module": "abx_plugins.plugins.search_backend_sonic.app",
4 "search_order": 100,
5 "search_fallback": true,
Archive-related identifier text config.json · lines 19–21
19:14… sonic@1.7.4"
20 ],
21 "install": "\"$ABXPKG_PYTHON\" - <<'PY'\nimport hashlib\nimport os\nimport platform\nimport shutil\nimport sys\nimport tarfile\nimport urllib.request\nfrom pathlib import Path\n\nif not sys.platform.startswith('linux') or platform.machine().lower() not in {'x86_64', 'amd64'}:\n raise SystemExit('The prebuilt Sonic provider supports Linux x86_64 only')\nurl = 'https://github.com/valeriansaliou/sonic/releases/download/v1.7.4/v1.7.4-x86_64-gnu.tar.gz'\nexpected = '81b1d017992ffc9957dc27f7f6c78fd2cf1a4e09c89295dc8b15d15ded01b8ae'\ninstall_root = Path(os.environ['INSTALL_ROOT'])\nbin_dir = Path(os.environ['BIN_DIR'])\ninstall_root.mkdir(parents=True, exist_ok=True)\nbin_dir.mkdir(parents=True, exist_ok=True)\narchive_path = install_root / '.sonic.tar.gz.tmp'\nstaging_path = bin_dir / '.sonic.tmp'\ntry:\n digest = hashlib.sha256()\n request = urllib.request.Request(url, headers={'User-Agent': 'abxpkg sonic bootstrap/1.7.4'})\n with urllib.request.urlopen(request, timeout=120) as response, archive_path.open('wb') as target:\n for chunk in iter(lambda: response.read(1024 * 1024), b''):\n digest.update(chunk)\n target.write(chunk)\n if digest.hexdigest() != expected:\n raise RuntimeError(f'Refusing {url}: expected SHA256 {expected}, got {digest.hexdigest()}')\n with tarfil …
Python sets executable file permissions config.json · line 21
21:1798… staging_path.open('wb') as target:\n shutil.copyfileobj(source, target)\n staging_path.chmod(0o755)\n os.replace(staging_path, bin_dir / 'sonic')\nfinally:\n archive_path.unlink(missing_ok=True)\n staging_path.unlink( …
JSON-like home or current-directory field config.json · lines 37–45
37:20… em_users": {
38 "sonic": {
39 "gid": "sonic",
40 "home": "/var/lib/sonic",
41 "shell": "/usr/sbin/nologin",
⋯4 lines
Declares Python package license file METADATA · lines 8–14
8:59… x-plugins/issues
9Author: Nick Sweeting, ArchiveBox
10License: MIT
11License-File: LICENSE
12Keywords: archivebox,hooks,plugins,scraping,web-archiving
13Classifier: Environment :: Console
14Classifier: Intended Audience :: D …

Showing the top 5 files — 7 more files (150 regions) not shown.

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.