SHARE
TWEET

old gan

Datez Mar 26th, 2020 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # uncompyle6 version 3.1.3
  2. # Python bytecode 2.7 (62211)
  3. # Decompiled from: Python 3.4.3 (default, Aug  9 2016, 15:36:17)
  4. # [GCC 5.3.1 20160406 (Red Hat 5.3.1-6)]
  5. # Embedded file name: <script>
  6. # Compiled at: 2018-02-25 14:25:47
  7. import marshal, platform
  8. from py_compile import compile as com
  9. from sys import argv as D
  10. from sys import exit
  11. from random import randint as R
  12. from os import remove
  13. from os import rename
  14.  
  15. def tampil(x):
  16.     w = 'amhkbpc'
  17.     for i in w:
  18.         x = x.replace('?%s' % i, '\x1b[%d;1m' % (90 + w.index(i)))
  19.  
  20.     x += '\x1b[0m'
  21.     x = x.replace('?0', '\x1b[0m')
  22.     print x
  23.  
  24.  
  25. if platform.python_version().split('.')[0] != '2':
  26.     tampil('?m[!] kamu menggunakan python versi 3 silahkan menggunakan versi 2')
  27.     exit()
  28.  
  29. def baliho():
  30.     tampil('?k+--------------------------------+\n|           ?p-?mPIRMANSX?p-           ?k|\n|   ?hhttps://github.com/pirmansx  ?k|\n+--------------------------------+')
  31.  
  32.  
  33. if len(D) < 3:
  34.     baliho()
  35.     tampil('?hCara menggunakan:\n\t?bpython2 ME.py [file] [mode]\n?m*?cMode:  ?h1 ?c-> ?hCepat\n\t?k2 ?c-> ?kSedang\n\t?m3 ?c-> ?mLambat\n?hContoh: ?apython2 ME.py /sdcard/file.py 2')
  36.     exit()
  37. try:
  38.     s = open(D[1], 'r').read()
  39. except:
  40.     baliho()
  41.     tampil('?m[!] Gagal membuka ?c' + D[1])
  42.     exit()
  43.  
  44. if D[2] not in ('1', '2', '3'):
  45.     baliho()
  46.     tampil('?m[!] Mode ?c%s?m tidak ada' % D[2])
  47.     exit()
  48. try:
  49.     c = compile(s, '<script>', 'exec')
  50. except:
  51.     baliho()
  52.     tampil('?mFile tidak support')
  53.     exit()
  54.  
  55. d = marshal.dumps(c)
  56. r = lambda : R(0, 255)
  57. k = []
  58. for i in range(255):
  59.     k.append(r())
  60.  
  61. def enc(d, k):
  62.     e = ''
  63.     i, j = (0, 0)
  64.     while 1:
  65.         if i >= len(d):
  66.             break
  67.         if j >= len(k):
  68.             j = 0
  69.         e += chr(ord(d[i]) ^ k[j])
  70.         i += 1
  71.         j += 1
  72.  
  73.     return e
  74.  
  75.  
  76. def enc0(d, k):
  77.     x = []
  78.     K = []
  79.     for i in d:
  80.         x.append(str(ord(i)))
  81.  
  82.     x = '[' + (',').join(x) + ']'
  83.     for i in k:
  84.         K.append(str(i))
  85.  
  86.     s = 'import marshal\nd = ' + x + "\ne = ''\ni,j = 0,0\nk = [" + (',').join(K) + ']\nwhile 1:\n\tif i >= len(d):break\n\tif j >= len(k):j = 0\n\te += chr(d[i]^k[j])\n\ti += 1\n\tj += 1\nexec(marshal.loads(e))'
  87.     c = compile(s, '<script>', 'exec')
  88.     d = marshal.dumps(c)
  89.     return d
  90.  
  91.  
  92. for i in range(int(D[2]) + 1):
  93.     d = enc0(enc(d, k), k)
  94.  
  95. D = D[1] + 'e'
  96. open(D, 'w').write('import marshal;exec(marshal.loads(' + repr(d) + '))')
  97. baliho()
  98. try:
  99.     com(D)
  100.     rename(D + 'c', ('').join(D.split('.')[:1]) + 'enc.py')
  101.     remove(D)
  102.     tampil('?h[v] Berhasil membuat file ?c' + ('').join(D.split('.')[:1]) + 'enc.py')
  103. except:
  104.     tampil('?mGAGAL meyimpan ?c' + D[:-1])
  105. # okay decompiling 3.pyc
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top