MD5Check - Use it for init Web files's md5 values of your site(or other dir), and check if it changed!
检查web目录(或者其他重要系统目录)md5值,当目录文件变化提醒。用于文件防篡改。
Version 0.11
use MD5Check;
## 初始化目录md5值,参数为要监控的目录
my $mydir=shift; print init($mydir);
## 对目录文件进行检查,只需输入之前保存的md5 文件值。
use MD5Check; my $mydir=shift; print md5check($mydir);
# oneliner,perl单行程序实现功能。
需要安装该模块,简单通过 cpanm MD5Check 安装。
## 相关实例可以直接使用bin/下的init.pl 和 check.pl 单行执行
$ perl -MMD5Check -e 'init("/web")' >file $ perl -MMD5Check -e 'print md5check(file)'..
MD5Check - Use it for init Web files's md5 values of your site(or other dir), and check if it changed.
MD5Check is not standardized. This module is far from complete.
#Init the web dir md5 values
use MD5Check; my $mydir=shift; print md5init($mydir,$OUT); ===================== #check files use MD5Check; my $mydir=shift; print md5check($mydir);
https://github.com/bollwarm/MD5Check.git
orange <linzhe@ijz.me>, http://ijz.me
<linzhe@ijz.me>
Copyright (C) 2016 linzhe
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
orange, <linzhe at ijz.me>
<linzhe at ijz.me>
Please report any bugs or feature requests to bug-md5check at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=MD5Check. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-md5check at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc MD5Check
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
http://rt.cpan.org/NoAuth/Bugs.html?Dist=MD5Check
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/MD5Check
CPAN Ratings
http://cpanratings.perl.org/d/MD5Check
Search CPAN
http://search.cpan.org/dist/MD5Check/
# End of MD5Check
To install MD5Check, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MD5Check
CPAN shell
perl -MCPAN -e shell install MD5Check
For more information on module installation, please visit the detailed CPAN module installation guide.