-
Notifications
You must be signed in to change notification settings - Fork 0
/
zadacha4.py
45 lines (39 loc) · 1.45 KB
/
zadacha4.py
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
log = input('введи логин')
password = input('введи пароль')
snimok = input('вставь фото')
keylogger = {'log' : None, 'password' : None, 'snimok': None}
with open('loginst.txt', 'a') as ff:
ff.write(log)
ff.write(password)
ff.write(snimok)
print(ff.read())
logg = keylogger['login'] = log
passwdd = keylogger['password'] = password
PHOTO = keylogger['snimok'] = snimok
ff.writelines('login : ' + log + ' ' + 'password : ' + password + 'photos : ' + PHOTO + '\n' )
# with open ('loginst.txt', 'r') as f:
# print(f.read())
# f.close()
with open('loginst.txt', 'r') as ff:
if log in ff.read() or password in ff.read() or snimok in ff.read():
print(f'есть логин {log} ')
print(f'есть пароль {password} ')
print(f'есть фото {PHOTO} ')
else:
print('error')
log = input('введи логин')
password = input('введи пароль')
keylogger = {'log' : None, 'password' : None}
ff = open('loginst.txt', 'w')
logg = keylogger['log'] = log
passwdd = keylogger['pass'] = password
ff.writelines('login : ' + logg +' ' + 'password : ' + passwdd + '\n' )
ff.close()
# with open ('loginst.txt', 'r') as f:
# print(f.read())
with open ('loginst.txt', 'x') as ff:
if log in ff.read() or password in ff.read() :
print(f'есть логин {log} ')
print(f'есть пароль {password} ')
else:
print('error')