import requests, json | |
def encr(text,key,ran): | |
data = { | |
'action':'ajax_encrypt', | |
'key':key, | |
'text':text, | |
'algo':'rijndael-128', | |
'mode':'ecb', | |
'encode':'checked', | |
'encode_method':'2' | |
} | |
headers = { | |
'x-requested-with': 'XMLHttpRequest', | |
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36', | |
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8', | |
} | |
html = requests.post('https://www.tools4noobs.com/',data=data,headers=headers,verify=False) | |
print('http://violympic.vn/SendExamScore.aspx?encrypt='+html.text.split('"readonly">')[1].split('</textarea>')[0]+'&ran='+ran) | |
return html.text.split('"readonly">')[1].split('</textarea>')[0] | |
inp = raw_input("Data: ") | |
spl = inp.split("|") | |
encr(spl[0],spl[1],spl[2]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment