-
-
[原创] XCTF 2022 Alice's warm up wp
-
发表于: 6天前 914
-
“Welcome to the XCTF-*CTF2022, I’m Alice and interested in AI security. I prepared a easy warm-up for you before you enjoy those pure AI security challenges.Like humans, AI also needs to warm up before running. Can you find something strange in these initialized parameters?”
题目在附件中
看到题目和附件,知道这是跟模型参数初始化有关,看到给的附件也是个zip+hint.py,想到torch保存模型的时候也是zip文件(后缀为.pt,但是就是zip格式的),所以要先加载一下模型
查看参数代码
只看有用的结果,这里有个小坑不加AliceNet1会报错
报错代码
第 0 层的 fc.0.weight 知道看着像是邻接矩阵 且矩阵是 47*47看到 hint.py 里面的内容,把字符串打印出来看到也是 47 个字符想到可能是邻接矩阵
赞赏
谁下载
赞赏
雪币:
留言: