view = function (score, token) { // Too young to simple if (score < 600000) { return"hello kitty"; } // Quickly tell me, I`m thirsty to death. var http = new XMLHttpRequest(); var url = "/game/push"; var params = "token=" + token; http.open("post", url, true); // Send the proper header information along with the request http.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); http.onreadystatechange = function() { if(http.readyState == 4 && http.status == 200) { // Tell u the f-l-a-g... } } http.send(params); return"hello world"; }
publicclasstansform { publicstatic String transformSeq(String paramString) { int j = paramString.length(); StringBuilder localStringBuilder = new StringBuilder(paramString); int i = 0; for (;;) { if (i >= j) { return localStringBuilder.toString(); } if ((paramString.charAt(i) >= 'A') && (paramString.charAt(i) <= 'Z')) { localStringBuilder.setCharAt(i, (char)(paramString.charAt(i) + '\001')); } if ((paramString.charAt(i) >= 'a') && (paramString.charAt(i) <= 'z')) { localStringBuilder.setCharAt(i, (char)(paramString.charAt(i) - '\001')); } i += 1; } } }
可以看到如果是大写ascii加一,如果是小写ascii减一
又根据题目提示,解包看到pwd.txt,需要其中第12701行.找到它
因为不太会写java,所以用python来解密
1 2 3 4 5 6 7 8 9 10 11 12 13 14
import string s = 'j4nlO512Y82Swe44CoNlVzWM' deftran(s): ans = [] for i in s: if i in string.uppercase: ans.append(chr(ord(i)+1)) elif i in string.lowercase: ans.append(chr(ord(i)-1)) else: ans.append(i) ans = ''.join(ans) return ans #flag: i4mkP512Z82Tvd44DnOkWyXN