2015年12月7日 星期一

017 powershell file with unique SHA1 (windows)

How to Create Powershell Samples with Unique SHA1

powershell -executionpolicy bypass -File powershell.ps1 -howmany 20

powershell -executionpolicy bypass -File 0019.ps1




https://github.com/vash-hsu/windows-shell/blob/master/test-feed/powershell.ps1

1 則留言:

  1. https://github.com/vash-hsu/windows-shell/commit/04242f3fa6c642c278a7824d85b11868fb0c2cef

    # get current version in advance

    $host.version.Major

    # compare current version with target version

    [string]::Compare('4', '5')
    -1

    [string]::Compare('5', '5')
    0

    [string]::Compare('6', '5')
    1

    回覆刪除