Advertisement
hackerfree

Flash Player for kali linux 1.0.5

Nov 19th, 2013
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.38 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. #
  4. #  KaliFlash.sh
  5. #  
  6. #  
  7. #  This program is free software; you can redistribute it and/or modify
  8. #  it under the terms of the GNU General Public License as published by
  9. #  the Free Software Foundation; either version 2 of the License, or
  10. #  (at your option) any later version.
  11. #  
  12. #  This program is distributed in the hope that it will be useful,
  13. #  but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15. #  GNU General Public License for more details.
  16. #  
  17. #  You should have received a copy of the GNU General Public License
  18. #  along with this program; if not, write to the Free Software
  19. #  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  20. #  MA 02110-1301, USA.
  21. #
  22. #Source Alien And abortSecurit-E Modified by IceF0x
  23.  
  24. red='\e[0;31m'
  25. NC='\e[0m'
  26.  
  27. if [ "$(whoami)" != root ]
  28. then
  29. echo -e "$red Error:$NC Vous devez être root pour pouvoir exécuter ce script !"
  30. exit 1
  31. fi
  32.  
  33. echo ''' _  __    _    _     ___ _____ _        _    ____  _   _
  34. | |/ /   / \  | |   |_ _|  ___| |      / \  / ___|| | | |
  35. |  '' /   / _ \ | |    | || |_  | |     / _ \ \___ \| |_| |
  36. | . \  / ___ \| |___ | ||  _| | |___ / ___ \ ___) |  _  |
  37. |_|\_\/_/   \_\_____|___|_|   |_____/_/   \_\____/|_| |_|
  38. '''
  39.  
  40. echo -e "$red [+]$NC Valid on 32 & 64 bits Kali Linux 1.0.5"
  41.  
  42. echo -e "$red [+]$NC Clean Old Player"
  43.  
  44. apt-get purge flashplugin* gnash* mozilla-plugin-gnash swfdec*
  45.  
  46. rm -f /usr/lib/mozilla/plugins/*flash*
  47. rm -f /usr/lib/mozilla/plugins/*flash*
  48. rm -f ~/.mozilla/plugins/*flash*so
  49. rm -rfd /usr/lib/nspluginwrapper
  50.  
  51. cd
  52.  
  53. echo -en "$red [+]$NC Press any key for continue >"
  54. read opt
  55.  
  56. echo -e "$red [+]$NC Install Last Player"
  57.  
  58. mkdir -p ~/.mozilla/plugins
  59.  
  60. if [ -d "Flash" ]; then
  61.   cd Flash
  62. else
  63.   mkdir Flash
  64.   cd Flash
  65. fi
  66. if [ arch != "i686" ]
  67. then
  68. wget -q http://fpdownload.macromedia.com/get/flashplayer/current/licensing/linux/install_flash_player_11_linux.x86_64.tar.gz
  69. else
  70. wget -q http://fpdownload.macromedia.com/get/flashplayer/current/licensing/linux/install_flash_player_11_linux.i386.tar.gz
  71. fi
  72. echo -e "$red [+]$NC Extracting files... "
  73. tar xfz install_flash_player_11_linux*.tar.gz
  74. echo -e "$red [+]$NC Files extracted !"
  75. cp -f libflashplayer.so ~/.mozilla/plugins/
  76. cp -f libflashplayer.so /usr/lib/mozilla/plugins
  77. cd
  78. rm -rf Flash
  79.  
  80. echo -e "$red [+]$NC Successfully !"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement