SHARE
TWEET

Videos Flash en GNU/Linux

jefesin Sep 8th, 2011 485 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/sh
  2. if [ $# -ne 1 ]; then
  3.     echo [+] Uso: ./video.sh [nombre-del-video]
  4.     exit
  5. fi
  6. echo [+] Buscando Video...
  7. numero=$(lsof | grep Flash | awk {'print $2,$4'} | sed 's/[a-z]//g')
  8. if [ -z "$numero" ]; then
  9.     echo [-] No se encontro el video.
  10.     echo [-] Tiene que estar el navegador abierto.
  11.     exit
  12. fi
  13. num1=$(echo $numero | awk {'print $1'})
  14. num2=$(echo $numero | awk {'print $2'})
  15. echo [+] Guardando Video...
  16. cp /proc/$num1/fd/$num2 $HOME/$1.flv
  17. echo [+] Video Guardado en $HOME/$1.flv
  18. echo [+] By Jefesin // jefesin.blogspot.com
RAW Paste Data
Top