Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # coding: utf-8
- import base64
- from Crypto import Random
- from Crypto.Hash import SHA256
- from Crypto.Cipher import AES
- import argparse
- import sys
- import colored
- from colored import stylize
- parser = argparse.ArgumentParser()
- parser.add_argument("-p", "--password", required=True, help="Give your password for decode and run the script")
- print(stylize('''
- ,,__
- .. .. / o._) .---.
- /--'/--\ \-'|| .----. .' '.
- / \_/ / | .' '..' '-.
- .'\ \__\ __.'.' .' i-._
- )\ | )\ | _.'
- // \ // \
- ||_ \|_ \_
- '--' '--'' '--'
- =========== Cod3d By Md Rasel =============
- Github: https://github.com/Mdrasel1230/SecureScript''', colored.fg("green")))
- print("")
- if len(sys.argv)==1:
- parser.print_help(sys.stderr)
- sys.exit(1)
- args=parser.parse_args()
- def cipherAES(password, iv):
- key = SHA256.new(password).digest()
- return AES.new(key, AES.MODE_CFB, iv)
- def decodeX(ciphertext, password):
- d = base64.b64decode(ciphertext)
- iv, ciphertext = d[:AES.block_size], d[AES.block_size:]
- return cipherAES(password, iv).decrypt(ciphertext)
- pd = args.password.encode('utf-8')
- decX = decodeX(b'qPBpLnPheyOl5ONYepTrklcduqKD0n1k4D2dgdO/3W/5q0CRTLWKeaK7QImY3k+TbXRedkFYZ9GuC5GTEJt5taP2m9wu3xQ7nT+cXA==', pd)
- decY = base64.b64decode(decX)
- eval(compile(decY,'<string>','exec'))
- print("")
- print(stylize("Execution Done! [+]--(^_^)--[-]", colored.fg("green")))