Advertisement
asteroidsteam

POP

Apr 2nd, 2018
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.62 KB | None | 0 0
  1. ############################################################
  2. ##  To Install type the following into a kali linux com-  ##
  3. ##  mand promt, type your password then wait about 1-15   ##
  4. ##  seconds until it is installed.                        ##
  5. ############################################################
  6. ##   curl https://pastebin.com/raw/Nq5mxHcA | python      ##
  7. ############################################################
  8. import sys
  9. import random
  10. import os
  11. import urllib2 as http
  12. from subprocess import call
  13. call(["sudo","echo"," "])
  14. def progress(count,total,status=''):
  15.         bar_len=60
  16.         filled_len = int(round(bar_len * count / float(total)))
  17.         percents = round(100.0 * count / float(total),1)
  18.         bar = u'\u2588' * filled_len + '-' * (bar_len - filled_len)
  19.         sys.stdout.write('[%s] %s%s ...%s\r' % (bar,percents,'%',status))
  20.         sys.stdout.flush()
  21. files = [
  22. "https://pastebin.com/raw/3EmYbeML,ps-1.py,python,ps",
  23. "https://pastebin.com/raw/cVfbqW4f,namea.lua,lua,nps",
  24. "https://pastebin.com/raw/Jte88TbW,ps-2.py,python,ps",
  25. "https://pastebin.com/raw/0JVQa8yR,namea,bash,nps"
  26. ]
  27. c = 0
  28. for i in files:
  29.         c += 1
  30.         a = i.split(",")
  31.         progress(c,len(files),status='Downloading Files...')
  32.         response = http.urlopen(a[0])
  33.         file = open(a[1],"w")
  34.         file.write(response.read())
  35.         file.close()
  36. print "\nRunning Package Scripts"
  37. c = 0
  38. for i in files:
  39.         c += 1
  40.         a = i.split(",")
  41.         progress(c,len(files),status='Running Package Scripts...')
  42.         if (a[3] == "ps"):
  43.                 call([a[2],a[1]])
  44.                 os.remove(a[1])
  45. print "\nCompleted!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement