Skip to content

Instantly share code, notes, and snippets.

@0x48piraj
Created August 14, 2019 15:45
Show Gist options
  • Select an option

  • Save 0x48piraj/4b641be75780f493dc917f178fe1fb80 to your computer and use it in GitHub Desktop.

Select an option

Save 0x48piraj/4b641be75780f493dc917f178fe1fb80 to your computer and use it in GitHub Desktop.
Output of $ curl -s http://10.163.0.1/login
<html>
<head>
<title>mikrotik hotspot > novirzit</title>
<!-- <meta http-equiv="refresh" content="2; url=http://10.163.0.1/status"> -->
<meta http-equiv="Content-Type" content="text/html; charset=windows-1257">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="expires" content="-1">
<style type="text/css">
<!--
textarea,input,select {
background-color: #FDFBFB;
border: 1px #BBBBBB solid;
padding: 2px;
margin: 1px;
font-size: 14px;
color: #808080;
}
body{ color: #737373; font-size: 12px; font-family: verdana; }
a, a:link, a:visited, a:active { color: #AAAAAA; text-decoration: none; font-size: 12px; }
a:hover { border-bottom: 1px dotted #c1c1c1; color: #AAAAAA; }
img {border: none;}
td { font-size: 12px; color: #7A7A7A; }
-->
</style>
<script language="JavaScript">
<!--
function startClock() {
//alert('');
//alert(''.indexOf("Id="));
if('http://10.163.0.1/status' =='https://customer.i-on.in/')
{
location.href='https://customer.i-on.in/';
window.open('http://1.186.63.155/captiveportal/?login=1&mac=B2_Hostel&page=status&link-login-only=http://10.163.0.1/login&link-logout=http://10.163.0.1/logout&uname=&mac=B2_Hostel&interface-name=B2_Hostel', '_blank');
}
else
location.href = 'http://10.163.0.1/status';//'http://1.186.63.155/captiveportal/?login=1&mac=B2_Hostel&page=status&link-login-only=http://10.163.0.1/login&link-logout=http://10.163.0.1/logout&uname=&mac=B2_Hostel&interface-name=B2_Hostel&Reqchk=1';
}
//-->
</script>
</head>
<body onLoad="startClock()">
<table width="100%" height="100%">
<tr>
<td align="center" valign="middle">
Jus esat piesledzies
<br><br>
Ja nekas nenotiek, klikskiniet <a href="http://10.163.0.1/status">seit</a></td>
</tr>
</table>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment