Files
osint/database/seeders/SourceSeeder.php
T

59 lines
2.0 KiB
PHP
Raw Normal View History

2026-07-20 10:22:05 +03:00
<?php
namespace Database\Seeders;
use App\Models\Source;
use Illuminate\Database\Seeder;
class SourceSeeder extends Seeder
{
/**
* Catalog of free/open-source OSINT tools. `runner` is a display-only
* label; the actual dispatch is App\Osint\RunnerRegistry, keyed by `key`.
*/
public function run(): void
{
$sources = [
[
'key' => 'sherlock',
'name' => 'Sherlock',
'description' => 'Checks a username for presence across 400+ social media and community sites.',
'target_types' => ['username'],
'runner' => 'python:sherlock',
],
[
'key' => 'theharvester',
'name' => 'theHarvester',
'description' => 'Gathers emails, subdomains, and hosts for a domain from public sources (crt.sh, OTX, HackerTarget, CertSpotter, ThreatMiner, RapidDNS, Anubis).',
'target_types' => ['domain'],
'runner' => 'python:theharvester',
],
[
'key' => 'crtsh',
'name' => 'crt.sh',
'description' => 'Certificate transparency log search, used to enumerate subdomains for a domain.',
'target_types' => ['domain'],
'runner' => 'http:crtsh',
],
[
'key' => 'whois',
'name' => 'WHOIS',
'description' => 'Domain registration lookup (registrar, dates, name servers).',
'target_types' => ['domain'],
'runner' => 'python:whois',
],
[
'key' => 'ip-api',
'name' => 'ip-api.com',
'description' => 'Free IP geolocation lookup.',
'target_types' => ['ip'],
'runner' => 'http:ip-api',
],
];
foreach ($sources as $source) {
Source::updateOrCreate(['key' => $source['key']], $source);
}
}
}