Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests
- from bs4 import BeautifulSoup
- import time
- palavra = str(input('Digite a palavra:\n'))
- url="http://www.md5.cz/getmd5.php"
- data={}
- data['what']=palavra
- headers={}
- headers['User-Agent']= "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36"
- requestSite = requests.post(url,data=data,headers=headers)
- if(requestSite.status_code == 200 ):
- print('[*] CRYPTOGRAFANDO [*]')
- soup = BeautifulSoup(requestSite.text,'html5lib')
- hmd5ash = soup.find('body').get_text()
- time.sleep(2)
- print('[!] HASH->' + hmd5ash[0:32])
- ----------------------------------
- import requests
- from bs4 import BeautifulSoup
- import time
- print('''\033[31m \033[0;0m''')
- print('''\033[31m \033[0;0m''')
- print('''\033[31m _ _ _____ \033[0;0m''')
- print('''\033[31m | |_ ___ ___| |_| |___ _ _ ___ \033[0;0m''')
- print('''\033[31m | | .'|_ -| | --| _| | | . | \033[0;0m''')
- print('''\033[31m |_|_|__,|___|_|_|_____|_| |_ | _| \033[0;0m''')
- print('''\033[31m |___|_| version:0.0.1 \033[0;0m''')
- print("""\033[31m
- 1) [*] Criptografia Md5 - Encrypt [*]
- 2) [*] Criptografia md5 - Decrypt [*]
- \033[0;0m""")
- def inicio(md5Cryp):
- try:
- escolha = int(input())
- if escolha == 1:
- print('Selecionou md5Cryp')
- md5Cryp('negro')
- elif escolha == 2:
- print('Selecionou o md5Decryp')
- except ValueError:
- print("Valor invalido!")
- print('Escolha 1 ou 2 conforme o menu solicita.')
- return inicio()
- except TypeError:
- print('Pressione a opção desejada [1 ou 2]')
- return inicio()
- inicio(md5Cryp)
- def md5Cryp(palavra):
- palavra = str("")
- url="http://www.md5.cz/getmd5.php"
- data={}
- data['what']=palavra
- headers={}
- headers['User-Agent']= "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36"
- requestSite = requests.post(url,data=data,headers=headers)
- if(requestSite.status_code == 200 ):
- print('[*] CRYPTOGRAFANDO [*]')
- soup = BeautifulSoup(requestSite.text,'html5lib')
- hmd5ash = soup.find('body').get_text()
- time.sleep(2)
- print('[!] HASH->' + hmd5ash[0:32] + ' [!]')
- hour = time.time()
- real_time = time.ctime(hour)
- print('[?] Data da execução=>'+real_time + ' [?]')
- else:
- print('Problemas ao tentar estabelecer conexão com o servidor.')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement