21,886
社区成员
发帖
与我相关
我的任务
分享
http://112.78.104.13
<script>
top.uid = '360eae3m12904263l134939190';
top.langx = 'zh-tw';
top.liveid = 'cbcfc6cdcec29bcdccc9cd'
top.casino = 'SI2';
top.hot_game = '';
top.hasLogin = 'login';
</script>
<script>window.location.href = 'http://112.78.104.13/app/member/FT_index.php?mtype=3&uid=360eae3m12904263l134939190&langx=zh-tw';</script>
仅 php 只能做到这里,虽然可析出跳转的目标页,但数据是由 js 产生的。只能得到页面框架$url = 'http://112.78.104.13/app/member';
$url1 = 'http://112.78.104.13/app/member/login.php';
$d = array('username' => 'zm1000', 'passwd' => 'a123456');
//echo file_get_contents($url);
//print_r(get_headers($url));
echo postdata($url1, $d);
function postdata($url, $data){
$opts = array(
'http' => array(
'method' => 'POST',
'header' => 'content-type:application/x-www-form-urlencoded',
'user_agent' => $_SERVER['HTTP_USER_AGENT'],
'content' => http_build_query($data)
)
);
$context = stream_context_create($opts);
$result = file_get_contents($url, false, $context);
return $result;
}