2

from base64 import b64encode, b64decode
import hashlib
from Crypto.Cipher import AES
import os
import sys
from Crypto.Random import get_random_bytes


def decrypt(cipher_text, nonce, tag, salt, password):
    salt = b64decode(salt)
    cipher_text = b64decode(cipher_text)
    nonce = b64decode(nonce)
    tag = b64decode(tag)

    private_key = hashlib.scrypt(password.encode(), salt=salt, n=2**14, r=8, p=1, dklen=32)
    cipher = AES.new(private_key, AES.MODE_GCM, nonce=nonce)
    decrypted = cipher.decrypt_and_verify(cipher_text, tag)

    return bytes.decode(decrypted)


def main():
    choice = int(3)
    password = input("Password: ")[:3]
    print(len(password))
    print(password)
    print(password.encode())
    password_hash = hashlib.sha3_512(password.encode()).hexdigest()
    if password_hash == "2d17c291e439002da2682bb7750a059cbc2cc4a0a5a686a15161b30374c70db2ac9bc31c9aee819d246b032bc119d201a4a887b9f93a61a7a127abaf95f29c02":
        if choice == 1:
            cipher_text = 'p6utV269jB5jG7p5ph1jDRc+simUjHbsUiFkea2sjbpT4B2o9mIyCoEfyh8G/lWyDi+LTgJBaGkBcvR3SOqnDxkCQBIcHRyB+HJy/wArNlDv0JfzdE2RTigd8z3HXcB5+QhZ94XrIjyBcaTXRQ/EkQhDo+fnbVbVgwMvm9M1s6gBOhnSQ4CeSYAWzAqtvCOWENQlE6ihdXJVfR96c1Aj7aprgpRZuAG3PagZ97GXqU03jIT4lQV1GBlM3svs1BF0fDn4eYnwfRw+1HmU4/T5E1PrYu5vh3GuOu1g3J+AILSXmX3VQ2B5UO0OC8dpxTxbdb8pIRlpkdXOFudchDbZelPUIUdkPgF1sRYQH4SusOD+BJR2B9ve5a547t5KNmDoA6+C518V43wwPc0OTcVr4eVssCUb816SolDsEjclBgWodiCux8wdYl/95Ott/cfFSuZzd81Y4iXHzUqnOO2JAKNJ84k7AXhVvKa3FJn2X6zBzPk9jeFxauo4ApC3aRW3W7ShiI3gIXW4P+jloyZ1WmXh5JVMrXARdbieOQMnu6SxCurBS3CS7Lk2h6N/AGf7k9sG71Dwx9pcITf4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d7dVm8mQAcSIjYHxD5+YrlppaXxRSVg6B49/VMN9SYR+03VylVPMnw/AW7CcrjgLycT69pr/rICqzqKp+KiiZdYybKYqK29yDxk5E06ulj9bDwuAEGR5dbB2h1HV7RLagF6bb7geym8oUEVwA7X3NFPk0svJ2V9KxxMf0/ORltGoFGgA31t7Gho0NwqLjEJQ+b/ivZe5BN66vMyweInTDBqh2G6Dg+0xkl3d0XkZNt5GYGfgTE+vxSBByk+O95e5CJrWb/jOC8tYKG2SqNz7aR/QsBLXF0NIG56Mxlx3B7bh+4x1emdKLzriabHc8VtDcyPQNTh/k+BeBbw/RBwVSFMccseWltHiECZ4tRTJyS1S1wm9WmAgs98CRFvNZygiz3v+9E4RTiSJ4wtSQIq7/Eal/VwisjulxwJEvgzydy8twjxiyVLAmbDzINL+fK5WT8lLAD/Fi0UNQ0TniHz8JVdUthMEcWHoqaVwpG2NNHO8/hOJ80B8xhcAPcIUS9O1/6XR5YFtEl3Es3CuQ9FWi0mkYhP+vOV6I/2qUcIJP4Gc3q5FlU3JXIdPNba6E543s6ppElyNgtAb4u2v5bxr9TnfBSIILH9hJgub5vGXiznMk4eRX++p2k+AMF3GoekF5M1SHDFaklIT+ZAn+VCNrTf0WjDWimTVWVtOVVr6ySnY2bCBjm/C+f7zs='
            salt = '3+AHCUk17sCyt4DGcMHdfg=='
            nonce = 'k8Xs1Mz9HCTVzIk5A4H4XA=='
            tag = 'GNyk1+cmVb+nrxJOBoATWw=='
            decrypted = decrypt(cipher_text, nonce, tag, salt, password)
            outfile = open("unixprivchecker.sh", "w")
            outfile.write(decrypted)
            outfile.close()
            print("Decrypted")
        elif choice == 2:
            cipher_text = '0y8EM1PqETJY9qy/53whFYy0FD1ro7v7A476WYuDvcxRCzIPs7+So7e/KJZMvtGq1+uR8DyxdqyXf0JT6we8zMxwOz0nXXW1vqLY8m6yrnvtrjay00Gp+Ljc67KBxonSMutuDhWzgMPfXva1YMLQE4bqsZedYGs8bZv3V3iiYPSob9O3jC581oPO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te9ZAVOa4yJvInIZFhaVU+GbhnoEl+X8CAyztb/ZQ8765UG0B7/mWCgXEcWTLaYzA+tXUtWT63vjQWJsMwPIWKckOJbcJ1OgMiNkDgyOJwbgDo0/BwVTPFlgsi9ZF4SrvWLf9tXRHjLRfcclUZZx/gawPMP9ywzbAWCBJi/XZIv8xV3+So5VyoMxCllGXeXly9AXgqWJIUtSKJ/0YkckzLq0huMCPuCCcdcj7GM/Di7brmYW66y+9Yjuo2N7AAWfjmRcqtfeKVuOx8rwbd3cMo3fsigKxRgIMXE/N3nCXWIr5rQCR+Mh0FzFN9yHX89mjnZyKUhWBA0JVHk/CqI+JxE2CHfNhoaI9a4sPdu2f4wKX8wQvrtCi8SaDOXFOr287JG7884GQRii43Dd7qCl9XancmPnVp0OsQXbIoza/awMLlgAxsRX/JZx0GB3B3TPEqrZTFGCmIo5/uHzD3EehzJjZYQRqYzt+/Wg6krV3Vq3POBx8VwREKhvD67HQILl4cSeUvVS80MkOaaEa7HLCWh7wXQJ2xamUGUKePzuEBWEUGTm9QuJ+wVM+CnON8gYtWQTIIuk6uZHGr7N4ghliQ4BQTjr2L/1s5AS92dXOqWTyc9ucGc2tUAGuZJWMZrIOFVrXsVpdJMzUIvteFwSReHEpjtfY7xdrs7IbVRsBQRplfssa1qP0n/lRU='
            salt = 'dw6aZmJ/mZtBU4svjiPvuA=='
            nonce = 'PI+EV7xkTeD6VGV0GiE39A=='
            tag = 'S4p+rvns/CABA+2Uib0FSg=='
            decrypted = decrypt(cipher_text, nonce, tag, salt, password)
            outfile = open("dirtycow.c", "w")
            outfile.write(decrypted)
            outfile.close()
            print("Decrypted")
        elif choice == 3:
            cipher_text = 'DW9Pf+6M0baF6a5lg5o+BlofNxQiq3PdUYV835anFRgQaboKaO4GE8d+5wuU5ceMmYETRF+KhK2KkoBjD3cw+2qXB42wpn+eJYpt4kxjkH7jhN+yE1MMRxDsXNy9eKyK6yZs1u5/4AOMldcyb+qa2lIvZRpZWa1vjv0LCWKcrrh5ygeQ3ZMiPwUzviRXSJiVqB1i5QFyNavPMchcN3F+cs3cTPtlucqeKdZ82ycrZEVQhuupmTiapctxKPpenecpdbuz6F8XffORw3qY'
            salt = '0bAPTjE9/uZykFI4gh7Zlw=='
            nonce = 'ilwo5FkJjCqO4XfvaMd3Kw=='
            tag = 'K3TUrJfr/2N9Q/5T+H7i6A=='
            decrypted = decrypt(cipher_text, nonce, tag, salt, password)
            outfile = open("flag.sh", "w")
            outfile.write(decrypted)
            outfile.close()
            print("Decrypted")
        else:
            print("Wrong choice")
    else:
        print("Wrong")


main()


Created: 11/12/2020 12:13:16
Page views: 197
CREATE NEW PAGE