import numpy as np A=np.random.rand(35,35) B=np.random.rand(35) r=open("cert.txt",'r') lines=r.readlines() A_row=0 A_column=0 B_flag=0 # print(len(lines)) for line in lines: x=line.split() # print(len(x)) for i in range(0,len(x)): if i<len(x) -1: A[A_row][A_column]=int(x[i]) A_column=A_column+1 ifA_column==35: A_column=0 A_row=A_row+1 else: B[B_flag]=int(x[i]) B_flag=B_flag+1 s=np.linalg.solve(A,B) print(s)
WEB easycon
打开题目,提示eval post cmd,直接用hackbar发请求,看到有一个txt文件,里面是base64编码,解码成图片可以拿到flag
<?php ini_set( 'max_execution_time', 5); if ($_COOKIE[ 'pass'] !==getenv( 'PASS')) { setcookie( 'pass', 'PASS'); die( '<h2>'. '<hacker>'. '<h2>'. '<br>'. '<h1>'. '404'. '<h1>'. '<br>'. 'Sorry, only people from GWHT are allowed to access this website.'. '23333'); } ?>
<h1>A Counter is here, but it has someting wrong</h1> <form> <inputtype="hidden"value="GWHT.php"name="file"> <textareastyle="border-radius: 1rem;"type="text"name="count"rows=10cols=50></textarea> <br /> <inputtype="submit"></form>