Advertisement
zee_eichel

screenshout.sh

May 22nd, 2011
363
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.40 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # auto screenshout
  4. # create by zee eichel
  5. # tested on backtrack V
  6. # 23 mei 2011
  7. # tools ini menggunakan scrot & imagemagick
  8. # credit by indonesian backtrack team
  9. # home page : id-backtrack.com
  10.  
  11. #variable intro
  12. luv1="[\e[01;38mw\e[00m]"
  13. luv2="[\e[01;32mx\e[00m]"
  14. luv3="[\e[01;34mi\e[00m]"
  15. luv4="[\e[01;30m?\e[00m]"
  16.  
  17.  
  18. echo -e "$luv3 Tools ini membutuhkan scrot , imagemagick"
  19. echo -e "$luv3 Untuk menginstall scrot use [s] dan untuk menginstall imagemagick use [i] atau [k] untuk skip instalasi dan memulai program"
  20. echo -n -e "$luv4 masukan pilihan anda ?"; tput sgr0
  21. read start
  22. if [ "$start" == "s" ] ; then
  23. apt-get install scrot
  24. elif [ "$start" == "i" ] ; then
  25. apt-get install imagemagick
  26. elif [ "$start" == "k" ] ; then
  27. echo -n -e "$luv2 Masukan [im], untuk menggunakan imagemagick  atau [sc] untuk menggunakan scrot ";
  28. read tools
  29. fi
  30.      if [ "$tools" == "im" ] ; then
  31.      echo -n -e "$luv1 masukan nama file ";
  32.      read image
  33.      echo -n -e "$luv1 masukan delay /det ";
  34.      read delay
  35.      mkdir /root/ss
  36.      cd /root/ss
  37.      sleep $delay; import -window root $image.png
  38.      echo -e "$luv2 $image telah berhasil di simpan di /root/ss"
  39.      elif [ "$tools" == "sc" ] ; then
  40.      echo -n -e "$luv1 masukan nama file ";
  41.      read images
  42.      mkdir /root/ss
  43.      cd /root/ss
  44.      scrot $images.png
  45.      echo -e "$luv2 $image telah berhasil di simpan di /root/ss"
  46. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement