本地管理员
题目是本地管理员,打开网址,f12看一下源码,发现有一行是base64编码,使用工具进行解码
出来是test123,猜测是密码,用户猜测为admin,输入进去结果不行
使用bp抓包试一下,然后再重新发送,提示ip禁止访问,因为题目是本地管理员
用xff伪装ip,然后发送
成功,返回flag
总结:xff伪装ip
X-Forwarded-For:
写个博客都是bug,图片也不显示,不如本地,效率太低了,设置应该有问题(跪
RC4解密
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152import base64def rc4_main(key = "init_key", message = "init_message"): print("RC4解密主函数调用成功") print('\n') s_box = rc4_init_sbox(key) crypt = rc4_excrypt(message, s_box) return cryptdef rc4_init_sbox(key): s_box = list(range(256)) print("原来的 s 盒:%s" % s_box) print('\n') j = 0 for i in range(256): j = (j + s_b ...
SHA256解密
py代码1234567891011121314151617181920import hashlibwhile True: for data in range(8617090000000,8617099999999): data=str(data) hash=((hashlib.sha256(data.encode())).hexdigest()) R='c22a563acc2a587afbfaaaa6d67bc6e628872b00bd7e998873881f7c6fdc62fc' i = 0 j = 0 while(i<64): if(hash[i]==R[j]): i=i+1 j=j+1 if(i==64): print(data) else: break
RSA脚本爆破
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091#RSA加密#RSA加密是对消息进行模求幂,其指数为e,# 模为N,通常是两个素数的乘积:N = p * q。指数和模一起形成RSA“公钥”(N, e)。# e最常用的值是0x10001或65537。# 使用指数e = 65537和素数p = 17和q = 23来“加密”数字12。你得到的密文是什么数字?e=65537#指数p=17q=23N=p*q#模m=12#需加密信息print(pow(m,e,N)) #c密文=pow(明文,指数,模)#求欧拉函数phin'''RSA依赖于模数N的分解难度,如果能找到质数,就可以计算出N的欧拉系数,从而对密文进行解密。给定N = p*q和两个素数:p = 85750408 ...
棋盘爆破
1234567891011121314151617181920import itertoolskey = []cipher = "ilnllliiikkninlekile"for i in itertools.permutations('ilnke', 5): key.append(''.join(i))for now_key in key: solve_c = "" res = "" for now_c in cipher: solve_c += str(now_key.index(now_c)) for i in range(0,len(solve_c),2): now_ascii = int(solve_c[i])*5+int(solve_c[i+1])+97 if now_ascii>ord('i'): now_ascii+=1 res += ch ...
Hello Debu
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick StartCreate a new post1$ hexo new "My New Post"
More info: Writing
Run server1$ hexo server
More info: Server
Generate static files1$ hexo generate
More info: Generating
Deploy to remote sites1$ hexo deploy
More info: Deployment