1 2 3 4 5 6 7 8 9 10 11 12 13 |
#Buscar los últimos dorks en https://www.exploit-db.com/google-hacking-database/ (Invoke-WebRequest 'https://www.exploit-db.com/google-hacking-database/').AllElements | %{$_.href | Select-String https://www.exploit-db.com/ghdb/} | %{ #Para cada enlace obtener el contenido del dork (where class "l-titlebar-h i-cf") $buscar=((Invoke-WebRequest $_.tostring()).AllElements | Where class -eq "l-titlebar-h i-cf").outerText $buscar $url='https://www.google.es/search?q='+$buscar $url #Buscar en Google el dork ((Invoke-WebRequest $url).AllElements | Where Class -eq "g").outerText | %{ Start-Sleep -Seconds 5 $_ } } |