当前位置:网站首页>Bugku-Misc-贝斯手
Bugku-Misc-贝斯手
2022-08-01 16:32:00 【lf_x】
用记事本打开 介绍.txt 会忽略后面内容,用VScode比较好
属猴,测试密码是1992,打开flag.txt内容是
5+58==327a6c4304ad5938eaf0efb6cc3e53dcCFmZknmK3SDEcMEue1wrsJdqqkt7dXLuS
5的意思是MD5,58的意思是base58
选择前32位进行md5解码md5在线解密破解,md5解密加密 (cmd5.com)
Base58在线编码解码-ME2在线工具 (metools.info)
也可用脚本解Base58
def b58encode(tmp:str) -> str:
tmp = list(map(ord,tmp))
temp = tmp[0]
base58 = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"
for i in range(len(tmp)-1):
temp = temp * 256 + tmp[i+1]
tmp = []
while True:
tmp.insert(0,temp % 58)
temp = temp // 58
if temp == 0:
break
temp = ""
for i in tmp:
temp += base58[i]
return temp
def b58decode(tmp:str) -> str:
import binascii
base58 = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"
temp = []
for i in tmp:
temp.append(base58.index(i))
tmp = temp[0]
for i in range(len(temp)-1):
tmp = tmp * 58 + temp[i+1]
return binascii.unhexlify(hex(tmp)[2:].encode("utf-8")).decode("UTF-8")
#print(b58encode("ABDCDEFGA"))
print(b58decode("CFmZknmK3SDEcMEue1wrsJdqqkt7dXLuS"))
边栏推荐
猜你喜欢
短剧正在抢长剧的生意
MySQL INTERVAL Keyword Guidelines
ESP8266-Arduino编程实例-GA1A12S202对数刻度模拟光传感器
14年测试人最近的面试经历,值得借鉴√
How to Efficiently Develop Jmix Extension Components
08 Spark cluster construction
ESP8266-Arduino编程实例-MLX90614红外测温传感器驱动
DOM系列之触屏事件
今晚直播!
Description of common operations and help projects about DevExpress in C#
随机推荐
PAT 甲级 A1030 Travel Plan
DOM series of touch screen events
DevExpress的GridControl帮助类
C#的DataTable帮助类
C# CSV format file helper class
夸克网盘资源站
Winform message prompt box helper class
重庆银河证券股票开户安全吗,是正规的证券公司吗
Go 单元测试
90后的焦虑,被菜市场治好了
Isometric graph neural networks shine in drug discovery
MySQL INTERVAL 关键字指南
个人日记
在码云拉取代码后,调整了seata版本1.5.2。出现如下异常。是因为数据库表缺少字段导致的吗?
MUI as a mobile phone to return to the action bar
测试技术|白盒测试以及代码覆盖率实践
Description of common operations and help projects about DevExpress in C#
HashCode technology insider interview must ask
UI helper class for Winform - some components will use DevExpress components
七夕到了——属于程序员的浪漫