本来还说想撸驱动的 。。。。 但是实在撸不下去了 编译原理 打算的是 下学期看 所以只能没有什么事 来刷刷XCTF的题了
刷刷mobile 还是挺好的~~~~~~~
然后 这个是入门的题 应该算是简单的
直接反编译的 源代码 。。
然后感觉0.。。。。emmmmmmmmmmm
一目了然啊 if (paramAnonymousView.charAt(i) != (str.charAt(i) ^ j))
这个就是判断 条件了 然后 他这个是拿我们输入的字符串看的 我们去看 另一个是什么
PackageInfo localPackageInfo = MainActivity.this.getPackageManager().getPackageInfo("com.example.yaphetshan.tencentgreat", 16384);
str = localPackageInfo.versionName;
str= 这个包里面的 versionName 成员 我们直接去找这个成员就好了
然后 写出脚本就好了
#include <iostream>
#include <algorithm>
#include <stdio.h>
#include <math.h>
#include <string.h>
#include <queue>
#include <vector>
#include <algorithm>
#include <map>
using namespace std;
char s[]="X<cP[?PHNB<P?aj";
int code=15;
int main()
{
for(int i=0;i<strlen(s);i++)
{
printf("%c",s[i]^code);
}
return 0;
}
得出答案
W3l_T0_GAM3_0ne