Initial commit: Laravel OSINT platform
Multi-user OSINT investigation tool with owner-controlled per-user and per-group access grants. Includes Sherlock, theHarvester, crt.sh, WHOIS, and ip-api.com collectors wired through a pluggable Runner/queue pipeline, investigation search, and printable/CSV/JSON reporting. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
namespace App\Osint;
|
||||
|
||||
use App\Osint\Runners\CrtShRunner;
|
||||
use App\Osint\Runners\IpApiRunner;
|
||||
use App\Osint\Runners\SherlockRunner;
|
||||
use App\Osint\Runners\TheHarvesterRunner;
|
||||
use App\Osint\Runners\WhoisRunner;
|
||||
|
||||
class RunnerRegistry
|
||||
{
|
||||
/**
|
||||
* Maps a sources.key value to the Runner implementation that handles it.
|
||||
* A source with no entry here (or a null `runner` column) isn't
|
||||
* integrated yet.
|
||||
*
|
||||
* @var array<string, class-string<Runner>>
|
||||
*/
|
||||
private const RUNNERS = [
|
||||
'sherlock' => SherlockRunner::class,
|
||||
'crtsh' => CrtShRunner::class,
|
||||
'whois' => WhoisRunner::class,
|
||||
'ip-api' => IpApiRunner::class,
|
||||
'theharvester' => TheHarvesterRunner::class,
|
||||
];
|
||||
|
||||
public function has(string $sourceKey): bool
|
||||
{
|
||||
return isset(self::RUNNERS[$sourceKey]);
|
||||
}
|
||||
|
||||
public function resolve(string $sourceKey): Runner
|
||||
{
|
||||
if (! $this->has($sourceKey)) {
|
||||
throw new RunnerException("No runner registered for source [{$sourceKey}].");
|
||||
}
|
||||
|
||||
return app(self::RUNNERS[$sourceKey]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user