-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwithout-sourcecode.py
42 lines (32 loc) · 1.08 KB
/
without-sourcecode.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
from tkinter import Tk, Label, Entry, Button, messagebox
from bs4 import BeautifulSoup
import requests
url = 'https://gabriel-preti-ferraz.github.io/verification-system/!!!!!!!!!!'
response = requests.get(url)
if response.status_code == 200:
soup = BeautifulSoup(response.content, 'html.parser')
paragraph = soup.find('p')
if paragraph:
security = paragraph.text
else:
print('Nenhum parágrafo encontrado.')
else:
print('Erro ao acessar a página:', response.status_code)
def verification(value, window):
if value == '!!!!!!!!!!!!' and security == '1':
window.destroy()
else:
messagebox.showerror(title='ERROR', message='Licença incorreta.')
def check_input():
value = input.get()
verification(value, window)
window = Tk()
window.title('Sistema de Verificação')
window.geometry('300x150')
text = Label(master=window, text='Insira sua licença.')
text.pack(pady=10)
input = Entry(master=window, width=30)
input.pack()
submit = Button(master=window, text='Verificar', command=check_input)
submit.pack(pady=15)
window.mainloop()