Yuav ua li cas kom pom qhov hash (checksum) ntawm cov ntaub ntawv hauv Windows PowerShell

Pin
Send
Share
Send

Lub hash lossis checksum ntawm cov ntawv yog luv luv tus nqi xam los ntawm cov ntsiab lus ntawm cov ntawv thiab feem ntau yog siv los xyuas cov kev ncaj ncees thiab sib xws (xwm txheej) ntawm cov ntaub ntawv thaum khau raj, tshwj xeeb tshaj yog thaum nws los txog cov ntaub ntawv loj (cov qauv system thiab cov zoo li) uas yuav rub tawm nrog qhov tsis raug lossis Muaj qhov tsis txaus ntseeg tias cov ntaub ntawv no tau hloov los ntawm malware.

Ntawm cov vev xaib, ib qho kev kuaj xyuas feem ntau nthuav tawm, xam raws cov txheej txheem txheej MD5, SHA256 thiab lwm tus, tso cai rau koj los sib piv cov ntaub ntawv rub tawm nrog cov ntaub ntawv upload los ntawm tus tsim tawm. Koj tuaj yeem siv cov kev pabcuam thib peb los xam cov ntaub ntawv tshev, tab sis muaj ib txoj hauv kev los ua qhov no nrog cov txheej txheem Windows 10, 8 thiab Windows 7 (PowerShell version 4.0 thiab siab dua yuav tsum muaj) - siv PowerShell lossis kab hais kom ua, uas yuav ua kom pom hauv cov lus qhia.

Tau txais cov ntawv sau cia siv Windows

Ua ntej koj yuav tsum pib Windows PowerShell: txoj kev yooj yim yog siv kev nrhiav hauv Windows 10 taskbar lossis Windows 7 Start menu los ua qhov no.

Qhov hais kom ua los laij cov hash rau cov ntawv hauv PowerShell yog Tau-filehash, thiab kom siv nws los suav cov checksum, tsuas yog nkag rau nws nrog cov kev qhia hauv qab no (hauv piv txwv, tus hash yog xam rau daim duab ISO Windows 10 los ntawm VM nplaub tshev ntawm tsav C):

Get-FileHash C:  VM  Win10_1607_Russian_x64.iso | Daim ntawv teev hom

Thaum siv cov lus txib hauv daim ntawv no, lub hash tau suav nrog SHA256 algorithm, tab sis lwm txoj kev xaiv tau txais kev txhawb nqa, uas tuaj yeem raug tsim los siv -Algorithm parameter, piv txwv li, los xam lub MD5 checksum, qhov hais kom ua yuav zoo li piv txwv hauv qab no

Get-FileHash C:  VM  Win10_1607_Russian_x64.iso -Algorithm MD5 | Daim ntawv teev hom

Cov ntsiab lus hauv qab no yog kev txhawb nqa rau checksum algorithms hauv Windows PowerShell.

  • SHA256 (neej ntawd)
  • MD5
  • SHA1
  • SHA384
  • SHA512
  • CUA MISKAS
  • RIPEMD160

Cov lus qhia ntxaws ntxiv ntawm cov lus kab lus ntawm Get-FileHash hais kom ua kuj tseem muaj nyob rau ntawm lub vev xaib nom tswv //technet.microsoft.com/en-us/library/dn520872(v=wps.650).aspx

Rov qab hash ntawm cov ntawv ntawm cov kab hais kom ua siv CertUtil

Windows muaj built-in CertUtil nqi hluav taws xob rau kev ua haujlwm nrog daim ntawv pov thawj, uas, ntawm lwm yam, tuaj yeem suav cov checksum ntawm cov ntaub ntawv siv cov algorithms hauv qab no:

  • MD2, MD4, MD5
  • SHA1, SHA256, SHA384, SHA512

Txhawm rau siv tus nqi hluav taws xob, tsuas yog khiav lub Windows 10, 8 lossis Windows 7 cov lus qhia kom sai thiab sau cov lus txib ua hom:

certutil -hashfile file_path algorithm

Ib qho piv txwv ntawm kev tau txais ib qho MD5 hash rau ib qho ntaub ntawv yog qhia hauv qhov screenshot hauv qab no.

Txuas ntxiv: yog tias koj xav tau cov kev pabcuam thib peb los xam cov ntaub ntawv hashes hauv Windows, koj tuaj yeem them mus rau SlavaSoft HashCalc.

Yog tias koj xav tau suav cov tshev hauv Windows XP lossis Windows 7 uas tsis muaj PowerShell 4 (thiab muaj peev xwm nruab nws), koj siv tau Microsoft Microsoft Checksum Integrity Verifier cov kab ntawv siv hluav taws xob, muaj rau rub tawm ntawm lub vev xaib www.microsoft.com/en -us / download / details.aspx? id = 11533 (hom ntawv hais kom siv hluav taws xob: fciv.exe file_path - qhov tshwm sim yuav yog MD5. Koj tseem tuaj yeem xam lub SHA1 hash: fciv.exe -sha1 file_path)

Pin
Send
Share
Send