fciv
小猪老师 发表于 2020-06-22 14:39浏览次数:
FCIV是文件校验和完整性验证器的缩写,是用于检查MD5或SHA-1文件校验和加密hash信息的命令。安装和校验链接:
Microsoft FCIV https://www.microsoft.com/en-us/download/details.aspx?id=11533.the checksum calculator http://www.checksumcalculator.com/
Short for File Checksum Integrity Verifier, FCIV is a command that checks the MD5 or SHA-1 file checksum cryptographic hash information.
Microsoft FCIV https://www.microsoft.com/en-us/download/details.aspx?id=11533.the checksum calculator http://www.checksumcalculator.com/
目录:
1 fciv 运行系统环境
2 fciv 语法
3 fciv 示例
fciv 运行系统环境
Microsoft FCIV&The Checksum Calculator
fciv 语法
fciv.exe [Commands]
|
-add
|
计算hash并发送到输出(默认屏幕)。
dir options:
-r : recursive.
-type : ex: -type *.exe.
-exc file: list of directories that should not be computed.
-wp : Without full path name. Default store full path.
-bp : specify base path to remove from full path name.
|
|
-list
|
列出数据库中的条目。
|
|
-v
|
验证散列。
Option: -bp basepath
|
|
-md5 | -sha1 | -both
|
指定哈希类型,默认 MD5。
|
|
-xml db
|
指定数据库格式和名称。
|
fciv.exe [Commands]
|
-add
|
Compute hash and send to output (default screen).
dir options:
-r : recursive.
-type : ex: -type *.exe.
-exc file: list of directories that should not be computed.
-wp : Without full path name. Default store full path.
-bp : specify base path to remove from full path name.
|
|
-list
|
List entries in the database.
|
|
-v
|
Verify hashes.
Option: -bp basepath
|
|
-md5 | -sha1 | -both
|
Specify hashtype, default md5,
|
|
-xml db
|
Specify database format and name,
|
fciv 示例
fciv hope.txt
对任何文件(本例中为hope.txt)运行fciv将显示与下面示例类似的文件校验和信息。
//
// File Checksum Integrity Verifier version 2.05.
//
30ad2c562520d88d4e030fecf2f8c642 hope.txt
fciv hope.txt -both
运行上面的命令可以得到MD5和SHA-1的输出。
fciv -add hope.txt -xml hope.xml
将“ hope.txt”文件的MD5信息添加到XML hope.xml文件中。如果该文件不存在,将创建一个新文件。下面是使用此命令创建的XML文件的示例。
< ?xml version="1.0" encoding="utf-8"? >
< FCIV >
< FILE_ENTRY >< name >hope.txt< /name>< MD5 >kS7IA7LOSeSlQQaNSVq1cA==< /MD5 >< /FILE_ENTRY >< /FCIV >
fciv hope.txt
Running the fciv against any file (in this case hope.txt) displays the file checksum information similar to the example below.
//
// File Checksum Integrity Verifier version 2.05.
//
30ad2c562520d88d4e030fecf2f8c642 hope.txt
fciv hope.txt -both
Running the command above gives the output for both MD5 and SHA-1.
fciv -add hope.txt -xml hope.xml
Add the MD5 information of the "hope.txt" file to the XML hope.xml file. If the file does not exist a new file will be created. Below is an example of the XML file created using this command.
< ?xml version="1.0" encoding="utf-8"? >
< FCIV >
< FILE_ENTRY >< name >hope.txt< /name>< MD5 >kS7IA7LOSeSlQQaNSVq1cA==< /MD5 >< /FILE_ENTRY >< /FCIV >