Comprobar si está abierto un puerto UDP
Comprobar si está abierto un puerto UDP
while(1) { Get-NetUDPEndpoint | Select-Object LocalAddress,LocalPort | Where-Object {$_.LocalPort -eq "5353"} Start-Sleep -Seconds 5 clear }
View On WordPress
seen from South Korea

seen from United States

seen from Switzerland

seen from United States
seen from Sweden
seen from Malaysia
seen from China
seen from China

seen from Switzerland
seen from China
seen from Switzerland
seen from China
seen from Yemen
seen from Switzerland
seen from China
seen from Malaysia
seen from Switzerland
seen from China

seen from United States
seen from United Kingdom
Comprobar si está abierto un puerto UDP
Comprobar si está abierto un puerto UDP
while(1) { Get-NetUDPEndpoint | Select-Object LocalAddress,LocalPort | Where-Object {$_.LocalPort -eq "5353"} Start-Sleep -Seconds 5 clear }
View On WordPress
Recorrer el segundo nivel de un sitio web, obtener información de todos los enlaces del sitio y añadir la información creando una clase a un array
#Clase Enlace con información sobre el enlace: URL, tamaño y nivel de recorrido class Enlace { $URL $Long $Level Enlace($URL,$Long,$Level) { $this.URL=$URL $this.Long=$Long $this.Level=$Level } } #Iniciar array $myArray = @() #Recorrer el sitio hasta el segundo nivel, almacenando cada información (clase Enlace) en un array $url="http://www.jesusninoc.com" foreach($links in (Invoke-WebRequest…
View On WordPress
Comprobar si está abierto un puerto TCP
while(1) { Get-NetTCPConnection | Select-Object LocalAddress,RemotePort,OwningProcess| Where-Object {$_.RemotePort -eq "443"} Start-Sleep -Seconds 5 clear }
View On WordPress
Utilizar Runspaces en PowerShell
#Crear Runspace #Runspace crear un hilo en el proceso existente $Runspace = [runspacefactory]::CreateRunspace() #Es necesario crear una instancia de PowerShell para ejecutar Runspace $PowerShell = [powershell]::Create() $PowerShell.runspace = $Runspace $Runspace.Open() [void]$PowerShell.AddScript({ Get-Date Start-Sleep -Seconds 10 }) $AsyncObject = $PowerShell.BeginInvoke() #Ver si se ha…
View On WordPress
Mostrar las coordenadas del mouse con PowerShell
while(1){Start-Sleep -m 500;Write-Host ([System.Windows.Forms.Cursor]::Position | Select-Object X,Y)}
View On WordPress
Start-Sleep: The Simple yet Underrated PowerShell Cmdlet
The PowerShell Start-Sleep cmdlet or the sleep alias is a simple cmdlet with a single purpose; to pause a script. When executed, in the PowerShell console, a script executed by the console or in the PowerShell ISE, the cmdlet pauses merely a script or module in the PowerShell session from running until the required time in seconds or milliseconds have elapsed.
This cmdlet is simple yet can be…
View On WordPress
Ocultar todos los procesos que se están ejecutando durante unos segundos y después volverlos a mostrar
Ocultar todos los procesos que se están ejecutando durante unos segundos y después volverlos a mostrar
#Importar en PowerShell la función que permite cambiar el estado de una ventana de show a hide $funcion = '[DllImport("user32.dll")] public static extern bool ShowWindowAsync(IntPtr hWnd, int nCmdShow);' $type = Add-Type -MemberDefinition $funcion -Name myAPI -PassThru #Obtener el identificador del proceso Get-Process | %{ $process=$_.MainWindowHandle if($process -ne 0) { #Obtener el Handle de la…
View On WordPress