如何找出热点专属门户表格地址

时间:2018-07-09 22:45:15

标签: hotspot captiveportal

如何从Debian无头设备获取热点强制门户登录页面的网址,以便我可以登录酒店热点。

我尝试使用python进入任何页面以强制强制门户重定向,但这是我得到的

使用python的代码:

import urllib
url = "http://smh.com.au"
op = urllib.urlopen(url).read()
print op

Python返回打印输出:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>You are using interTouch High-Speed Internet Service</title>
<script type="text/javascript"><!--
  function trigger_redirect() {
      window.location="/b827eb11700b/UKzqFLql/BFGyeAQYvKp8TIVq39I6L88tHwEHtsBNA2nXWgJ9HEvjwE_h7c_i_LqYVXFFVRVmkv6Gh0jn6p4cooQb53zhLaAx3A3RyB_Ytg1TYl6EMZUnP2yUF0LU8pVHOQJT1TJLb4nTRwrZDFpqcjVn9VGfDeUYvaMaxeUlZoEyEVZ8Y1vojzdvfKHqFBq5eOR8OUhPmen8gPWE9YROJMLL_PJFMqc6jPjJutgKqexQhN1n2NqjsrzMLz8JnKkbiznUNyODXgkoiFGetSJ4I48KMvrG9Paic6dhBbwp3_1HLYEwtizA1DQvW7-pxwt2EwMG0dUoyqM7O1NTsKYF3aQ_TBrSFqATq4YQzJcuv8pAhUd9Lu2-D-dKRtEtQrsV6y1c9tE85bjm47btjNQgENX5JXW2bKRctSzzyCXVe3GLi94wMzk=/page.cgi?sess=grnrdupmvozc2akblhkngfjh6i8hr16x&amp;js=1";

  }

  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  // Trigger a google analytics pageview ping and then redirect on the callback...
  ga('create', 'UA-48719506-1', 'CNPVGHYBUN.by-pi.com');
  ga('send', 'pageview', {'hitCallback': function() { trigger_redirect(); }});

  // If the GA ping is intercepted (e.g. by disconnect.me), the callback will never happen.
  // Abort and just redirect anyway after 750ms...
  setTimeout(function() { trigger_redirect() }, 750);
</script>
<noscript>
    <meta http-equiv="Refresh" content="1;URL=/b827eb11700b/yHAjtrCX/VPT17-No0CsUlj4QYS5hp1YHe8TconfFPHim1J9QzDr2DGetNctU-lgaQE3aJpYkoGYGbR_0k6lsorH1t7JowPYTlIVL29nQqdw3U9Oe-ncZogYtVbW-F7YXODzin6ywUi5EqdT_rzZHt2Xh5eMHRAf9yKjMiIJ9o8fdiPfskO8m53StCVYnpnqojicyab-mCG2SKM9oJhLe6y_Dr17yqV23-BpzBsuROdxcffhJKV6gBnWB2RppG-LVFUNOO-aIYlZemIhgB3Y_Dzd9kl7c3gUoB3hCYSjuaIzEwYIDpM0PGkq92o2Ce28dlpolnGxWZ2n3DLWNL6TY6O8F2p-5pj69UJjf_M3jut-Z7ycO7RM76VnPTEdBd-ILrhB7XCgTJUfG7BHAtnBHxXl4rVqQ-t-gl-DvsHUW2IT87BNXN5E=/page.cgi?sess=grnrdupmvozc2akblhkngfjh6i8hr16x&amp;garbage=0"/>
</noscript>
</head>
<body>
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr>
            <td style="text-align:center"><p>
            <img src="/resources/shared/redirect_dcmi_logo.jpg" alt=""/>
            </p></td>
        </tr>
        <tr>
            <td style="background-color:#ff0000;"><p style="text-align:center;color:#ffffff;">&nbsp;<br/>Enhancing Guest Experience<br/>&nbsp;</p></td>
        </tr>
        <tr>
            <td style="text-align:center"><p><img src="/resources/shared/dot_loader_100x100.gif" alt=""/></p></td>
        </tr>
    </table>
    <pre id="log_contents" style="display:none;border:1px solid #ccc;padding:20px;margin:20px"></pre>
</body>
</html>

0 个答案:

没有答案
相关问题