z****u 发帖数: 161 | 1 几万个文件想生成checksum列表,以后好检查坏没有,看了md5sum和cksum的man page
,似乎只能一次干一个文件?要想一次干一个目录recursive,怎么办? |
|
z****u 发帖数: 161 | 2 谢了
另外发现个偷懒的办法,如果先用ls生成list的话:
xargs md5sum < list.txt |
|
|
m******t 发帖数: 2416 | 4
If you are going to do that, might as well:
find dir -type f -exec cat \{} \; | md5sum -b - |
|
m*****g 发帖数: 776 | 5 能不能帮忙把这个shell script转成php?多谢!
#!/bin/sh
#Program to generate MD5 to compare across machines (mostly app servers)
if [ "$1" = "often" ]
then
/usr/bin/md5sum /home/famnet/slugs/connectslug.php > /home/famnet/MD5s/`/sbin/ifconfig | grep 172.16.1 |head -n 1| awk '{print substr($2,index($2,":")+1)}'`-often
/usr/bin/md5sum /usr/local/apache/c/functions/sesscheck.php >> /home/famnet/MD5s/`/sbin/ifconfig | grep 172.16.1 |head -n 1| awk '{print substr($2,index($2,":")+1)}'`-often
fi
if [ "$... 阅读全帖 |
|
l*****n 发帖数: 246 | 6 MD5sum会不会太复杂了一点。。。?
恕我才疏学浅,MD5Sum能够把一个string和他自己的reverse都产生一样的hash吗? |
|
w***g 发帖数: 5958 | 7 最土的办法:看文件大小是否在变,有一阵子不变了就表示上传完了。
正确的办法:上传FTP也用你的程序,上传算法为:
1. 先把文件上传到一个临时文件,比如带_tmp后缀
2. 上传完了再重命名文件
或者传完文件后再传一个md5sum文件。看到md5sum文件,并且和文件校验成功才
进行处理。
)。 |
|
T*******n 发帖数: 493 | 8 The md5sum is the "fingerprint" of the file.
You can use the md5sum tool to calculate the checksum
on the file downloaded onto your computer, and
compare it with the checksum posted on the server,
to ensure that the file was downloaded without
corruption. |
|
w******g 发帖数: 14 | 9 YOu may want to check md5sum of your ps binary file. Your system might have
been compromised.
Sun website has a database which include all binary files' md5sum fingerprint. |
|
p******f 发帖数: 162 | 10
md5sum from gnu textutil
it is said to be impossible (with current hardware) to get a piece of text as
output, whose md5sum is given as input. that is, hackers (bad guys) can't
modify your files while keep the same md5 signature. |
|
s*****e 发帖数: 404 | 11 Thank you very much! I got it. I copied it to the router /tmp and install it
from local. Here is what I got
root@unknown:/tmp# ipkg install asterisk18_1.8.20.1-1_mipsel.ipk
Installing asterisk18 (1.8.20.1-1) to /opt/...
Nothing to be done
Successfully terminated.
Collected errors:
Package asterisk18 md5sum mismatch. Either the ipkg or the package index are
corrupt. Try 'ipkg update'.
Is md5sum mismatch because I install it locally? Thank you. |
|
s**d 发帖数: 72 | 12 我认为digital copy 100%和原盘一样, as can be verified by md5sum, etc.
声音的好坏主要看DAC的质量。 |
|
g***s 发帖数: 3811 | 13 i think he is talking about using md5sum? |
|
a**********0 发帖数: 422 | 14 The Unix Commands
其实就是攒了一下网上的资料
# Create a new tar archive.
# the folder dirname/ is compressed into archive_name.tar
tar cvf archive_name.tar dirname/
# Extract from an existing tar archive
tar xvf archive_name.tar
# View an existing tar archive
tar tvf archive_name.tar
# Search for a given string in a file (case in-sensitive search).
grep -i "the" demo_file
# Print the matched line, along with the 3 lines after it.
grep -A 3 -i "example" demo_text
# Search for a given string in all files recur... 阅读全帖 |
|
|
|
k*******n 发帖数: 116 | 17 有没有x64的md5sum?想看看和两周前leaked的是不是同一个文件 |
|
k*******n 发帖数: 116 | 18 泄漏版本我查了和官方版本是一样的(md5sum相同) |
|
v*****r 发帖数: 1119 | 19 cksum or md5sum utilites if you are using Linux.
For windows, you can install Cygwin, which include those utilities. |
|
N****w 发帖数: 21578 | 20 script
google "bash for loop", "linux find command"
page |
|
A*****o 发帖数: 222 | 21 How about changes in the file creation time and etc.? |
|
h*******c 发帖数: 248 | 22 You are right. I use tar to copy directories, so it works for me but will
not work with dir created by cp -r |
|
s****l 发帖数: 10462 | 23 老哥,小弟的“难点在于YA有可能是压缩的”
md5sum 对于 abc.dat and abc.dat.gz 肯定是不一样的 |
|
S*A 发帖数: 7142 | 24 这个小细节自己可以搞定啊。写个script unzip 然后再 md5sum 好了。
可以用 pipe 不用生成中间文件。 |
|
S*A 发帖数: 7142 | 25 FT, 我不是说了么,你不要 unzip 到磁盘上,直接 unzip 到 stdout
然后 pipe 到 md5sum/sha1. 慢主要是写硬盘引起的。我的这个方法只需要读
一次所有的数据就可以比较了。读一次是肯定需要的,不然你怎么可能
确认你没有读的部分是不是对的?这个已经是接近最优化的方法了。 |
|
l*******e 发帖数: 3584 | 26 当初用的是HIREN‘S BOOT CD,不太记得用得是那个克隆软件了,
系统现在出了问题,想克隆回去,结果不知如何下手
镜像的时候给出一系列的文件,最大的一个是.aa为扩展名
别的文件列表如下。
Volume Serial Number is 0AAA-99D0
Directory of D:\2012-04-17-16-imgServer2008
06/27/2012 12:22 PM .
06/27/2012 12:22 PM ..
06/27/2012 12:22 PM 0 a.txt
04/17/2012 04:57 PM 4 disk
04/17/2012 04:57 PM 11,087 Info-dmi.txt
04/17/2012 04:57 PM 18,251 Info-lshw.txt
04/17/2012 04:57 PM 2,207 Info-ls... 阅读全帖 |
|
k*****r 发帖数: 21039 | 27 装了:
Set up Fcitx for Chinese and Japanese language input on Ubuntu Trusty 14.04
fcitx.pngAfter recently upgrading to Ubuntu 14.04 Trusty Tahr (LTS), I
decided to give Fcitx, the default input method framework on Ubuntu’s
Chinese sister project Ubuntu Kylin, a try and I was pleasantly surprised.
Not only is Fcitx rock-solid and actively developed, it also offers input
methods for Japanese, Korean, Vietnamese and a bunch of other languages in
addition to the default Chinese input methods. Here is ... 阅读全帖 |
|
n******7 发帖数: 12463 | 28 scp可以中断恢复吗?
因为大量数据传输经常因为各种原因失败
所以这个特性很重要
rsync是可以的
但是我还不确定用rsync是不是就不用再用md5sum check一下了 |
|
T*******n 发帖数: 493 | 29 Can it find other TFM file in that directory? Maybe the
files are indeed corrupted. Here are the MD5 checksums:
4414a8315f39513458b80dfc63bff03a cmmi12.tfm
d89e2d087a9828407a196f428428ef4a cmmi9.tfm
(If you need the md5sum utility, search Google.)
is |
|
p******f 发帖数: 162 | 30
i am assuming we can save the md5 checksums and the md5sum program offline.
what should the hacker do? |
|
p*******m 发帖数: 20761 | 31 Yesterday I finally decide to flash the rom for my almost 4 years old flo. I
am trying to see how good is lineage os. I do not feel too good about that.
I am not running a custom kernel
I am not modifies system files
I am not installed xposed and/or other mods
flash install
1. Boot into TWRP 3.0.3-3
2. Wipe system, cache and dalvik
3. Install lineage-14.1-20170307-nightly-flo-signed.zip
md5sum: 5c5d1cbc01dd28c03726f0b81e6314f6 2017-03-07 09:42:35
4. Install open_gapps-arm-7.1-xxxx-2017xxxx.zi... 阅读全帖 |
|
C*******1 发帖数: 422 | 32 /********************************/
/*** AMULED_HOME 设成 "/root" ***/
/********************************/
apt-get update
apt-get install amule-daemon
vi /etc/default/amule-daemon
AMULED_USER="root"
AMULED_HOME="/opt/share/amule"
if /opt/share/amule does not exit, mkdir this directory.
在命令列下設定HOME環境變數後執行amuled以產生設定檔
$ export HOME=/opt/share/amule
$ amuled
執行完畢會自動產生 /opt/share/amule/.aMule/amule.conf 設定檔
Generate password:
echo -n yourpassword | md5sum | cut -d ' ' -f 1
You get a long 字串
編輯/opt/share... 阅读全帖 |
|