SHARE
TWEET

Untitled

a guest Dec 10th, 2018 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3. if [ -z "$1" ] ; then
  4.     echo "Debe especificar host destino"
  5.     exit 1
  6. fi
  7.  
  8. echo "Para generar archivo con datos aleatorios:"
  9. echo "    $ dd if=/dev/urandom of=random bs=1024k count=512"
  10. echo ""
  11.  
  12. echo "Warm up... Copiando con cipher por default..."
  13. scp /dev/shm/random $1:/dev/shm
  14.  
  15. for cipher in 3des-cbc aes128-cbc aes192-cbc \
  16.         aes256-cbc aes128-ctr aes192-ctr \
  17.         aes256-ctr arcfour128 arcfour256 \
  18.         arcfour blowfish-cbc cast128-cbc; do
  19.     echo "Copiando con cipher: $cipher"
  20.     scp -c $cipher /dev/shm/random $1:/dev/shm/random-dest
  21. done
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top