Eu estava com esse problema, porém o cURL Seria a forma mais demorada que eu iria resolve-lo então decidi fazer uma html simples sem esse javascript. para quem quiser está aqui
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>RTK Login Bypass - Wireless Mini Router</title>
<link href="http://192.168.1.254/login.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta http-equiv="Pragma" content="no-cache">
<meta HTTP-equiv="Cache-Control" content="no-cache">
<meta HTTP-EQUIV="Expires" CONTENT="Mon, 01 Jan 1990 00:00:01 GMT">
<script type="text/javascript" src="http://192.168.1.254/lang_en.js"></script>
<script type="text/javascript" src="http://192.168.1.254/jquery-1.8.2.min.js"></script><script type="text/javascript" src="http://192.168.1.254/jquery.form.js"></script>
<script type="text/javascript" src="http://192.168.1.254/lang_conf.js"></script>
<script type="text/javascript">
var Request=new QueryString();
var msgtype=Request["msg"]*1;
var SelLang=Request["lang"]*1;
var user_lang = '0'*1;
function Capture(obj){if (obj!=""&& obj!=undefined)document.write(obj);}
function includeSpace(str)
{
return false;
}
function CheckValue()
{
return true;
}
function initValue()
{
switch (msgtype)
{
case 0:
top.location.href= 'login.htm';
break;
case 1:
top.location.href= 'login.htm?msg=3';
break;
case 2:
$("#errorinfo").html(login.logerr);
break;
case 3:
$("#errorinfo").html(login.logtimeout);
break;
default:
break;
}
$("#username").focus();
}
function loginSubmit(opt, val)
{
$("#errorinfo").html("");
$("#submit-value").val(val);
$("#LoginForm").ajaxSubmit(opt);
top.location.href = 'http://192.168.1.254/home.htm';
}
$(document).ready(function(){
var options = {
success: showResponse,
timeout: 6000,
error: function(){
console.log("Erro");
}
};
initValue();
$("#lang_select").change(function(){
$(".login_text").attr("disabled", true);
loginSubmit(options, "chLang");
});
$("#username").keydown(function(event){
var keynum;
if (window.event)
keynum = event.keyCode;
else if (e.which)
keynum = event.which;
$("#errorinfo").html("");
if (keynum == 13)
{
if ($("#username").val().length===0)
{
}
$("#password").val("");
$("#password").focus();
}
});
$("#password").keydown(function(event){
var keynum;
if (window.event)
keynum = event.keyCode;
else if (e.which)
keynum = event.which;
if (keynum == 13)
{
if ($("#password").val().length==0)
{
$("#errorinfo").html(login.passempty);
$("#password").focus();
return false;
}
$("#login").click();
}
});
$("#login").click(function(){
if (CheckValue())
{
loginSubmit(options, "Login");
}
});
});
function showResponse(responseText, statusText, xhr, $form)
{
if (statusText == "success")
{
if (responseText == 'login_success')
{
top.location.href = 'http://192.168.1.254/home.htm';
}
}
}
</script>
</head>
<body class="login">
<form id="LoginForm" action="http://192.168.1.254/boafrm/formLoginHtm" method=POST name="formLoginHtm">
<input type="hidden" name="submit-value" id="submit-value" value="" />
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="login_top"> </td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="login_block"> </td>
<td class="login_main"><table width="800px" border="0" cellspacing="0" cellpadding="0">
<tr valign="middle">
<td width="40%" align="center"><img src="http://192.168.1.254/login.gif" /></td>
<td width="60%"><!-- Login -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="login_tit"><tt>
<script type="text/javascript">Capture(login.user)</script>
</tt></td>
<td><input class="login_text" type="text" id="username" name="username" maxlength="30" /></td>
</tr>
<tr>
<td height="20px"></td>
<td height="20px"></td>
</tr>
<tr>
<td class="login_tit"><tt>
<script type="text/javascript">Capture(login.pass)</script>
</tt></td>
<td><input class="login_text" type="password" id="password" name="password" maxlength="30" /></td>
</tr>
<tr>
<td height="10px"></td>
<td height="10px"></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="40px;" valign="middle"><font id="errorinfo"></font><!--<img class="off" id="loginimg" src="login_load.gif" />--></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="login_tit"><tt>
<script type="text/javascript">Capture(login.lang)</script>
</tt></td>
<td><select name="lang_select" id="lang_select">
<script>
var i;
for(i=0;i<user_lang_array.length;i++)
{
if (user_lang_array[i].value==user_lang)
document.write('<option value="'+user_lang_array[i].value+'" selected>'+user_lang_array[i].name+'</option>\n');
else
document.write('<option value="'+user_lang_array[i].value+'">'+user_lang_array[i].name+'</option>\n');
}
</script>
</select></td>
</tr>
</table>
<br />
<br />
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center"><script type="text/javascript">document.write('<input class="login_btn" type="button" value="'+ login.btnsub +'" name="login" id="login" />');</script></td>
</tr>
</table>
<!-- Login --></td>
</tr>
</table></td>
<td class="login_block"> </td>
</tr>
</table>
</form>
</body>
</html>