-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcry-code.py
More file actions
96 lines (90 loc) · 4.1 KB
/
cry-code.py
File metadata and controls
96 lines (90 loc) · 4.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
## -*- coding: utf-8 -*-
# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
#%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Date: Decembre 20, 2017 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
#%%%%%%%%%%%%%%%%%%%%%%%%%% Weather: It's always cool in the lab %%%%%%%%%%%%%%%%
#%%%%%%%%%%%%%%%%%%%%%%%%%%% Health: Overweight %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
#%%%%%%%%%%%%%%%%%%%%%%%%% Caffeine: 12975 mg %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
#%%%%%%%%%%%%%%%%%%%%%%%%%%% Hacked: All the things %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
# By : Lamani Fodil Hani (VEGETA-LFH) & Hirokazo Nagata
# Fb : Lamani Fodil Hani & Hirokazo Nagata
# Github : www.github.com/lamanihani & www.github.com/
# Gmail : lamanihani1@gmail.com & ziadabouelfarah2@gmail.com
#
from Crypto.Cipher import XOR
import base64
import os
import smtplib
import random
import time
os.system('clear')
print("\033[94m[✘] \033[97minstalling the \033[91mpackage \033[97m, Please wait :")
os.system('pip install pycryptodome')
print(" ")
print('\033[94m[✔]\033[92m Start :')
time.sleep(3)
os.system('clear')
os.system('clear')
rania1 = (" #do you even \033[91mexist\033[97m ")
rania2 = (''' #Im \033[92mgood\033[97m at reading \033[93mpeople
\033[97mMy \033[91msecret\033[97m ? I look for the \033[96mworst\033[97m in them\033[97m''')
rania3 = (" #'\033[91mlove \033[97mis foreever' \033[97mbullshit\033[97m")
rania4 = (" #we live in a kingdom of \033[91mbullshit\033[97m")
rania5 = (" #LEAVE ME \033[91mHERE \033[97m!")
rania6 = (" #LEAVE ME \033[91mHERE \033[97m!")
def kf_art():
arts = [rania1, rania2, rania3,rania4,rania5,rania6]
return random.choice(arts)
os.system('clear')
print('''\033[1;31m \033[97m
_________ _________ .___
\_ ___ \_______ ___.__. \_ ___ \ ____ __| _/____
/ \ \/\_ __ < | | ______ / \ \/ / _ \ / __ |/ __ \
\ \____| | \/\___ | /_____/ \ \___( <_> ) /_/ \ ___/
\______ /|__| / ____| \______ /\____/\____ |\___ >
\/ \/ \/ \/ \/
By : \033[93mLamani Hani\033[97m ツ
''')
print(kf_art())
print(" ")
print("\033[95m1- \033[91mEncryption\033[97m")
print("\033[95m2- \033[92mDecode\033[97m")
print(" ")
fodil = raw_input("\033[93m+>>")
if fodil == ('1') :
print(" ")
key = raw_input("\033[95m[?] \033[97mEnter your \033[97m\033[91mKEY \033[97m:\033[93m")
cipher= XOR.new(key)
fille = input("\033[95m[?] \033[97mDrag the \033[91mfile\033[97m:\033[93m")
filles = open(fille,"r")
read = filles.read()
filles.close()
new = base64.b64encode(cipher.encrypt(read))
os.remove(fille)
lylia = open(fille,"w")
lylia.write(new)
filles.close()
print("\033[97m[✔] The file has been encrypted ツ")
print(" ")
if fodil == ('2') :
print(" ")
key = raw_input("\033[95m[?] \033[97mEnter the \033[91mKEY\033[97m to decode :\033[93m ")
cipher= XOR.new(key)
fille = input("\033[95m[?] \033[97mDrag the \033[91mfile\033[97m :\033[93m")
filles = open(fille,"r")
read = filles.read()
filles.close()
new = cipher.decrypt(base64.b64decode(read))
#os.remove(fille)
os.system('mkdir original-file')
os.system('mv '+(fille)+' original-file')
lylia = open(fille,"w")
lylia.write(new)
filles.close()
print("\033[97m[✔] The file has been decrypted ツ")
if fodil == ('Decode') :
print(" [✘] This is not metasploit, type a number (1 / 2)")
if fodil == ('Encryption') :
print(" [✘] This is not metasploit , type a number (1 / 2)")
if fodil == ('help') :
print(" ツ watch the tuturial : ")