摘要: 先用exeinfo查一下 发现是64位文件并且有壳,进入下面所给出的网址下载脱壳软件,在题目目录下打开cmd键入 upx.exe -d *filename来脱壳 然后用64位ida打开,将main函数反编译 发现是将输入的s1与flag比对,直接双击flag追踪,得到flag: flag{Upx_1 阅读全文
posted @ 2021-08-29 00:09 iPlayForSG 阅读(62) 评论(0) 推荐(0) 编辑
摘要: 先exeinfo查一下 发现是32位文件,用32位的ida打开,反编译主函数 观察代码主体 scanf("%s", &v9); v3 = strcmp((const char *)&v5, &v9); if ( v3 ) v3 = -(v3 < 0) | 1; if ( v3 ) printf(aF 阅读全文
posted @ 2021-08-28 16:34 iPlayForSG 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 附件没有后缀名,用exeinfo查一下 发现是32位文件,不是exe文件,编译器是GCC,应该是C的代码。 考虑直接用32位ida打开,找到main函数进行反编译 发现程序直接输出了一个strs,双击追踪 得到flag: 9447{This_is_a_flag} 阅读全文
posted @ 2021-08-28 16:05 iPlayForSG 阅读(42) 评论(0) 推荐(0) 编辑
摘要: python在线反编译把.pyc反编译为伪代码 #!/usr/bin/env python # visit https://tool.lu/pyc/ for more information import base64 def encode(message): s = '' for i in mes 阅读全文
posted @ 2021-08-28 14:33 iPlayForSG 阅读(59) 评论(0) 推荐(0) 编辑
摘要: 結論だけ、書く。 失敗した失敗した失敗した失敗した失敗した失敗した失敗した失敗した 失敗した失敗した失敗した失敗した失敗した失敗した失敗した失敗した 失敗した失敗した失敗した失敗した失敗した あたしは失敗した失敗した失敗した失敗した失敗した失敗した失敗した 失敗した失敗した失敗したあたしは失敗した失 阅读全文
posted @ 2019-11-18 23:19 iPlayForSG 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 算是强迫自己复习一次做的题吧 "LuoGu3802 小魔女帕琪" 首先很重要的一点:$1 7$放了大招,可能$2 8$也会放大招。这对接下来的推导过程很重要。 先求出前$7$次放出大招的概率。 令$sum=\sum_{i=1}^{7}a_i$,则有: $P(7)=\frac{a_1}{sum} \f 阅读全文
posted @ 2019-11-13 22:33 iPlayForSG 阅读(127) 评论(1) 推荐(0) 编辑
摘要: Description 你被要求设计一个计算器完成以下三项任务: 1、给定y,z,p,计算Y^Z Mod P 的值; 2、给定y,z,p,计算满足xy≡ Z ( mod P )的最小非负整数; 3、给定y,z,p,计算满足Y^x ≡ Z ( mod P)的最小非负整数。 Input 输入包含多组数据 阅读全文
posted @ 2019-04-13 21:06 iPlayForSG 阅读(273) 评论(0) 推荐(0) 编辑
摘要: 题目描述 对于任何正整数x,其约数的个数记作g(x)。例如g(1)=1、g(6)=4。 如果某个正整数x满足:g(x) g(i) 0 INT_MAX可知质因子最多可达31,利用算数基本定理的推论: 设n = p1 ^ c1 + p2 ^ c2 + ..... + pn ^ cn,则n的质因子个数为( 阅读全文
posted @ 2019-03-30 20:54 iPlayForSG 阅读(419) 评论(0) 推荐(0) 编辑
摘要: Description The branch of mathematics called number theory is about properties of numbers. One of the areas that has captured the interest of number t 阅读全文
posted @ 2019-03-28 20:08 iPlayForSG 阅读(236) 评论(0) 推荐(0) 编辑
摘要: Description The Leiden University Library has millions of books. When a student wants to borrow a certain book, he usually submits an online loan form 阅读全文
posted @ 2019-03-16 20:34 iPlayForSG 阅读(363) 评论(0) 推荐(0) 编辑