Skip to content

Self-hosted OSINT exposure checker — is your email, username, phone or password leaked? Keyless sources: breaches, infostealer logs, COMB credentials, HIBP k-anonymity, 200-platform username grid. Docker one-command install, no API keys, no AI, Apache-2.0.

sync(ec): portable product UA - platform vs standalone identity

RanaKhan773e08021ab305
diff --git a/app/Modules/Osint/Sources/CrtShSource.php b/app/Modules/Osint/Sources/CrtShSource.php
index 082f865..30b2a57 100644
--- a/app/Modules/Osint/Sources/CrtShSource.php
+++ b/app/Modules/Osint/Sources/CrtShSource.php
@@ -62,7 +62,7 @@ class CrtShSource implements OsintSource
'headers' => [
'Accept' => 'application/json',
// crt.sh intermittently 502s generic bot UAs; identify honestly.
- 'User-Agent' => 'Exposure-Check-OSINT/1.8 (+https://github.com/RanaKhan77/Exposure-Check-OSINT)',
+ 'User-Agent' => $this->productUa(),
],
],
[
@@ -71,12 +71,26 @@ class CrtShSource implements OsintSource
'url' => self::CERTSPOTTER_URL . '?domain=' . urlencode($domain) . '&include_subdomains=true&expand=dns_names',
'headers' => [
'Accept' => 'application/json',
- 'User-Agent' => 'Exposure-Check-OSINT/1.8 (+https://github.com/RanaKhan77/Exposure-Check-OSINT)',
+ 'User-Agent' => $this->productUa(),
],
],
];
}
+ /**
+ * UA that names the product actually making the request: the 2mny platform
+ * in production, Exposure-Check-OSINT in the standalone repo. Same file
+ * ships in both trees (W118), so the sync stays drift-free.
+ */
+ private function productUa(): string
+ {
+ if (class_exists(\App\Services\GitHubTokenProvider::class)) {
+ return '2mny-trace/1.0 (+https://2mny.com)';
+ }
+
+ return 'Exposure-Check-OSINT/1.8 (+https://github.com/RanaKhan77/Exposure-Check-OSINT)';
+ }
+
public function parse(string $type, string $identifier, array $responses): array
{
$identifier = strtolower($identifier);