Advertisement
teknoraver

sha1 kernel debian

Apr 17th, 2018
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.19 KB | None | 0 0
  1. matteo@raver:~$ ssh saturno
  2. Linux saturno 4.16.0-saturno #78 SMP Fri Apr 6 01:16:01 CEST 2018 x86_64
  3.  
  4. The programs included with the Debian GNU/Linux system are free software;
  5. the exact distribution terms for each program are described in the
  6. individual files in /usr/share/doc/*/copyright.
  7.  
  8. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
  9. permitted by applicable law.
  10. Last login: Mon Apr 16 23:06:44 2018 from 192.168.85.6
  11. matteo@saturno:~$ cd /tmp/
  12. matteo@saturno:/tmp$ cat /etc/debian_version
  13. 9.4
  14. matteo@saturno:/tmp$ dd if=/dev/urandom of=file.bin bs=1M count=2000
  15. 2000+0 records in
  16. 2000+0 records out
  17. 2097152000 bytes (2,1 GB, 2,0 GiB) copied, 8,35583 s, 251 MB/s
  18. matteo@saturno:/tmp$ ldd /usr/bin/sha1sum
  19. linux-vdso.so.1 (0x00007ffcd3775000)
  20. libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f879704a000)
  21. /lib64/ld-linux-x86-64.so.2 (0x00007f87975f5000)
  22. matteo@saturno:/tmp$ ldd sha1sum
  23. linux-vdso.so.1 (0x00007ffdcabda000)
  24. libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007feb1f91f000)
  25. /lib64/ld-linux-x86-64.so.2 (0x00007feb1fcbe000)
  26. matteo@saturno:/tmp$ sha1sum --version
  27. sha1sum (GNU coreutils) 8.26
  28. Copyright (C) 2016 Free Software Foundation, Inc.
  29. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
  30. This is free software: you are free to change and redistribute it.
  31. There is NO WARRANTY, to the extent permitted by law.
  32.  
  33. Written by Ulrich Drepper, Scott Miller, and David Madore.
  34. matteo@saturno:/tmp$ ./sha1sum --version
  35. sha1sum (GNU coreutils) 8.29.24-e6017
  36. Copyright (C) 2018 Free Software Foundation, Inc.
  37. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
  38. This is free software: you are free to change and redistribute it.
  39. There is NO WARRANTY, to the extent permitted by law.
  40.  
  41. Written by Ulrich Drepper, Scott Miller, and David Madore.
  42. matteo@saturno:/tmp$ time sha1sum file.bin
  43. 869a41690e5bf5b126b3774d0c139b45235b97f4 file.bin
  44.  
  45. real 0m4,668s
  46. user 0m4,476s
  47. sys 0m0,190s
  48. matteo@saturno:/tmp$ time ./sha1sum file.bin
  49. 869a41690e5bf5b126b3774d0c139b45235b97f4 file.bin
  50.  
  51. real 0m3,247s
  52. user 0m0,000s
  53. sys 0m3,247s
  54. matteo@saturno:/tmp$ strace -e trace=file,network ./sha1sum file.bin
  55. execve("./sha1sum", ["./sha1sum", "file.bin"], [/* 27 vars */]) = 0
  56. access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
  57. access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
  58. open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
  59. access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
  60. open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
  61. open("/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
  62. open("file.bin", O_RDONLY) = 3
  63. socket(AF_ALG, SOCK_SEQPACKET, 0) = 4
  64. bind(4, {sa_family=AF_ALG, sa_data="hash\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0sha1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"}, 88) = 0
  65. accept(4, NULL, NULL) = 5
  66. sendfile(5, 3, NULL, 2147479552) = 2097152000
  67. 869a41690e5bf5b126b3774d0c139b45235b97f4 file.bin
  68. +++ exited with 0 +++
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement