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,44 @@
|
||||
<?php
|
||||
|
||||
namespace App\Jobs;
|
||||
|
||||
use App\Models\Finding;
|
||||
use App\Osint\RunnerRegistry;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Foundation\Queue\Queueable;
|
||||
|
||||
class RunFinding implements ShouldQueue
|
||||
{
|
||||
use Queueable;
|
||||
|
||||
public int $tries = 1;
|
||||
|
||||
public function __construct(
|
||||
public readonly int $findingId,
|
||||
) {
|
||||
}
|
||||
|
||||
public function handle(RunnerRegistry $registry): void
|
||||
{
|
||||
$finding = Finding::with(['target', 'source'])->findOrFail($this->findingId);
|
||||
|
||||
$finding->update(['status' => 'running']);
|
||||
|
||||
try {
|
||||
$result = $registry->resolve($finding->source->key)->run($finding->target);
|
||||
|
||||
$finding->update([
|
||||
'status' => 'completed',
|
||||
'raw_payload' => $result->raw,
|
||||
'summary' => $result->summary,
|
||||
'ran_at' => now(),
|
||||
]);
|
||||
} catch (\Throwable $e) {
|
||||
$finding->update([
|
||||
'status' => 'failed',
|
||||
'error' => $e->getMessage(),
|
||||
'ran_at' => now(),
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user