建设网站需要花费,别墅装修一般多少钱一套,上海网站建设公司兴田德润放心,有做lol直播网站有哪些1、代码
import re
import sysimport requestsdef post_url(data):其实就是把「https://www.dcode.fr/cipher-identifier」网站的功能#xff0c;改成接口形式之所以改成接口#xff0c;是因为网站加载有些慢#xff0c;很多不必要加载很是浪费时间:para…1、代码
import re
import sysimport requestsdef post_url(data):其实就是把「https://www.dcode.fr/cipher-identifier」网站的功能改成接口形式之所以改成接口是因为网站加载有些慢很多不必要加载很是浪费时间:param data: 需要判断的密码字符串:return: 网站的返回分析数据session requests.session()# 获取 Cookieurl https://www.dcode.fr/cipher-identifierresponse session.get(url)cookie response.headers[Set-Cookie].split(;)[0]# 带 Cookie 请求 api 接口url https://www.dcode.fr/api/payload ftoolcipher-identifierciphertext{data}cluesheaders {Cookie: cookie,Sec-Ch-Ua: Microsoft Edge;v119, Chromium;v119, Not?A_Brand;v24,Accept: application/json, text/javascript, */*; q0.01,Content-Type: application/x-www-form-urlencoded; charsetUTF-8,X-Requested-With: XMLHttpRequest,Sec-Ch-Ua-Mobile: ?0,User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) Chrome/119.0.0.0 Safari/537.36 Edg/119.0.0.0,Sec-Ch-Ua-Platform: macOS,Origin: https://www.dcode.fr,Sec-Fetch-Site: same-origin,Sec-Fetch-Mode: cors,Sec-Fetch-Dest: empty,Referer: https://www.dcode.fr/cipher-identifier,Accept-Encoding: gzip, deflate,Accept-Language: zh-CN,zh;q0.9,en;q0.8,en-GB;q0.7,en-US;q0.6}response session.post(url, headersheaders, datapayload).json()return response[results]def clear_dict(cipher): 清理掉HTML标签 new_dict {}for key in cipher:new_dict[re.search(a href.*?(.*?)/a, key).group(1)] cipher[key]return new_dictdef format_dict(dictionary): 字典输出格式化 max_key_len max(len(key) for key in dictionary.keys())max_value_len max(len(value) for value in dictionary.values())for key, value in dictionary.items():key_spaces * (max_key_len - len(key))value_spaces * (max_value_len - len(value))print(key key_spaces : value value_spaces)if __name__ __main__:if len(sys.argv) 2:cipher_dict post_url(sys.argv[1])else:print(使用说明 : python3 cipher_identifier.py {密文})exit(1)format_dict(clear_dict(cipher_dict))
2、使用说明
没有什么好说明的就是 https://www.dcode.fr/cipher-identifier 网站接口网站加载太慢了所以我就把接口做成了Python脚本方便使用节省时间。
┌──(root㉿kali)-[~] (๑•̀ㅂ•́)و✧
└─# python3 cipher_identifier.py
Usage : python3 cipher_identifier.py {密文}
┌──(root㉿kali)-[~] (๑•̀ㅂ•́)و✧
└─# python3 cipher_identifier.py cf4c2232354952690368f1b3dfdfb24d
MD5 : ■▪
Hexadecimal Data : ■
MD4 : ■
Hexadecimal (Base 16) : ▪
ASCII Code : ▪
Base62 Encoding : ▫
Base64 Coding : ▫
XOR Cipher : ▫
UUID : ▫
Huffman Coding : ▫
LZW Compression : ▫
Circular Bit Shift : ▫
EBCDIC Encoding : ▫
RC4 Cipher : ▫
Substitution Cipher : ▫
Shift Cipher : ▫
Homophonic Cipher : ▫
Turning Grille : ▫