今天开始打一打wechall
累了打wechall,不累的时候开始打buu
第一题:Get Sourced
查看源代码即可,拉到底部
第二题:Stegano
属于misc的范畴,直接下载下来,然后notepad++查看,在最后有一个passwd:steganoI
直接丢上去提交即可
第三题: Crypto - Caesar
凯撒密码,位移一位
是英文,is后面那一串就是密码
第四题:WWW-Robots
根据提示,直接http://www.wechall.net/robots.txt
然后读取之后
然后访问即可
http://www.wechall.net/challenge/training/www/robots/T0PS3CR3T
第五题:Ascii
给了一串数字,直接自己写脚本ASCII码转字符串
(网上太垃圾了)
84, 104, 101, 32, 115, 111, 108, 117, 116, 105, 111, 110, 32, 105, 115, 58, 32, 110, 99, 99, 103, 104, 104, 98, 104, 101, 101, 108, 99
exp如下:
#include
using namespace std;
int main()
{
char z;
int a[30]={84, 104, 101, 32, 115, 111, 108, 117, 116, 105, 111, 110, 32, 105, 115, 58, 32, 110, 99, 99, 103, 104, 104, 98, 104, 101, 101, 108, 99};
for(int i=0;i<30;i++)
{
z = a[i];
cout< }
}
然后把“-”去掉,就可以得到nccghhbheelc
第六题:Url
%59%69%70%70%65%68%21%20%59%6F%75%72%20%55%52%4C%20%69%73%20%63%68%61%6C%6C%65%6E%67%65%2F%74%72%61%69%6E%69%6E%67%2F%65%6E%63%6F%64%69%6E%67%73%2F%75%72%6C%2F%73%61%77%5F%6C%6F%74%69%6F%6E%2E%70%68%70%3F%70%3D%62%68%72%72%65%68%65%72%6E%6D%6D%6D%26%63%69%64%3D%35%32%23%70%61%73%73%77%6F%72%64%3D%66%69%62%72%65%5F%6F%70%74%69%63%73%20%56%65%72%79%20%77%65%6C%6C%20%64%6F%6E%65%21
解出来
Yippeh! Your URL is challenge/training/encodings/url/saw_lotion.php?p=bhrrehernmmm&cid=52#password=fibre_optics Very well done!
把后面那一串复制过去就好了
第七题:Prime Factory (Training, Math)
大致的意思就是
找到两个数,且是质数,而且大于1000000的质数,并且这个数字的每一位加起来还是质数...
本题没有时间限制,打表
def allsum(x):
sum = 0
while x:
sum += x%10
x //= 10
return sum
total = 2000000
prime = []
a = [1 for i in range(total)]
for i in range(2,total):
if a[i]:
prime.append(i)
time = 2
while 1:
num = time*i
if num >= total:
break
a[num] = 0
time += 1
find = 0
for i in range(1000000,total):
if i in prime and allsum(i) in prime:
print(i)
find += 1
if find == 2:
break
然后可以导出1000033,1000037俩数字,接着把中间逗号去掉提交即可
第九题:Training: Encodings I
给了一串010,一看就是二进制转ascii码,但是很不幸,直接转ASCII是乱码
于是乎发现463是7的被除数,尝试7个一组,然后补0
题目给了工具