某比赛wp.md
re
Od调试下断后看到,将已知字符串异或后跟输入的比较,截取部分,在写代码
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
String = "NbWG9;2" String2 = "JPFjXj"[::-1] print(String2)
flag= "" for i in range(len(String)): temp = chr(ord(String[i])^0x7) flag += temp
for i in range(len(String2)): temp = chr(ord(String2[i])^0x33) flag += temp print flag
|
misc
https://blog.csdn.net/Sallyyym/article/details/89391087
原题
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
def affine(a, b): pwd_dic = {} for i in range(26): pwd[chr(((a*i+b)%26)+97)] = chr(i+97) return pwd if __name__ == '__main__': pwd= {} pwd1 = "rgydmllakzgc" plain = [] pwd = affine(5, 12) for i in pwd1: plain.append(pwd[i]) print ("Flag:"+"".join(plain))
|
bestaffikney
BeSTAffiKnEY
Md5一下
6d5a256aeb1b5d47dd3b40dec6e7c885
加上flag{6d5a256aeb1b5d47dd3b40dec6e7c885}
本文作者:NoOne
本文地址: https://noonegroup.xyz/posts/a4f45285/
版权声明:转载请注明出处!