Advertisement
jefesin

Videos Flash en GNU/Linux

Sep 8th, 2011
1,145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.55 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement