Scripting and security

Operating Systems, software development, scripting, PowerShell tips, network and security

Menú principal
  • Categorías
  • Cursos
  • Libro de PowerShell
  • Lo mejor
  • Lo último
  • Proyectos
  • Contactar
Ir al contenido

Ejercicios de PowerShell: realizar una función que permita detectar que hay una firma igual a otra

Ofertas y promociones en Videojuegos
PowerShell
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Función simple para almacenar un hash de un programa
function hashear($ruta){
    Get-FileHash $ruta
}
 
(hashear 'C:\Windows\System32\notepad.exe' | select hash).hash | Out-File hash.txt
 
(gc hash.txt)
 
Get-Process | select Path | %{
    hashear $_.Path
}
 
Get-Process | select Path | %{
    (hashear $_.Path).hash
}
 
Get-Process | select Path | %{
    if ((hashear $_.Path).hash -match (gc hash.txt))
    {
        "Igual",$_.path
    }
}

CATEGORÍAS

PowerShell

ETIQUETAS

Ejercicios de PowerShell, Function, Get-FileHash, Get-Process, Jesús Niño, Jesús Niño Camazón, match, Out-File, Path, Windows

MÁS

  • Ejercicios de PowerShell: analizar ficheros DLL en todos los equipos de la red, comprobar que ha cambiado una integridad y copiar el fichero que ha cambiado
  • Práctica sobre virus
  • Instalación de software libre y propietario (Implantación de sistemas operativos)
  • Tareas de administración IV (Sistemas operativos en red)
  • Configuración de sistemas operativos (Sistemas informáticos)
  • Administración y aseguramiento de la información (Implantación de sistemas operativos)
606106544 626441720 619048401 626796374 610861862 636260016 617162697 625209926 651081911 600131872 662432559 643646033 613159664 638361195 613051879 664974242 687738751 636755089 690041631 620776105 690495588 631320684 610971671 603501064 637003266 676140553 647497966 664771260 677151793 673636576 681941014 694304433 634913158 655883351 610746386 671352695 669667649 663285727 609161797 647674062 613935575 665997331 626182018 696462810 652820207 682031380 679682125 620248327 644235513 604391018 618453611 637782367 604857660 680511276 614345334 604514691 630082593 643105002 658785331 631729472 611629339 654685608 666705975 634709182 613144262 673153088 620395649 617313326 621962407 616593943