-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathCloner.py
More file actions
296 lines (201 loc) · 7.66 KB
/
Cloner.py
File metadata and controls
296 lines (201 loc) · 7.66 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
import pickle
import os
import sys
import time
import re
def main():
global main_input
os.system('cls' if os.name == 'nt' else 'clear')
print("What can i do for you:")
print("----------------------")
print(" 1) View already created info")
print(" 2) Read new card")
main_input = int(input())
if main_input == 1:
credit_read()
elif main_input == 2:
folder()
else:
print("Plese use only 1 or 2")
time.sleep(1)
main()
def folder():
os.system('cls' if os.name == 'nt' else 'clear')
if not os.path.exists("Credit Cards") and not os.path.exists("Other Cards"):
os.makedirs("Credit Cards")
os.makedirs("Other Cards")
print("Creating needed files")
print("Please Whait")
print("-----5-----")
time.sleep(1)
print("-----4-----")
time.sleep(1)
print("-----3-----")
time.sleep(1)
print("-----2-----")
time.sleep(1)
print("-----1-----")
time.sleep(1)
if os.path.exists("Credit Cards") and os.path.exists("Other Cards"):
os.system('cls' if os.name == 'nt' else 'clear')
print("Files created")
clone_startUP()
else:
os.system('cls' if os.name == 'nt' else 'clear')
print("If this erro continues plz create files manually")
print("------------------------------------------------")
print("Foulder Names:")
print("1 - Creadit Cards")
print("2 - Other Cards")
sys.exit()
else:
clone_startUP()
def clone_startUP():
global data
os.system('cls' if os.name == 'nt' else 'clear')
print("Please insert a card:")
data = input()
if data == "":
clone_startUP()
else:
clone_type()
def clone_type():
if data[1:2] == "B":
os.system('cls' if os.name == 'nt' else 'clear')
print("Credit/Debit card detected")
CreditCard()
else:
OtherCard()
def CreditCard():
global regex
global matches
regex = r"^[^\r\nB]+B(?P<number>\d+)\^(?P<lastname>\w+)/(?P<firstname>\w+) \^(?P<firstdate>\d{2})(?P<seconddate>\d{2})\d+(?P<cvv>\d{3})0{6}\?"
matches = re.search(regex,data)
credit_info()
def credit_info():
global save_input
global fname
global lname
global num
global fdate
global sdate
global cv
os.system('cls' if os.name == 'nt' else 'clear')
if matches:
os.system('cls' if os.name == 'nt' else 'clear')
print("Raw Code: " + data)
print("Card Number: " + matches.group('number'))
print("Card Owner Name: " + matches.group('firstname') + "/" + matches.group('lastname'))
print("Expiration Date: " + matches.group('firstdate') + "/" + matches.group('seconddate'))
print("Security Code: " + matches.group('cvv'))
print("---------------------------------------")
print("Would you like to save this info? (Y/N)")
save_input = input()
if save_input == "Y":
fname = matches.group("firstname")
lname = matches.group("lastname")
num = matches.group("number")
fdate = matches.group("firstdate")
sdate = matches.group("seconddate")
cv = matches.group("cvv")
if not os.path.exists(f"Credit Cards/{fname}-{lname}"):
os.makedirs(f"Credit Cards/{fname}-{lname}")
if os.path.exists(f"Credit Cards/{fname}-{lname}"):
input_matche_number = open(f"Credit Cards/{fname}-{lname}/Card-Number","wb")
pickle.dump(num, input_matche_number)
input_matche_fname = open(f"Credit Cards/{fname}-{lname}/Card-First-Name","wb")
pickle.dump(fname, input_matche_fname)
input_matche_lname = open(f"Credit Cards/{fname}-{lname}/Card-Last-Name","wb")
pickle.dump(lname, input_matche_lname)
input_matche_fdate = open(f"Credit Cards/{fname}-{lname}/Card-First-Date","wb")
pickle.dump(fdate, input_matche_fdate)
input_matche_sdate = open(f"Credit Cards/{fname}-{lname}/Card-Second-Date","wb")
pickle.dump(sdate, input_matche_sdate)
input_matche_cvv = open(f"Credit Cards/{fname}-{lname}/Card-CVV","wb")
pickle.dump(cv, input_matche_cvv)
else:
pass
elif save_input == "y":
fname = matches.group("firstname")
lname = matches.group("lastname")
num = matches.group("number")
fdate = matches.group("firstdate")
sdate = matches.group("seconddate")
cv = matches.group("cvv")
if not os.path.exists(f"Credit Cards/{fname}-{lname}"):
os.makedirs(f"Credit Cards/{fname}-{lname}")
if os.path.exists(f"Credit Cards/{fname}-{lname}"):
input_matche_number = open(f"Credit Cards/{fname}-{lname}/Card-Number","wb")
pickle.dump(num, input_matche_number)
input_matche_fname = open(f"Credit Cards/{fname}-{lname}/Card-First-Name","wb")
pickle.dump(fname, input_matche_fname)
input_matche_lname = open(f"Credit Cards/{fname}-{lname}/Card-Last-Name","wb")
pickle.dump(lname, input_matche_lname)
input_matche_fdate = open(f"Credit Cards/{fname}-{lname}/Card-First-Date","wb")
pickle.dump(fdate, input_matche_fdate)
input_matche_sdate = open(f"Credit Cards/{fname}-{lname}/Card-Second-Date","wb")
pickle.dump(sdate, input_matche_sdate)
input_matche_cvv = open(f"Credit Cards/{fname}-{lname}/Card-CVV","wb")
pickle.dump(cv, input_matche_cvv)
else:
pass
elif save_input == "N":
sys.exit()
elif save_input == "n":
sys.exit()
else:
print("Please select a valid option!")
time.sleep(2)
credit_info()
else:
sys.exit()
def credit_read():
global read_input
global creds_cvv
global credit_cvv
global creds_fname
global credit_fname
global creds_lname
global credit_lname
global creds_num
global credit_num
global creds_fdate
global credit_fdate
os.system('cls' if os.name == 'nt' else 'clear')
print("Plese enter the name of the user: (Format type: FirstName-LastName)")
read_input = input()
if os.path.exists(f"Credit Cards/{read_input}"):
with open(f"Credit Cards/{read_input}/Card-CVV", "rb") as creds_cvv:
credit_cvv = pickle.load(creds_cvv)
with open(f"Credit Cards/{read_input}/Card-First-Name", "rb") as creds_fname:
credit_fname = pickle.load(creds_fname)
with open(f"Credit Cards/{read_input}/Card-Last-Name", "rb") as creds_lname:
credit_lname = pickle.load(creds_lname)
with open(f"Credit Cards/{read_input}/Card-Number", "rb") as creds_num:
credit_num = pickle.load(creds_num)
with open(f"Credit Cards/{read_input}/Card-First-Date", "rb") as creds_fdate:
credit_fdate = pickle.load(creds_fdate)
with open(f"Credit Cards/{read_input}/Card-Second-Date", "rb") as creds_sdate:
credit_sdate = pickle.load(creds_sdate)
os.system('cls' if os.name == 'nt' else 'clear')
print("All info that you need is here!")
print("-------------------------------")
print("Card Number: " + f"{credit_num}")
print("Card Owner Name: " + f"{credit_fname}" + " | " + f"{credit_lname}")
print("Expiration Date: " + f"{credit_fdate}" + " | " + f"{credit_sdate}")
print("Security Code: " + f"{credit_cvv}")
print("-------------------------------")
else:
os.system('cls' if os.name == 'nt' else 'clear')
print("Didn´t find that name if my DataBase")
time.sleep(2)
credit_read()
os.system('cls' if os.name == 'nt' else 'clear')
print("All info that you need is here!")
print("-------------------------------")
print("Card Number: " + f"{credit_num}")
print("Card Owner Name: " + f"{credit_fname}" + " | " + f"{credit_lname}")
print("Expiration Date: " + f"{credit_fdate}" + " | " + f"{credit_sdate}")
print("Security Code: " + f"{credit_cvv}")
print("-------------------------------")
main()