JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 22.02.2011, 18:10
megavirus1994
Guest
 
Posts: n/a
Default D-Link DSL-2640S reconnection

hi
i have tried to reconnect my router using jdownloader but my router using a sessionkey that is new every time i want to reconnect
i have noticed that the session key is always in the html file
is it possible to tell jdownloader to get the number from that file by saying a variable starts at line x start from letter y to z (or some other method) to generate the link to reset my router?
thanks

Edit:
here is the actual html file (thought it would help)
on line 28 there is a variable in the javascript that says what the sessionkey is (in this case "275748978")

Spoiler:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "**External links are only visible to Support Staff**>

<html xmlns="**External links are only visible to Support Staff** xml:lang="en" lang="en">

<head>
<title>Sky Broadband Router &gt; ROUTER STATUS</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="author" content="Antony Howlett" />
<meta name="description" content="Sky Broadband Router Interface" />
<meta name="keywords" content="BSkyB, Stickee, Broadband, Router" />

<link href="style.css" rel="stylesheet" type="text/css" media="screen" />
<!--[if IE]><link href="iestyle.css" rel="stylesheet" type="text/css" media="screen" /><![endif]-->
<link href="replacefont.css" rel="stylesheet" type="text/css" media="screen" />
<script language="javascript" type="text/javascript" src="utility.js"></script>
<script language="javascript" type="text/javascript" src="linux.js"></script>
<script language="javascript" type="text/javascript" src="script.js"></script>
<script language="javascript" type="text/javascript" src="screenres.js"></script>
<!--[if IE 6]><script language="javascript" type="text/javascript" src="minmax.js"></script><![endif]-->

<script language="javascript" src="util.js" type='text/javascript'></script>

<script language="javascript" type="text/javascript">
<!--//
var sessionKey='275748978';
var if_allow_submit=false;
var tmp,str;

function refreshPage() {
if(document.forms[0].connect.value == 'Renew')
return true;
window.setTimeout('window.location.href="sky_st_poe.html";',5);
}
function pppconnect(){
var loc = 'wanpppconnect.cmd?action=start';
loc += '&sessionKey=' + sessionKey;
var code = 'location="' + loc + '"';
eval(code);
}
function pppdisconnect(){
var loc = 'wanpppconnect.cmd?action=stop';
loc += '&sessionKey=' + sessionKey;
var code = 'location="' + loc + '"';
eval(code);
}

function frmLoad(){
with(document.forms[0]){
setInterval('refreshPage1()',4000);

}
}
function refreshPage1() {
with(document.forms[0]){
var loc = 'constatus.html';
var code = 'location="' + loc + '"';
eval(code);
}
}
//-->
</script>
</head>

<body onLoad='frmLoad()'>

<div id="popup">
<h1>Connection Status</h1>
<form>
<table border="1" cellspacing="0" cellpadding="0">
<tr>
<th width="50%">Connection Time</th>
<script>
tmp = " 00:16:30";
if(tmp == "")
str = "<td width='50%'>---</td>";
else
str = "<td width='50%'>"+tmp+"</td>";
document.write(str);
</script>
</tr>
<tr>
<th>Connecting to Server</th>
<script>
tmp = "Connected";
if(tmp == "")
str = "<td>---</td>";
else
str = "<td>"+tmp+"</td>";
document.write(str);
</script>
</tr>
<tr>
<th>Negotiation</th>
<script>
tmp = "PPPoA";
if(tmp == "")
str = "<td>---</td>";
else
str = "<td>"+tmp+"</td>";
document.write(str);
</script>
</tr>
<tr>
<th>Authentication</th>
<script>
tmp = "AUTO";
if(tmp == "")
str = "<td>---</td>";
else
str = "<td>"+tmp+"</td>";
document.write(str);
</script>
</tr>
<tr>
<th>Getting IP Address</th>
<script>
tmp = "90.202.158.157";
if(tmp == "")
str = "<td>---</td>";
else
str = "<td>"+tmp+"</td>";
document.write(str);
</script>
</tr>
<tr>
<th>Getting Network Mask</th>
<script>
tmp = "255.255.255.255";
if(tmp == "")
str = "<td>---</td>";
else
str = "<td>"+tmp+"</td>";
document.write(str);
</script>
</tr>
</table>


<table id="connectbuttons" cellpadding="0" cellspacing="0">
<tr>
<td width="60%">&nbsp;</td>
<td width="15%">
<image src="transparent.gif" id=button-connect class="button left" name="Connect" alt="Connect" title="Connect"
onMouseOver="this.style.backgroundPosition='left bottom'" onMouseOut="this.style.backgroundPosition='left top'" onClick="pppconnect();">
</td>
<td>
<image src="transparent.gif" id=button-disconnect class="button left" name="Disconnect" alt="Disconnect" title="Disconnect"
onMouseOver="this.style.backgroundPosition='left bottom'" onMouseOut="this.style.backgroundPosition='left top'" onClick="pppdisconnect();">
</td>
</tr>
<tr>
<td width="60%">&nbsp;</td>
<td width="15%">&nbsp;</td>
<td>
<image src="transparent.gif" id=button-closewindow class="button left" name="Close Window" alt="Close Window" title="Close Window"
onMouseOver="this.style.backgroundPosition='left bottom'" onMouseOut="this.style.backgroundPosition='left top'" onClick="window.close();">
</td>
</tr>
</table>

</form>
</div>
</body>

</html>

Last edited by megavirus1994; 22.02.2011 at 18:14. Reason: added the html file for better understanding
Reply With Quote
  #2  
Old 23.02.2011, 12:59
remi
Guest
 
Posts: n/a
Default

Please, read "http live header script commands + syntax" and try the PARSE command.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 13:55.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.