Configuración Bot de ataque

@if(session('success')) @endif @if(session('error')) @endif

Configuración del Bot

@if( $googleSearches->sum('percentage') > 100 ) @endif @if( $googleSearches->sum('percentage') < 100 ) @endif @foreach ($googleSearches as $search)
@csrf
@endforeach
@csrf
@error('google_search')
{{ $message }}
@enderror
@error('percentage')
{{ $message }}
@enderror
@foreach ($targets as $target)
@error('percentage')
{{ $message }}
@enderror
@csrf
@endforeach
@csrf
@error('percentage')
{{ $message }}
@enderror
@if(isset($forbiddens) && $forbiddens->count() > 0) @foreach ($forbiddens as $target)
@csrf
@endforeach @endif
@csrf
@csrf @if ($attackBotData['is_active'] ?? false) @else @endif
Instrucciones:
  • Añadir los proxys
  • Añadir la/s busqueda/s que realizará el bot en google
  • Introducir los objetivos y el porcentaje de entrada a sus respectivas urls
  • Marcar el estado del bot a activo.
  • Establecer el intervalo de ejecucion del bot en un rango aleatorio en segundos.

Log del bot

Stats

Resumen del día

Aciertos:

Bot detected: {{ $stats['bot_detected'] }}

No encontrados: {{ $stats['not_found'] }}

{{--
Niveles
  • INFO: {{ $stats['levels']['INFO'] }}
  • WARN: {{ $stats['levels']['WARN'] }}
  • ERROR: {{ $stats['levels']['ERROR'] }}
  • OTROS: {{ $stats['levels']['OTHER'] }}
--}}
Top URLs visitadas
@if(count($stats['urls']) > 0)
    @foreach(array_slice($stats['urls'], 0, 5, true) as $url => $count)
  • {{ $url }} {{ $count }}
  • @endforeach
@else

Sin URLs hoy

@endif
Top Dominios
@if(count($stats['domains']) > 0) @foreach(array_slice($stats['domains'], 0, 10, true) as $domain => $count) @endforeach
Dominio Visitas
{{ $domain }} {{ $count }}
@else

Sin dominios hoy

@endif
{{--
Advertencias (WARN)
@if(count($stats['warn_messages']) > 0) @foreach(array_slice($stats['warn_messages'], 0, 10, true) as $msg => $count) @endforeach
Mensaje Veces
{{ $msg }} {{ $count }}
@else

Sin advertencias hoy

@endif
--}}
Resumen por horas
@if(count($summaries) > 0) @foreach($summaries as $summary) @endforeach
Hora keyword pagina ip_proxy country posición_google tiempo user_agent n_acciones porcentaje_objetivo driver
$summary->state == 0, 'bg-green text-white' => $summary->state == 2, 'bg-orange text-white' => $summary->state == 3 ])>{{ $summary->created_at }} $summary->state == 0, 'bg-green text-white' => $summary->state == 2, 'bg-orange text-white' => $summary->state == 3 ])>{{ $summary->keyword }} $summary->state == 0, 'bg-green text-white' => $summary->state == 2, 'bg-orange text-white' => $summary->state == 3 ])> @if(!empty($summary->pagina)) {{ parse_url($summary->pagina, PHP_URL_HOST) ?? $summary->pagina }} @endif $summary->state == 0, 'bg-green text-white' => $summary->state == 2, 'bg-orange text-white' => $summary->state == 3 ])>{{ $summary->ip_proxy }} $summary->state == 0, 'bg-green text-white' => $summary->state == 2, 'bg-orange text-white' => $summary->state == 3 ])>{{ $summary->country }} $summary->state == 0, 'bg-green text-white' => $summary->state == 2, 'bg-orange text-white' => $summary->state == 3 ])>{{ $summary->posicion_google }} $summary->state == 0, 'bg-green text-white' => $summary->state == 2, 'bg-orange text-white' => $summary->state == 3 ])>{{ $summary->tiempo }} $summary->state == 0, 'bg-green text-white' => $summary->state == 2, 'bg-orange text-white' => $summary->state == 3 ])>{{ $summary->user_agent }} $summary->state == 0, 'bg-green text-white' => $summary->state == 2, 'bg-orange text-white' => $summary->state == 3 ])>{{ $summary->n_acciones }} $summary->state == 0, 'bg-green text-white' => $summary->state == 2, 'bg-orange text-white' => $summary->state == 3 ])>{{ $summary->porcentaje_objetivo }} $summary->state == 0, 'bg-green text-white' => $summary->state == 2, 'bg-orange text-white' => $summary->state == 3 ])>{{ $summary->driver }}
@else

Sin datos de resumen por horas hoy

@endif
@endsection @php // Convertimos el array asociativo $stats['urls'] a un array de objetos $topN = 10; // cambia este número si quieres más/menos elementos en el gráfico $objetivos = []; if (!empty($stats['domains'])) { $i = 0; foreach ($stats['domains'] as $domain => $count) { //imprimir $domain $objetivos[] = ['url' => $domain, 'count' => (int)$count]; $i++; if ($i >= $topN) break; } } @endphp @push('scripts') @endpush