Advertisement
HyP3r-

Untitled

Aug 20th, 2016
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #!/usr/bin/env bash
  2.  
  3. # vars
  4. blob_size=1024
  5. test_size=262144000
  6. steps=$(($test_size / $blob_size))
  7. blob_path=/tmp/random.blob
  8.  
  9. # create random blob
  10. dd if=/dev/urandom bs=$blob_size count=1 of=$blob_path
  11.  
  12. # create memory hash
  13. memory_hash=$(for i in {1..$steps}; do cat $blob_path; done | md5sum )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement