Advertisement
tychotithonus

hash-match-example

Jan 5th, 2018
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. # Using rli - https://hashcat.net/wiki/doku.php?id=hashcat_utils#rli
  2. # Downloadable from https://github.com/hashcat/hashcat-utils/releases
  3.  
  4. # Example 1
  5.  
  6. $ cat 1.txt
  7. e10adc3949ba59abbe56e057f20f883e
  8. f8b46e989c5794eec4e268605b63eb59
  9. e3ceb5881a0a1fdaad01296d7554868d
  10.  
  11. $ cat 2.txt
  12. e10adc3949ba59abbe56e057f20f883e:1111
  13. 679ab793796da4cbd0dda3d0daf74ec1:1234
  14. f8b46e989c5794eec4e268605b63eb59:1@/233:
  15.  
  16. $ cut -d: -f1 2.txt >2-hashes.txt
  17.  
  18. $ cat 2-hashes.txt
  19. e10adc3949ba59abbe56e057f20f883e
  20. 679ab793796da4cbd0dda3d0daf74ec1
  21. f8b46e989c5794eec4e268605b63eb59
  22.  
  23. $ rli 1.txt 1-unfound.txt 2-hashes.txt
  24. Caching 1.txt...
  25. Cached 3 lines
  26.  
  27. Sorting...
  28.  
  29. Checking 2-hashes.txt against cache
  30. Lines compared 3
  31. Removed 2 lines from cache
  32.  
  33. Sorting back to original positions...
  34.  
  35. Finished!
  36. Removed 2 lines from cache
  37. Writing 1 lines to 1-unfound.txt
  38.  
  39. $ cat 1-unfound.txt
  40. e3ceb5881a0a1fdaad01296d7554868d
  41.  
  42.  
  43. # Example 2
  44.  
  45. $ cat color.txt
  46. red
  47. blue
  48. green
  49. yellow
  50.  
  51. $ cat color-to-remove.txt
  52. red
  53.  
  54. $ rli color.txt color-left.txt color-to-remove.txt
  55. Caching color.txt...
  56. Cached 4 lines
  57.  
  58. Sorting...
  59.  
  60. Checking color-to-remove.txt against cache
  61. Lines compared 1
  62. Removed 1 lines from cache
  63.  
  64. Sorting back to original positions...
  65.  
  66. Finished!
  67. Removed 1 lines from cache
  68. Writing 3 lines to color-left.txt
  69.  
  70. $ cat color-left.txt
  71. blue
  72. green
  73. yellow
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement