@extends('layouts.app') @section('title', '滲透測試') @section('content')

滲透測試

@if(session('success'))
{{ session('success') }}
@endif {{-- 工具卡片 --}} @php $toolMeta = [ 'nmap' => ['color'=>'danger', 'icon'=>'bi-ethernet', 'label'=>'Nmap', 'sub'=>'Network Mapper', 'desc'=>'網路埠掃描、服務識別、NSE 漏洞腳本,支援 IP / CIDR / 網域', 'tags'=>['網路','埠掃描','NSE 腳本'], 'badge'=>'本機安裝'], 'nikto' => ['color'=>'warning', 'icon'=>'bi-globe2', 'label'=>'Nikto', 'sub'=>'CIRT.net', 'desc'=>'Web 伺服器深度掃描,HTTP Header 問題、CVE 比對、設定錯誤偵測', 'tags'=>['Web','CVE','HTTP'], 'badge'=>'Docker'], ]; @endphp
@foreach($toolMeta as $tkey => $t) @php $tCounts = $scans->filter(fn($s) => ($s->scanner_type ?? 'nmap') === $tkey); @endphp
{{ $t['label'] }} {{ $t['badge'] }}
{{ $t['sub'] }}

{{ $t['desc'] }}

@foreach($t['tags'] as $tag) {{ $tag }} @endforeach
@endforeach
{{-- 掃描記錄 --}}
掃描記錄
@if($search) @endif
@if($isAdmin)@endif @forelse($scans as $scan) @php $bySev = $scan->summary['by_severity'] ?? []; $modeInfo = $scanModes[$scan->scan_mode] ?? ['label'=>$scan->scan_mode,'icon'=>'bi-circle']; @endphp @if($isAdmin) @endif @empty @endforelse
目標 工具 模式 共享 狀態 C H M L建立者時間
{{ $scan->target }} @if($scan->project)
{{ $scan->project->name }}
@endif
{{ $scan->scannerLabel() }} {{ $modeInfo['label'] }} @if($scan->is_shared) @else @endif @if($scan->status==='done') 完成 @elseif($scan->status==='running') 執行中 @elseif($scan->status==='failed') 失敗 @else 待執行 @endif {{ ($bySev['critical']??0) ?: '·' }} {{ ($bySev['high']??0) ?: '·' }} {{ ($bySev['medium']??0) ?: '·' }} {{ ($bySev['low']??0) ?: '·' }}{{ $scan->creator?->name ?? '—' }}{{ $scan->created_at->format('m-d H:i') }}
@if($scan->status==='done') @endif
@csrf @method('DELETE')
尚無掃描記錄,請點選上方工具卡片開始掃描
@include('partials.send-report-modal') @endsection @push('scripts') @endpush