-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbank.py
More file actions
139 lines (129 loc) · 5.24 KB
/
bank.py
File metadata and controls
139 lines (129 loc) · 5.24 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
import os
import time
from colorama import Fore,Back,Style
class creditcard:
username = "username" # username
password = "password" # password
code = "xxx-xxx-xxx " # xxx-xxx-xxx
class admin:
username = "error"
password = "12345"
class info_error:
money = 1500
debt = 250
def menu(login):
if login == True:
print(Fore.GREEN+f"""
----------{creditcard.username}----------
[+] Options :
[M] My Information
[1] Withdraw Money
[2] Add Money
[3] Change Username
[4] Change Password
[5] Pay All Debt
[Q] Log Out
""")
def info(login,info):
if login == True:
print(Fore.BLUE+f"""
[{creditcard.username}] You Have :
[{creditcard.username}] Money : {info.money} $
[{creditcard.username}] Debt : {info.debt} $
""")
menu(True)
def main(logincnt):
os.system("clear") # if you use windows put "cls" instead of "clear"
print(Fore.BLACK+f"""
Error Bank (Safest Bank)
""")
if logincnt == False:
lusername = input(Fore.BLUE+"[+] Please enter your username : ")
lpassword = input(Fore.BLUE+"[+] Please enter your password : ")
else:
lusername = creditcard.username
lpassword = creditcard.password
lcode = creditcard.code
print(Fore.GREEN+f"[+] Controlling username and password..")
time.sleep(2)
if lusername == creditcard.username and lpassword == creditcard.password:
info(True,info_error)
c = input(Fore.BLUE+f"[{creditcard.username}] Please Choice : ")
if c == "1":
ch = int(input(Fore.BLUE+f"[{creditcard.username}] How much money you want to withdraw : "))
info_error.money = info_error.money - ch
print(Fore.GREEN+f"[INFO] You withdrawed : {ch} $ .")
print(Fore.GREEN+f"[INFO] Your current money is : {info_error.money} $")
time.sleep(5)
logincnt = True
main(True)
if c == "2":
ch = int(input(Fore.BLUE+f"[{creditcard.username}] How much money you want to add : "))
info_error.money = info_error.money + ch
print(Fore.BLUE+f"[INFO] Loading...")
time.sleep(2)
print(Fore.GREEN+f"[INFO] You added : {ch} $ .")
print(Fore.GREEN+f"[INFO] Your current money is : {info_error.money} $")
time.sleep(5)
logincnt = True
main(True)
if c == "3":
ch = input(Fore.BLUE+f"[{creditcard.username}] Please enter your new username : ")
creditcard.username = ch
print(Fore.BLUE+f"[INFO] Loading...")
time.sleep(2)
print(Fore.GREEN+f"[INFO] Your new username : {creditcard.username}")
time.sleep(5)
logincnt = True
main(True)
if c == "4":
ch = input(Fore.BLUE+f"[{creditcard.username}] Please enter your new password : ")
creditcard.password = ch
print(Fore.BLUE+f"[INFO] Loading...")
time.sleep(2)
print(Fore.GREEN+f"[INFO] Your new password : {creditcard.password}")
time.sleep(5)
logincnt = True
main(True)
if c == "5":
print(Fore.BLUE+f"[INFO] Loading...")
info_error.debt = 0
info_error.money = info_error.money-info_error.debt
time.sleep(2)
print(Fore.GREEN+f"[INFO] Your Money : {info_error.money}")
print(Fore.GREEN+f"[INFO] Your Debt : {info_error.debt}")
time.sleep(5)
logincnt = True
main(True)
if c == "M" or c == "m":
print(Fore.BLUE+f"[INFO] Loading...")
time.sleep(2)
print(Fore.GREEN+f"[INFO] Your Username : {creditcard.username}")
print(Fore.GREEN+f"[INFO] Your Password : {creditcard.password}")
print(Fore.GREEN+f"[INFO] Your C.Code : {creditcard.code}")
print(Fore.GREEN+f"[INFO] Your Money : {info_error.money}")
print(Fore.GREEN+f"[INFO] Your Debt : {info_error.debt}")
time.sleep(12)
logincnt = True
main(True)
if c == "Q" or c == "q":
print(Fore.BLUE+f"[INFO] Exitting...")
time.sleep(1)
logincnt = False
main(False)
elif lusername == admin.username and lpassword == admin.password:
print(Fore.BLACK+f"[+] Hello Admin {admin.username} You Are Welcome...")
print(Fore.BLACK+f"[+] Print users information...")
time.sleep(1)
print(Fore.BLUE+f"[INFO] ---------------{creditcard.username}--------------- : ")
print(Fore.BLUE+f"[{creditcard.username}] Username : {creditcard.username}")
print(Fore.BLUE+f"[{creditcard.username}] Password : {creditcard.password}")
print(Fore.BLUE+f"[{creditcard.username}] C.Code : {creditcard.code}")
print(Fore.BLUE+f"[{creditcard.username}] Money : {info_error.money}")
print(Fore.BLUE+f"[{creditcard.username}] Debt : {info_error.debt}")
print(" ")
else:
print(Fore.RED+f"[-] error 404! Your login username and password is not correct. Please try again...")
time.sleep(5)
main(False)
main(False)