能力有限,只做出来了两道题,悔恨啊。。。。。
1.
$content=file_get_contents('~~:88/hackathon/stage1.txt');
$lines = explode("\n", $content);
foreach($lines as $key => $val){
echo '<br/>';
if(md5($val)=='c4d4198fee6293e3d057f7c5540c2950'){
var_dump($key);
var_dump($val);
}
}
2.
$url='~~~:88/hackathon/stage2.file';
$curl=curl_init($url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_RANGE,"0-499");
$before=curl_exec ($curl);
curl_close($curl);
$curls=curl_init($url);
curl_setopt($curls, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curls, CURLOPT_RANGE,"-500");
$end=curl_exec ($curls);
curl_close($curls);
file_put_contents('d.txt',$before.$end );
print_r('==');
print_r(md5_file('d.txt'));