Mostrando entradas con la etiqueta checkurl. Mostrar todas las entradas
Mostrando entradas con la etiqueta checkurl. Mostrar todas las entradas

viernes, 28 de julio de 2023

Security. OSINT. Tools. Check URLs

Purpose

Extract information from a link.

It is impressive the information that comes to extract in such a short time.

Steps



One example




by GoN | Published: Jul 28 2023 | Last Updated:

jueves, 9 de abril de 2020

WINDOWS. PS. Check URL list connections and response times

Purpose


How to verifly a URL list connections and response times

Steps

Command:


[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

$script:Report = @()

function Get-UrlStatusCode([uri] $Url) {
    $datetime = Get-Date  
    $HostName = $Url.Authority
    try {
        $ipAddress = [System.Net.Dns]::GetHostAddresses($HostName)[0].IPAddressToString; 
    }
    catch {
        $ipAddress = "NOT RESOLVED"
    }

    $timings = Measure-Command -Expression {
        try {
            $output = Invoke-WebRequest -Uri $Url -ErrorAction SilentlyContinue -MaximumRedirection 20 -Method GET -TimeoutSec 15;
        }
        catch {
            $output = $_.Exception.Response;
        }
    }

    $checkObject = New-Object PSObject;
    #$checkObject | Add-Member -MemberType NoteProperty -Name 'StatusCode' -Value $output.StatusCode;
    #$checkObject | Add-Member -MemberType NoteProperty -Name 'StatusDescription' -Value $output.StatusDescription;
    $checkObject | Add-Member -MemberType NoteProperty -Name 'HostName' -Value $ipAddress;
    $checkObject | Add-Member -MemberType NoteProperty -Name 'TimeStamp' -Value $datetime.ToUniversalTime();
    $checkObject | Add-Member -MemberType NoteProperty -Name 'Time' -Value $timings;
    $checkObject | Add-Member -MemberType NoteProperty -Name 'URL' -Value $Url;
    $script:Report += $checkObject;
    Write-Host "$($Url) done in $($timings)"
}

#URL to check:

Get-UrlStatusCode "https://portal.azure.com"
Get-UrlStatusCode "https://dev.azure.com"
Get-UrlStatusCode "https://www.microsoft.com"
Get-UrlStatusCode "https://www.nike.com"

$script:Report | ForEach-Object { [PSCustomObject]$_ } |  Format-Table -AutoSize


Save this code in a file.ps1 and execute

Check at Windows 
by GoN | Published: April 9, 2020 | Last Updated:

jueves, 24 de diciembre de 2015

Como hacer un "ping" o monitorizar un texto en una pagina Web


Ha veces nos interesa monitorizar o saber si cierto link está funcionando o si aparece cierto texto en alguna página web. Con comando checkurl podemos controlar esto.




Su funcionamiento es muy sencillo:







Si añadimos si contiene una cadena de texto específico:











Esta herramienta es de EVENTSENTRY y la podemos descargar en: http://www.eventsentry.com/sysadmintools



GoN. Dic 2015