Quantcast
Channel: foreach | Operating systems, scripting, PowerShell and security | jesusninoc.com
Browsing all 409 articles
Browse latest View live

5. Gestión del software en PowerShell

Software Listar software Buscar software Instalar software Desinstalar software Actualizaciones Listar actualizaciones Antivirus El software es la parte que no se puede tocar del ordenador...

View Article


Image may be NSFW.
Clik here to view.

7. Gestión de procesos en PowerShell

Procesos Tabla de procesos Estados de un proceso Crear procesos Matar procesos Procesador Hilos Servicios Uno de los conceptos más importantes en los sistemas operativos es el proceso que se define...

View Article


Image may be NSFW.
Clik here to view.

9. Gestión de la red en PowerShell

Capa física Adaptadores de red Información sobre los adaptadores de red Cambiar el nombre de los adaptadores de red Información transmitida Capa de Internet ARP  IP Ver protocolos IP soportados...

View Article

Image may be NSFW.
Clik here to view.

Generar direcciones MAC con PowerShell

(0..5 | ForEach-Object { '{0:x}{1:x}' -f (Get-Random -Minimum 0 -Maximum 15),(Get-Random -Minimum 0 -Maximum 15)}) -join ':' The post Generar direcciones MAC con PowerShell appeared first on Scripting...

View Article

Ejecutar un cmdlet de PowerShell desde C#

using System; using System.Management.Automation; // Windows PowerShell namespace. namespace HostPS1 { class HostPS1 { static void Main(string[] args) { // Call the PowerShell.Create() method to create...

View Article


Image may be NSFW.
Clik here to view.

Ejecutar el cmdlet de PowerShell que recupera el contenido de la caché de...

using System; using System.Management.Automation; // Windows PowerShell namespace. namespace HostPS1 { class HostPS1 { static void Main(string[] args) { // Call the PowerShell.Create() method to create...

View Article

Image may be NSFW.
Clik here to view.

Ejecutar el cmdlet de PowerShell para obtener información de la memoria RAM...

using System; using System.Management.Automation; // Windows PowerShell namespace. namespace HostPS1 { class HostPS1 { static void Main(string[] args) { // Call the PowerShell.Create() method to create...

View Article

Image may be NSFW.
Clik here to view.

Ejecutar un código de C# desde PowerShell que ejecuta un cmdlet de PowerShell

$CodigoC = @” using System; using System.Management.Automation; // Windows PowerShell namespace. namespace HostPS1 { public class HostPS1 { public static void Main() { // Call the PowerShell.Create()...

View Article


Mostrar un mensaje si se ha ejecutado correctamente un script de PowerShell...

using System; using System.Collections.ObjectModel; using System.Management.Automation; // Windows PowerShell namespace. namespace PowerSh { class PowerSh { static void Main(string[] args) { using...

View Article


Image may be NSFW.
Clik here to view.

Recorrer el segundo nivel de un sitio web y obtener información de todos los...

$url="http://www.jesusninoc.com" foreach($links in (Invoke-WebRequest $url).Links.href){foreach($links2 in (Invoke-WebRequest $links).Links.href){$links2,(Invoke-WebRequest...

View Article

Image may be NSFW.
Clik here to view.

Recorrer el primer nivel de un sitio web y obtener información de todos los...

$url="http://www.jesusninoc.com" foreach($links in (Invoke-WebRequest $url).Links.href){($links,(Invoke-WebRequest $links).RawContentLength,1)} The post Recorrer el primer nivel de un sitio web y...

View Article

Image may be NSFW.
Clik here to view.

Recorrer el segundo nivel de un sitio web y obtener todos los enlaces del sitio

$url="http://www.jesusninoc.com" foreach($links in (Invoke-WebRequest $url).Links.href){foreach($links2 in (Invoke-WebRequest $links).Links.href){$links2}} The post Recorrer el segundo nivel de un...

View Article

Image may be NSFW.
Clik here to view.

Automatizar el recorrido de niveles de un sitio web, obteniendo información...

#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 } }...

View Article


Image may be NSFW.
Clik here to view.

Realizar una comunicación enviando preguntas y respondiendo de forma...

Introducción####################################################################################################...

View Article

Ofuscación en PowerShell

#################################################################### #Convertir una cadena de caracteres a binario (Char - Int - Binario) $resultado = "" $codificar = 'GC' foreach($letra in...

View Article


Image may be NSFW.
Clik here to view.

Realizar una comunicación enviando preguntas y respondiendo de forma...

Introducción####################################################################################################...

View Article

Image may be NSFW.
Clik here to view.

Recorrer el segundo nivel de un sitio web, obtener información de todos los...

#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 } }...

View Article


Ejercicios de PowerShell: analizar la frecuencia de letras en un fichero

Versión 1#Abrir el fichero texto.txt y añadir cada una de las letras que contiene el fichero en una ArrayList #Inicializa una nueva instancia de la clase ArrayList que está vacía y tiene la capacidad...

View Article

Image may be NSFW.
Clik here to view.

Convert una imagen JPG a caracteres en la consola de PowerShell (obtener el...

$Cave = [System.Drawing.Bitmap]::FromFile( '.\juan2.jpg' ) $cave $i=0 $a=0 $array = @() for ($y = 0;$y -lt $Cave.Height;$y+=1) { for ($x = 0;$x -lt $Cave.Width;$x+=1) { $col=$Cave.GetPixel($x,$y).Name...

View Article

Image may be NSFW.
Clik here to view.

Convert bitmap to characters in Write-Host (blue and white)

$Cave = [System.Drawing.Bitmap]::FromFile( '.\juan2.jpg' ) $cave $i=0 $a=0 $array = @() for ($y = 0;$y -lt $Cave.Height;$y+=1) { for ($x = 0;$x -lt $Cave.Width;$x+=1) { $col=$Cave.GetPixel($x,$y).Name...

View Article
Browsing all 409 articles
Browse latest View live